Compare commits

...

2 Commits

Author SHA1 Message Date
Correl Roush a872c9b696 updates 2024-01-15 17:33:05 -05:00
Correl Roush 63153a42b7 notes 2024-01-08 00:31:55 -05:00
4 changed files with 140 additions and 5 deletions

View File

@ -4,7 +4,7 @@
:END:
#+title: Org-roam references
Capturing information about references in an [[id:0567a35c-3afb-4ed5-a9ec-47425c5d6f06][Org-roam]] document.
* Capturing information about references in an [[id:0567a35c-3afb-4ed5-a9ec-47425c5d6f06][Org-roam]] document.
#+name: refs
#+begin_src emacs-lisp :results code
@ -17,14 +17,83 @@ Capturing information about references in an [[id:0567a35c-3afb-4ed5-a9ec-47425c
#+end_src
#+name: refs-with-types
#+begin_src emacs-lisp :results code
#+begin_src emacs-lisp
(org-roam-db-query [:select :distinct [refs:type refs:ref]
:from refs
:where (= refs:node-id $s1)]
:where (in refs:node-id
[$s1 ; URL
"04c424ec-b1fb-42f8-a8da-6ac9b7c2461d" ; cite:link
"6ce50155-471d-490a-baf0-865b75547611" ; @citation
])]
(org-roam-node-id (org-roam-node-at-point)))
#+end_src
#+RESULTS: refs-with-types
#+begin_src emacs-lisp
(("https" "//www.orgroam.com/manual.html#Refs"))
| cite | SusanStryker2021 |
| cite | WillKurt2718 |
| https | //www.orgroam.com/manual.html#Refs |
* Presenting reference data
#+begin_src emacs-lisp :var refs=refs-with-types :results code
refs
#+end_src
#+RESULTS:
#+begin_src emacs-lisp
(("cite" "SusanStryker2021")
("cite" "WillKurt2718")
("https" "//www.orgroam.com/manual.html#Refs"))
#+end_src
#+begin_src emacs-lisp :results code
(bibtex-completion-get-entry "BruceSterling3")
#+end_src
#+RESULTS:
#+begin_src emacs-lisp
(("=key=" . "BruceSterling3")
("=type=" . "book")
("title" . "The Hacker Crackdown: Law and Disorder on the Electronic Frontier")
("title_sort" . "Hacker Crackdown: Law and Disorder on the Electronic Frontier, The")
("author_sort" . "Sterling, Bruce")
("author" . "Bruce Sterling")
("note" . "\\#\\#\\# Amazon.com Review Bruce Sterling's classic work highlights the 1990 assault on hackers, when law-enforcement officials successfully arrested scores of suspected illicit hackers and other computer-based law-breakers. These raids became symbolic of the debate between fighting serious computer crime and protecting civil liberties. However, *The Hacker Crackdown* is about far more than a series of police sting operations. It's a lively tour of three cyberspace subcultures--the hacker underworld, the realm of the cybercops, and the idealistic culture of the cybercivil libertarians. Sterling begins his story at the birth of cyberspace: the invention of the telephone. We meet the first hackers--teenage boys hired as telephone operators--who used their technical mastery, low threshold for boredom, and love of pranks to wreak havoc across the phone lines. From phone-related hi-jinks, Sterling takes us into the broader world of hacking and introduces many of the culprits--some who are fighting for a cause, some who are in it for kicks, and some who are traditional criminals after a fast buck. Sterling then details the triumphs and frustrations of the people forced to deal with the illicit hackers and tells how they developed their own subculture as cybercops. Sterling raises the ethical and legal issues of online law enforcement by questioning what rights are given to suspects and to those who have private e-mail stored on suspects' computers. Additionally, Sterling shows how the online civil liberties movement rose from seemingly unlikely places, such as the counterculture surrounding the Grateful Dead. *The Hacker Crackdown* informs you of the issues surrounding computer crime and the people on all sides of those issues. \\#\\#\\# From Publishers Weekly Cyberpunk novelist Sterling (Involution Ocean) has produced by far the most stylish report from the computer outlaw culture since Steven Levy's Hackers. In jazzy New Journalism proE;e, sounding like Tom Wolfe reporting on a gunfight at the Cybernetic Corral, Sterling makes readers feel at home with the hackers, marshals, rebels and bureaucrats of the electronic frontier. He opens with a social history of the telephone in order to explain how the Jan. 15, 1990, crash of AT\\&T's long-distance switching system led to a crackdown on high-tech outlaws suspected of using their knowledge of eyberspace to invade the phone company's and other corporations' supposedly secure networks. After explaining the nature of eyberspace forms like electronic bulletin boards in detail, Sterling makes the hackers-who live in the ether between terminals under noms de nets such as VaxCat-as vivid as Wyatt Earp and Doe Holliday. His book goes a long way towards explaining the emerging digital world and its ethos. Copyright 1992 Reed Business Information, Inc. ")
("cover" . "~/Calibre Library/Bruce Sterling/The Hacker Crackdown\\_ Law and Disorder on the Electronic Frontier (3)/cover.jpg")
("formats" . "epub")
("file" . ":~/Calibre Library/Bruce Sterling/The Hacker Crackdown_ Law and Disorder on the Electronic Frontier (3)/The Hacker Crackdown_ Law and Disorder on the Electronic Frontier - Bruce Sterling.epub:EPUB")
("calibreid" . "3")
("isbn" . "978-05-5356-370-2")
("library_name" . "Calibre Library")
("year" . "1992")
("month" . "Jan")
("publisher" . "Bantam")
("rating" . "7")
("volume" . "1")
("size" . "301546 octets")
("tags" . "Non-Fiction, Computers, General, True Crime, Corrupt Practices, Telephone, United States, Computer Crimes, Computer Programming, Security, read")
("timestamp" . "2011-05-24")
("uuid" . "fcb75ddc-aebc-4613-b0e7-6ca02aa8eb2f")
("languages" . "eng")
("identifiers" . "goodreads:61182,google:4A8ONgAACAAJ,isbn:9780553563702,amazon:055356370X"))
#+end_src
#+begin_src emacs-lisp :var refs=refs-with-types
(mapconcat
(lambda (reference)
(let ((ref-type (car reference))
(ref-value (cadr reference)))
(cond
((string-equal ref-type "cite")
(when-let ((entry (bibtex-completion-get-entry ref-value)))
(concat "** " (cdr (assoc "title" entry)))))
(t (concat "** " ref-type ":" ref-value)))))
refs "\n\n")
#+end_src
#+RESULTS:
: ** Second Edition Transgender History: The Roots of Todays Revolution
:
: ** Get Programming with Haskell
:
: ** https://www.orgroam.com/manual.html#Refs

View File

@ -0,0 +1,46 @@
:PROPERTIES:
:ID: 5ef131c4-7ec8-47b8-9211-44b585083388
:END:
#+title: Transferring data to a RAIDZ1 array
Building a new drive array for [[id:a5f8aa86-b03c-494e-85fa-d9483950d2fb][Reason]].
* Original drives
| Nickname | Make | Capacity (TB) | Model No. | Speed (rpm) | Max Read (MB/s) | Actual Read (MB/s) |
|----------+------------------+---------------+----------------------+-------------+-----------------+--------------------|
| Terra | Hitachi Deskstar | 1TB | HDS721010KLA330 | 7200rpm | 84 | |
| Gaia | Hitachi | 2TB | HDS722020ALA330 | 7200rpm | 85 | |
| Izanagi | WD Red | 4TB | WDC_WD40EFRX-68WT0N0 | 5400rpm | 171 | 120 |
| Satanael | WD Red | 10TB | WD100EFAX-68LHPN0 | 7200rpm | 210 | |
** Terra
https://www.disctech.com/Hitachi-0A36143-HUA721010KLA330-1TB-SATA-Hard-Drive
** Gaia
https://www.disctech.com/Hitachi-Deskstar-7K2000-0F10311-SATA-Hard-Drive
** Izanagi
https://www.disctech.com/Western-Digital-WD40EFRX-4TB-SATA-Hard-Disk-Drive
** Satanael
https://www.disctech.com/Western-Digital-WD100EFAX-10TB-SATA-Hard-Drive
* New Drives
https://www.disctech.com/Western-Digital-WD-Red-Plus-WD101EFBX-10TB-NAS-SATA-Hard-Drive
| Nickname | Make | Capacity (TB) | Model No. | Speed (rpm) | Read (MB/s) |
|----------+-------------+---------------+-------------------+-------------+-------------|
| | WD Red Plus | 10TB | WD101EFBX-68B0AN0 | 7200rpm | 217 |
| | WD Red Plus | 10TB | WD101EFBX-68B0AN0 | 7200rpm | 217 |
| | WD Red Plus | 10TB | WD101EFBX-68B0AN0 | 7200rpm | 217 |
| | WD Red Plus | 10TB | WD101EFBX-68B0AN0 | 7200rpm | 217 |
| | WD Red Plus | 10TB | WD101EFBX-68B0AN0 | 7200rpm | 217 |
* Mappings
| Old | New | Copied | Rsync |
|--------------------------+---------------------------------+--------+-------|
| Terra/Misc | reason/misc | | |
| Terra/Music | reason/media/music | Y | |
| Terra/Roms | reason/games/roms | Y | |
| Izanagi/Video/Movies | reason/media/movies | Y | |
| Izanagi/srv/owncloud | reason/services/nextcloud | Y | |
| Satanael/plexmediaserver | reason/services/plexmediaserver | | |
| Satanael/TV | reason/media/television | Y | |
| Satanel/Anime | reason/media/anime | Y | |
| Satanael/Backup | reason/backups | | |
| Satanael/Plays | reason/media/plays | | |
| Satanael/RetroPie | reason/games/retropie | | |
| Satanael/Webcam | reason/media/webcam | | |

View File

@ -0,0 +1,6 @@
:PROPERTIES:
:ID: a5f8aa86-b03c-494e-85fa-d9483950d2fb
:END:
#+title: Reason
Our home server.

View File

@ -0,0 +1,14 @@
:PROPERTIES:
:ID: 56e7fe03-8f0e-4699-bcec-7ef33a379d89
:END:
#+title: Fixing my Arch Linux bootloader
[[id:a5f8aa86-b03c-494e-85fa-d9483950d2fb][Reason]] occasionally has issues where, when it reboots, it cannot find its boot
drive.
* Prepare an Arch Linux bootable USB drive
* Mount the system
: mount /dev/sda2 /mnt -o subvol='@'
: mount /dev/sda1 /mnt/boot
: arch-chroot /mnt
* Restore the bootloader
: bootctl install