diff --git a/sql/hpr.sql b/sql/hpr.sql index aa83094..dbeb282 100644 --- a/sql/hpr.sql +++ b/sql/hpr.sql @@ -11806,6 +11806,24 @@ INSERT INTO `assets` (`episode_id`, `filename`, `extension`, `size`, `sha1sum`, (3882,'hpr3882.flac','flac',54360165,'e60818c0a46437e1179d93996eb74d7271fb8a29','audio/flac; charset=binary','setgid FLAC audio bitstream data, 16 bit, mono, 192 kHz, 136909306 samples'), (3882,'hpr3882.opus','opus',6727905,'9be328c07dbe2b1d64aaaf6f4cff328e3f05e613','audio/ogg; charset=binary','setgid Ogg data, Opus audio,'), (3882,'hpr3882.wav','wav',273820004,'6fdc5731efabab479eb01e8c2586024df7f41dc2','audio/x-wav; charset=binary','setgid RIFF (little-endian) data, WAVE audio, mono 192000 Hz'), +(3944,'hpr3944.wav','wav',394726012,'53400c703fc6d1b219d76eeb9152a9f69902a837','audio/x-wav; charset=binary','setgid RIFF (little-endian) data, WAVE audio, mono 192000 Hz'), +(3944,'hpr3944.opus','opus',9686010,'280cf0112a78797c1084f7607122a5198416caa6','audio/ogg; charset=binary','setgid Ogg data, Opus audio,'), +(3944,'hpr3944.flac','flac',72945857,'040dfe89121b3b3f54d7505c2909cf9b966c8477','audio/flac; charset=binary','setgid FLAC audio bitstream data, 16 bit, mono, 192 kHz, 197362299 samples'), +(3944,'hpr3944.spx','spx',3882989,'8ddf3620e662e58b3d4b91b985872c56db6d6b1e','audio/ogg; charset=binary','setgid Ogg data, Speex audio'), +(3944,'hpr3944.ogg','ogg',9685742,'a7c08faf1678aae6149c041b6238afcf1d62ab30','audio/ogg; charset=binary','setgid Ogg data, Opus audio,'), +(3944,'hpr3944.mp3','mp3',8225391,'a87303d2e03a521f9fafc3210ddad4e6f2ca1bc0','audio/mpeg; charset=binary','setgid Audio file with ID3 version 2.4.0, contains:MPEG ADTS, layer III, v1, 64 kbps, 48 kHz, Monaural'), +(3971,'hpr3971.opus','opus',20384303,'ea1b96bc390de9cb3acc6077a8d17a39fc8d9d24','audio/ogg; charset=binary','setgid Ogg data, Opus audio,'), +(3971,'hpr3971.wav','wav',862020550,'f7b68f67ee863074766d2cb236edf714d70aa855','audio/x-wav; charset=binary','setgid RIFF (little-endian) data, WAVE audio, mono 192000 Hz'), +(3971,'hpr3971.flac','flac',174518436,'50a96efd45199233e5ac4dd3a6810f6e0e4fab9b','audio/flac; charset=binary','setgid FLAC audio bitstream data, 16 bit, mono, 192 kHz, 431009550 samples'), +(3971,'hpr3971.spx','spx',8479334,'fd65876a65400ddaa6993feeb16b9ae2237457be','audio/ogg; charset=binary','setgid Ogg data, Speex audio'), +(3971,'hpr3971.ogg','ogg',20383999,'6fd9088912c95b54f04960b5145e02e47a816178','audio/ogg; charset=binary','setgid Ogg data, Opus audio,'), +(3971,'hpr3971.mp3','mp3',17960787,'729233910d8dd981b40f38be876c3e8c5935cb5c','audio/mpeg; charset=binary','setgid Audio file with ID3 version 2.4.0, contains:MPEG ADTS, layer III, v1, 64 kbps, 48 kHz, Monaural'), +(3932,'hpr3932.wav','wav',198798264,'5817a307d3febe06b200dfff92d2b50d8fe5ac25','audio/x-wav; charset=binary','setgid RIFF (little-endian) data, WAVE audio, mono 192000 Hz'), +(3932,'hpr3932.opus','opus',3968561,'00f8af0fc8b3065fb9dde925ec1b76e048b77558','audio/ogg; charset=binary','setgid Ogg data, Opus audio,'), +(3932,'hpr3932.flac','flac',36827801,'571ab6a047efebfabb728c5b90f0e2e3f0b40c89','audio/flac; charset=binary','setgid FLAC audio bitstream data, 16 bit, mono, 192 kHz, 99398431 samples'), +(3932,'hpr3932.spx','spx',1955882,'0abd8853875f92de0dbf987cba8b05a3a613c027','audio/ogg; charset=binary','setgid Ogg data, Speex audio'), +(3932,'hpr3932.ogg','ogg',3968305,'a1a8387ee9569082189ee8452b773b59cbb4bce3','audio/ogg; charset=binary','setgid Ogg data, Opus audio,'), +(3932,'hpr3932.mp3','mp3',4143459,'7ed5642df83b7dc48c9f63266c1db7b156933885','audio/mpeg; charset=binary','setgid Audio file with ID3 version 2.4.0, contains:MPEG ADTS, layer III, v1, 64 kbps, 48 kHz, Monaural'), (3951,'hpr3951.wav','wav',691761706,'2efdc9f6da0e16a6566f2ae147d462a905114b80','audio/x-wav; charset=binary','setgid RIFF (little-endian) data, WAVE audio, mono 192000 Hz'), (3951,'hpr3951.opus','opus',16689261,'c6bd2939323c65d179a045c676e9e7e6366b9775','audio/ogg; charset=binary','setgid Ogg data, Opus audio,'), (3951,'hpr3951.flac','flac',113070772,'2c1607f13d72225908a59f75bcaad444ef178cbb','audio/flac; charset=binary','setgid FLAC audio bitstream data, 16 bit, mono, 192 kHz, 345880146 samples'), @@ -11818,8 +11836,8 @@ INSERT INTO `assets` (`episode_id`, `filename`, `extension`, `size`, `sha1sum`, (3929,'hpr3929.flac','flac',42307647,'23433f9e6e308187cb0b5ec577ed27d3183a862d','audio/flac; charset=binary','setgid FLAC audio bitstream data, 16 bit, mono, 192 kHz, 128286459 samples'), (3929,'hpr3929.spx','spx',2524111,'be9bebc74d2de6c0282c09e64662ad4601f4771d','audio/ogg; charset=binary','setgid Ogg data, Speex audio'), (3929,'hpr3929.ogg','ogg',5787231,'198e03bc83cd615dcea8de9a185be48acd28df46','audio/ogg; charset=binary','setgid Ogg data, Opus audio,'), -(3929,'hpr3929.mp3','mp3',5347109,'c9473b6880d22550d1ebde7fdb2f3d77cd9e8b0f','audio/mpeg; charset=binary','setgid Audio file with ID3 version 2.4.0, contains:MPEG ADTS, layer III, v1, 64 kbps, 48 kHz, Monaural'), -(3928,'hpr3928.wav','wav',594289860,'7dd203d6ec7375187e1e696a7d5ed00489ab52c2','audio/x-wav; charset=binary','setgid RIFF (little-endian) data, WAVE audio, mono 192000 Hz'), +(3929,'hpr3929.mp3','mp3',5347109,'c9473b6880d22550d1ebde7fdb2f3d77cd9e8b0f','audio/mpeg; charset=binary','setgid Audio file with ID3 version 2.4.0, contains:MPEG ADTS, layer III, v1, 64 kbps, 48 kHz, Monaural'); +INSERT INTO `assets` (`episode_id`, `filename`, `extension`, `size`, `sha1sum`, `mime_type`, `file_type`) VALUES (3928,'hpr3928.wav','wav',594289860,'7dd203d6ec7375187e1e696a7d5ed00489ab52c2','audio/x-wav; charset=binary','setgid RIFF (little-endian) data, WAVE audio, mono 192000 Hz'), (3928,'hpr3928.opus','opus',14811435,'b7cca64f2d5afff0deca1ded3a9dc700493421e0','audio/ogg; charset=binary','setgid Ogg data, Opus audio,'), (3928,'hpr3928.flac','flac',122090659,'9d3694e84c9c0aa6e374e278c1d3d495b178214e','audio/flac; charset=binary','setgid FLAC audio bitstream data, 16 bit, mono, 192 kHz, 297144229 samples'), (3928,'hpr3928.spx','spx',5845891,'667e89fa9e5d5215adf46965132064a297b3cc31','audio/ogg; charset=binary','setgid Ogg data, Speex audio'), @@ -11836,8 +11854,8 @@ INSERT INTO `assets` (`episode_id`, `filename`, `extension`, `size`, `sha1sum`, (3961,'hpr3961.spx','spx',9728761,'e182795070da9f6dbf8f0d1e9cc8cd40694b76be','audio/ogg; charset=binary','setgid Ogg data, Speex audio'), (3961,'hpr3961.flac','flac',194474219,'4f2cb71c2158a12dd451d333b056340b796d41e9','audio/flac; charset=binary','setgid FLAC audio bitstream data, 16 bit, mono, 192 kHz, 494523442 samples'), (3961,'hpr3961.ogg','ogg',24712698,'f2eb443599205b0ef0175d45f589eeb1259c0dff','audio/ogg; charset=binary','setgid Ogg data, Opus audio,'), -(3961,'hpr3961.mp3','mp3',20607113,'06a95538511c18e320241f16c3dfb39657ea418e','audio/mpeg; charset=binary','setgid Audio file with ID3 version 2.4.0, contains:MPEG ADTS, layer III, v1, 64 kbps, 48 kHz, Monaural'); -INSERT INTO `assets` (`episode_id`, `filename`, `extension`, `size`, `sha1sum`, `mime_type`, `file_type`) VALUES (3926,'hpr3926.wav','wav',1070297664,'d88d67a85425920ed439e3015acc58d6e482bb28','audio/x-wav; charset=binary','setgid RIFF (little-endian) data, WAVE audio, mono 192000 Hz'), +(3961,'hpr3961.mp3','mp3',20607113,'06a95538511c18e320241f16c3dfb39657ea418e','audio/mpeg; charset=binary','setgid Audio file with ID3 version 2.4.0, contains:MPEG ADTS, layer III, v1, 64 kbps, 48 kHz, Monaural'), +(3926,'hpr3926.wav','wav',1070297664,'d88d67a85425920ed439e3015acc58d6e482bb28','audio/x-wav; charset=binary','setgid RIFF (little-endian) data, WAVE audio, mono 192000 Hz'), (3926,'hpr3926.opus','opus',21888687,'50fa212f4ace336d01a79e2fd270b026aacd165d','audio/ogg; charset=binary','setgid Ogg data, Opus audio,'), (3926,'hpr3926.flac','flac',242761638,'efc30d288f20e0d7bd8081b530a91b8e7e8adf51','audio/flac; charset=binary','setgid FLAC audio bitstream data, 16 bit, mono, 192 kHz, 535148117 samples'), (3926,'hpr3926.spx','spx',10527899,'bd2bde94334fd3316edf2698948306728742c288','audio/ogg; charset=binary','setgid Ogg data, Speex audio'), @@ -12368,7 +12386,7 @@ CREATE TABLE `comments` ( `last_changed` datetime NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`), KEY `comments_eps_id_idx` (`eps_id`) -) ENGINE=MyISAM AUTO_INCREMENT=3797 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='New comments table populated from c5t_* tables'; +) ENGINE=MyISAM AUTO_INCREMENT=3802 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='New comments table populated from c5t_* tables'; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -16168,7 +16186,12 @@ INSERT INTO `comments` (`id`, `eps_id`, `comment_timestamp`, `comment_author_nam (3793,3922,'2023-08-16 14:59:41','thelovebug','My condolences','I\'m sorry to hear of Michael KV4YD\'s passing. Everyone in the amateur radio community mourns his passing. It\'s never nice to hear of new silent keys. Thank you for looking after the administration of his records.\r\n\r\n73 de Dave M7TLB','2023-08-16 16:00:33'), (3794,3921,'2023-08-16 18:11:07','Kevin O\'Brien','Hearing 5150','It was a pleasant surprise to her 5150 again. He was a good friend even though I only saw him at conferences. I miss him. And did he say he had invited Tracy Holz to join the Audio Book Club? Tracy is a good guy too.','2023-08-16 19:50:59'), (3795,3855,'2023-08-16 21:24:28','Windigo','Secrets','Thanks for the episode! It feels like SSH escape sequence are secret commands, and I feel cooler for knowing about them.','2023-08-16 21:35:08'), -(3796,3917,'2023-08-21 12:06:52','one_of_spoons','breaking the spell','I look forward to including responses to some of the points you made, into future episodes.\r\nTaxation can compel efforts to satisfy state orders by acceding to employment, but the extent to which a private citizen can refuse legal tender, is a measure of their freedom. \r\nA lot of trigger words in there of course.\r\nTo avoid collapsing back into money talk for a while though, I aim to report on some accessible tools.','2023-08-21 12:29:59'); +(3796,3917,'2023-08-21 12:06:52','one_of_spoons','breaking the spell','I look forward to including responses to some of the points you made, into future episodes.\r\nTaxation can compel efforts to satisfy state orders by acceding to employment, but the extent to which a private citizen can refuse legal tender, is a measure of their freedom. \r\nA lot of trigger words in there of course.\r\nTo avoid collapsing back into money talk for a while though, I aim to report on some accessible tools.','2023-08-21 12:29:59'), +(3797,3917,'2023-08-23 02:07:25','dnt','re: breaking the spell','Looking forward to it! In the interim, I shall procure a grandfather clock.','2023-08-23 08:56:11'), +(3798,3919,'2023-08-23 02:17:03','dnt','hacking your voice','This was amazing and completely unknown to me! Also thanks for sharing that youtube channel. Thanks!','2023-08-23 08:56:11'), +(3799,3896,'2023-08-23 05:07:17','Windigo','Intriguing show topic','Not only did I enjoy your episode, but I think the concept behind it is worth exploring. We have HPR hosts across the globe, and surely each of us lives near something worth an episode.','2023-08-23 08:56:12'), +(3800,3926,'2023-08-23 13:10:15','Trey','Thank you for sharing.','A long time ago (As a young adult) I studied Taekwondo (TKD) for many years, eventually earning my brown belt. It taught me discipline and forced me to develop a level of physical precision I had been lacking.\r\n\r\nSadly, life events intervened, and I discontinued my training. A couple decades later, I tried Isshinryu karate, but I struggled to \"unlearn\" stances and techniques which were still ingrained in my muscle memory. \r\n\r\nFor fun, I tries to work through some of the TKD poomsae (Forms or the equivalent of Kata), and I remembered several of them! Time to get these old bones moving again.\r\n\r\nThank you, again for sharing.','2023-08-23 13:59:45'), +(3801,3928,'2023-08-23 13:22:50','Trey','Good Heavens!!','Thanks for sharing this awesome show. Always good to see how different people approach similar tasks.','2023-08-23 13:59:45'); /*!40000 ALTER TABLE `comments` ENABLE KEYS */; UNLOCK TABLES; /*!50003 SET @saved_cs_client = @@character_set_client */ ; @@ -19919,7 +19942,7 @@ INSERT INTO `eps` (`id`, `date`, `title`, `duration`, `summary`, `notes`, `hosti (3665,'2022-08-19','UNIX Is Sublime',3586,'I talk about all of the reasons I love UNIX','
UNIX is not Multics
\nMultics = Multiplexed Information and Computer Service
\nUNIX = Uniplexed Information and Computing Service
\nThe name \'UNIX\' is a pun on the name \'Multics\'. Multics was entirely too large and complicated to be useful so the boys at Bell Labs cooked up something smaller, less complicated, and easier to use.
\nThis wiki helped me emulate UNIXv5.
\nAnd this one helped me emulate UNIXv7.
\nThese guys host ancient systems accessible via guest accounts over ssh.
\n\n\n\"Cool, but useless.\"
\n
I know almost nothing about Multics and I\'m not sure if it\'s even worth learning. This is about UNIX, not Multics. Maybe I\'ll come back to it.
\nWhen I think of \"UNIX\", I do not think of the trademark. Instead, I think of the Unix philosophy. and the general design principles, interface, and behavior of a UNIX system.
\nA better way of thinking about \"UNIX\" is as something \"POSIX-like\" rather than \"AT&T\'s commercial UNIX\". Example: although Linux and GNU are overly complicated, they pass the duck test for being a UNIX. Pedigree or not, you know a nix when you see one.
\nAlso, when I say \"UNIX\", I mean \"Free UNIX\". I have no interest in proprietary implementations that only exist for the purpose of restricting users and disempowering/discouraging sysadmins from becoming self-reliant.
\nSo what is the philosophy?
\nAnd additionally:
\nUNIX is a multiuser time sharing networked operating system, running as an always online service. A UNIX system is a single mainframe computer running an operating system designed for multiple users to access concurrently over the network, equally (depending on implementation) sharing resources amongst the active users.
\nIn a traditional network setup, there is one mainframe UNIX machine with multiple dumb terminals connected to it over the network. None of the users touch the mainframe physically. Instead, they interact with it exclusively through their own dumb terms. These dumb terminals have minimal or no computing power of their own because all of the actual computation takes place on the mainframe. Built in networking is a given.
\nAs for the actual software running on the mainframe, it\'s quite simple to visualize. A Unix system is a flexible but organized stack of concepts, each depending on the concept below, all working together for the sole purpose of enabling the end user to play video games and watch videos online.
\n / user applications \\\n / shells \\\n / daemons \\\n / file systems \\\n / kmods/drivers \\\n / syscalls \\\n / kernel \\\n/ hardware \\\n
\nIn order to fully explain why UNIX is sublime, I will start from the bottom and work my way upward. Before I discuss the shell, I will explain the multiuser aspects of the system. Then, after a long arduous journey of verbosity, explain how to actually use the thing.
\nThe kernel is something the user rarely interacts with. It abstracts all the hard parts away from the user. No more poking random memory addresses to load a program from tape.
\nIn order to support multiple users, resource sharing was implemented. When a user\'s process requests CPU time, it\'s put into a rotational queue along with the other requests for CPU time. Round robin style concurrency is one of the easiest to implement but most modern systems use a weighted model that prioritizes processes owned by specific users. Memory and disk space are typically assigned hard limits to prevent system crashes. \"Ask your sysadmin if you need more resources.\"
\nAbstracting memory management from users is almost necessary in a multitasking system. The kernel must be the arbiter of all. The most interesting thing about virtual memory is that it doesn\'t actually need to be a RAM stick, but can be a swap partition on a disk or even a remote cloud provider if you\'ve actually lost your mind. This type of flexibility improves system stability. Instead of a kernel panic when memory runs out, the kernel can de-prioritize nonessential or idle processes by sending them to swap space.
\nNo more fragmented memories! The kernel maintains a page table that maps logical locations to physical locations. Instead one continuous chunk of memory, the kernel divides memory into small sections called \"pages\". When allocating memory, the kernel might not give a process continuous pages. The advantage of a paged memory scheme further enables multiuser computing. Example: When you have a large program like a web browser open, the pages that contains the unfocused tabs can be swapped out to disk without stalling the entire browser.
\nWhen a process requests a resource, it sends a syscall to the kernel. The kernel then responds to the system call. This allows for privilege separation. Does your web browser need direct access to all memory? What about all files? Do we even want to write assembly every time we want to access a file? Syscalls are dual purpose: abstraction and security.
\nKernel modules are dynamic \"extensions\" that give the kernel new features (typically hardware support). The ability to dynamically load/unload modules as hardware changes increases uptime because it means a new kernel doesn\'t need to be compiled, installed, and booted into every time we plug in a different peripheral.
\nA UNIX filesystem is hierarchical. Each directory contains files or other directories, each with a specific purpose. This type of organization makes it very easy to navigate and manage a system. Each child directory inherits ownership and permissions unless otherwise specified (see Access Control).
\nIn order to visualize this, I imagine a tree-like structure descending from the root directory, /
. The tree(1)
program shows this type of hierarchy.
The idea behind virtual filesystems is, again, abstraction. Using the concept of a virtual file system, multiple disks can be presented to the user and programmer as a single unified filesystem. This means mounted local disks, NFS shares, and even the contents of a CDROM are presented as if the files contained therein are \"just on the big hard drive\".
\nAdditionally, using bind mounts, a directory can be mounted onto another directory as if it were just another filesystem.
\nThe final interesting thing about virtual filesystems is the concept of a ramdisk: mounting a section of memory so that it can be used as if it was an ordinary directory. <--Shoot foot here.
\nWell, almost everything is presented as if it were a file. This greatly simplifies programming.
\nPrime example: /dev/urandom
is a random entropy generator presented as a file, making it very simple for a programmer to implement seeded RNG in a program.
Another example: The kernel translates mouse input into a data stream that can be opened as a file. The programmer only needs to read from /dev/mouse0
instead of writing hundreds of mouse drivers for a clicky GUI.
Exercise 1: Try running this command then wiggling your mouse:
\n# Linux\n$ sudo cat /dev/input/mouse0\n\n# FreeBSD\n$ sudo cat /dev/sysmouse\n
\nYet another example: the TTY is just a file. You can even print it to a text file using setterm(1)
on Linux.
Exercise 2:
\n[user@fedora ~]$ sudo setterm --dump 3\n[user@fedora ~]$ cat screen.dump\n\nFedora Linux 36 (Workstation Edition)\nKernel 5.18.5-200.fc36.x86_64 on an x86_64 (tty3)\n\nfedora login: root\nPassword:\nLast login: Sat Jul 30 14:34:20 on tty3\n[root@fedora ~]# /opt/pfetch/pfetch\n ,'''''. root@fedora\n | ,. | os Fedora Linux 36 (Workstation Edition)\n | | '_' host XXXXXXXXXX ThinkPad T490\n ,....| |.. kernel 5.18.5-200.fc36.x86_64\n.' ,_;| ..' uptime 20d 22h 40m\n| | | | pkgs 3910\n| ',_,' | memory 6522M / 15521M\n '. ,'\n '''''\n\n[root@fedora ~]#\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n[user@fedora ~]$\n
\nYet another way of \"mounting\" a file or directory to another file or directory is linking. There are two types of links: hard links and symbolic links.
\nOn UNIX, files are indexed by inodes (index nodes). Using links, we can make \"shortcuts\" to files.
\nHard linking adds a \"new index\" to a file. They share an inode. If the original file is removed, the file persists in storage because the secondary file created by a hard link still exists. Think \"different name, same file\"
\nSymlinks are like pointers. A symlink points to the original file instead of the inode. If you remove the original file, the symlink breaks because it points to a file that points to an inode rather than simply pointing to an inode.
\nUsing links, we can make files more convenient to access as if we are \"copying\" files without actually copying files.
\nOn a UNIX system, file extensions are arbitrary. UNIX determines file type by reading the file headers. The file tells you exactly what type of file it is (just read it). The entire system does not break when a file extension doesn\'t match the expected contents of the file.
\nExtensions only matter when you wilfully associate with the microsoft users leaving issues on your software repos. \"Not my OS, not my issue, it\'s open source so fork it if you don\'t like it\"
\nSee also: Multitasking.
\nExercise 3: attempt to use Windows like a multiuser operating system and get back to me when you have realized that any and all claims made by microsoft about how their \"multi user enterprise system\" is in any way capable of competing with a genuine multi-user UNIX system are false advertising.
\nA multiuser system needs a way to manage users and categorize them for access control purposes. Every user has a single user account and belongs to 0 or more groups. Sorting users into groups at the time of account creation makes is significantly easier than granting/revoking permissions user-by-user. Additionally, using something like rctl(8)
on FreeBSD allows a systems administrator to allocate resources to specific users, groups, or login classes (like groups).
On a UNIX system, every process is owned by a user. In the case of a service, the process is owned by a daemon account. Daemon accounts have limited permissions and make it possible to run persistent services as a non-root user.
\nSince UNIX was designed to be a multiuser system, access control is required. We know about users, we know about groups, but what about permissions?
\nThere are three types of operations that can be done to a file: read, write, and execute. Who can the admin grant these permissions to? The Owner, the Group, and the Other (all). This type of access control is called discretionary access control because the owner of the file can modify files at their own discretion.
\nAll UNIX utilities worth using use 3 data streams:
\nThe shell is how a user actually interacts with a UNIX system. It\'s a familiar interface that allows a human user to interact with a computer using real human language.
\nExplicitly telling the computer to do is infinitely less agonizing than dealing with a computer that tries to do what it thinks you want it to do by interpreting input from a poorly designed, overly engineered interface.
\nThe shell, in addition to being an interactive interface, is also scriptable. Although math is a struggle, shell scripting is a fairly simple way of automating tasks. Taping together interoperable commands you already know makes everything easier. My favorite aspect about writing POSIX shell scripts is knowing that shell is a strongly, statically typed language where the only datatype is string.
\nProblem that are difficult or messy to solve in shell usually mean it\'s time to write another small C program for your specific needs. Adding the new program into the shell pipeline is trivial.
\nPipes, the concept that makes UNIX so scriptable. A shell utility that follows the UNIX philosophy will have a non-captive interface, write uncluttered data to stdout, read from stdin, and error to stderr. The |
pipe character instructs programs to send their stdout to the next stdin in the pipeline instead of printing to the terminal.
All standard command line utilities are interoperable and can be easily attached like building blocks. \"Meta programming\" has never been easier.
\nPipes make it so that every UNIX program is essentially a filter. Sure, you could just use awk, but I prefer shell.
\nUNIX is a non-simple modular operating system designed for 1970s big iron mainframes but we love it too much to let it go. Compared to minimal hobbyist operating systems, UNIX is BIG. Compared to commercial operating systems, free UNIX is small. Maybe slightly more than minimum viable but the papercuts are mild enough to forgive.
\nThis script was trimmed to serve as an example.
The three options shown (email, jop, dots) demonstrates, how to list items with case statements:
\nThe text files created after the archive serves as an item list
\nwith current permissions.
tar --directory= /path/to/directory/ --create --file INSERT_ARCHIVE_NAME.tar /path/to/file;
#!/bin/bash\n#License: GPL v3\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program. If not, see <https://www.gnu.org/licenses/>.\n\n#Name: getoverhere.sh\n#Purpose:\n#Version: beta 0.07\n#Author: SGOTI (Some Guy On The Internet)\n#Date: Sat 29 Jan 2022 02:19:29 AM EST\n\n#variables:\nVAR_TBALL=\nVAR_TARGET=\nVAR_JUMP=\nVAR_VALUE=\n\n#start:\ncat << "EOT01"\nOptions:\n email |"${HOME}/.thunderbird/"\n jop |"${HOME}/Documents/joplin"\n dots |"${HOME}/.bashrc .vimrc .bash_aliases"\nEOT01\n\necho -e "What do you want to backup? : \\c."\nread VAR_VALUE\n\ncase ${VAR_VALUE} in\n "email" )\nVAR_TBALL="INSERT_EMAIL_NAME$(date +%m-%d-%Y).tar.gz"\nVAR_TARGET="msgFilterRules.dat"\nVAR_JUMP="${HOME}/.thunderbird/*.default-release/ImapMail/imap.mail.yahoo.com/"\n echo -e "Grabbing INSERT_EMAIL_NAME...\\n"\ntar -C ${VAR_JUMP} --create --file ${VAR_TBALL} --gzip ${VAR_TARGET}\n sleep 1\n\nVAR_TBALL="INSERT_EMAIL_NAME$(date +%m-%d-%Y).tar.gz"\nVAR_TARGET="msgFilterRules.dat"\nVAR_JUMP="${HOME}/.thunderbird/*.default-release/ImapMail/imap.gmail.com/"\n echo -e "Grabbing INSERT_EMAIL_NAME...\\n"\ntar -C ${VAR_JUMP} --create --file ${VAR_TBALL} --gzip ${VAR_TARGET}\n sleep 1\n\nVAR_TBALL="EMAIL_ARCHIVES$(date +%m-%d-%Y).tar.gz"\nVAR_TARGET="Mail/"\nVAR_JUMP="${HOME}/.thunderbird/*.default-release/"\n echo -e "Grabbing email EMAIL_ARCHIVES...\\n"\ntar -C ${VAR_JUMP} --create --file ${VAR_TBALL} --gzip ${VAR_TARGET}\n echo -e "Creating List for ${VAR_TBALL}...\\n"\nls -lhAR --group-directories-first ${VAR_JUMP}${VAR_TARGET} > EMAIL_ARCHIVES$(date +%m-%d-%Y).txt\n sleep 1\n\nVAR_TBALL="THUNDERBIRD_CALENDER$(date +%m-%d-%Y).tar.gz"\nVAR_TARGET="calenders/"\nVAR_JUMP="${HOME}/Documents/"\n echo -e "Grabbing email THUNDERBIRD_CALENDER...\\n"\ntar -C ${VAR_JUMP} --create --file ${VAR_TBALL} --gzip ${VAR_TARGET}\n echo -e "Creating List for ${VAR_TBALL}...\\n"\nls -lhAR --group-directories-first ${VAR_JUMP}${VAR_TARGET} > THUNDERBIRD_CALENDER$(date +%m-%d-%Y).txt\n sleep 1\n\nVAR_TBALL="THUNDERBIRD_ADDRESS_BOOK$(date +%m-%d-%Y).tar.gz"\nVAR_TARGET="address-book/"\nVAR_JUMP="${HOME}/Documents/"\n echo -e "Grabbing ${VAR_TARGET}...\\n"\ntar -C ${VAR_JUMP} --create --file ${VAR_TBALL} --gzip ${VAR_TARGET}\n echo -e "Creating List for ${VAR_TBALL}...\\n"\nls -lhAR --group-directories-first ${VAR_JUMP}${VAR_TARGET} > THUNDERBIRD_ADDRESS_BOOK$(date +%m-%d-%Y).txt\n sleep 1\n\nVAR_TBALL="THUNDERBIRD_ALL$(date +%m-%d-%Y).tar.gz"\nVAR_TARGET=".thunderbird/"\nVAR_JUMP="${HOME}/"\n echo -e "Grabbing ${VAR_TARGET}...\\n"\ntar -C ${VAR_JUMP} --create --file ${VAR_TBALL} --gzip ${VAR_TARGET}\n echo -e "Creating List for ${VAR_TBALL}...\\n"\nls -lhAR --group-directories-first ${VAR_JUMP}${VAR_TARGET} > THUNDERBIRD_ALL$(date +%m-%d-%Y).txt ;;\n\n "jop" )\nVAR_TBALL="JOPLIN$(date +%m-%d-%Y).tar.gz"\nVAR_TARGET="joplin/"\nVAR_JUMP="${HOME}/Documents/"\n echo "Grabbing ${VAR_TARGET}"\ntar -C ${VAR_JUMP} --create --file ${VAR_TBALL} --gzip ${VAR_TARGET}\n sleep 1\n echo -e "Creating List for ${VAR_TBALL}...\\n"\nls -lhAR --group-directories-first ${VAR_JUMP}${VAR_TARGET} > JOPLIN$(date +%m-%d-%Y).txt ;;\n\n "dots" )\nVAR_TBALL="dots$(date +%m-%d-%Y).tar.gz"\nVAR_TARGET=".bashrc .vimrc .bash_aliases"\nVAR_JUMP="${HOME}/"\n echo "Grabbing ${VAR_TARGET}"\ntar -v -C ${VAR_JUMP} --create --file ${VAR_TBALL} --gzip ${VAR_TARGET} ;;\n\n * )\n echo "Good Heavens..." ;;\nesac\nexit;\n
\ntar --extract --directory= /path/to/directory/ --file /path/to/file;
cp -v -t /path/to/directory *08-05-2022.tar.gz;
command is used totar --extract
example to keep things short and sweet.VAR_TBALL="EMAIL_ARCHIVES*.tar.gz"\nVAR_JUMP="${HOME}/.thunderbird/*.default-release/"\n echo -e "Restoring EMAIL_ARCHIVES...\\n"\ntar --extract --directory= ${VAR_JUMP} --file ${VAR_TBALL}\n echo -e "EMAIL_ARCHIVES restored.\\n"\n
\n',391,0,0,'CC-BY-SA','sysadmin, system maintenance, tar, backups',0,0,1),
(3664,'2022-08-18','Secret hat conversations',1070,'You\'ll need your tin hat for this one.','The Tin Foil Hat often worn in the belief or hope that it shields the brain from threats such as electromagnetic fields, mind control, and mind reading.
\nFCC Caller ID Spoofing info: Spoofing is when a caller deliberately falsifies the information transmitted to your caller ID display to disguise their identity.
\nFCC Call Blocking info: Call blocking is a tool used by phone companies to stop illegal and unwanted calls from reaching your phone. A second annual FCC report released in June 2021 found that many voice service providers and third-party analytics companies are improving their call blocking and labeling services and use new data to better detect robocalls. Billions of unwanted calls to American consumers are being blocked each year.
\nThe PinePhone Pro Explorer Edition is aimed at Linux developers with an extensive knowledge of embedded systems and/or experience with mobile Linux.
\nTime-based one-time password (TOTP) is a computer algorithm that generates a one-time password (OTP) that uses the current time as a source of uniqueness. As an extension of the HMAC-based one-time password algorithm (HOTP), it has been adopted as Internet Engineering Task Force (IETF) standard RFC 6238.
\nMatrix is an open standard for interoperable, decentralised, real-time communication over IP.
\nPassword Managers: Used by Some Guy On The Internet.
\nBitwarden
\nKeePassXC
\nWelcome to our new host:
\n\n Fred Black.\n
Note to Volunteers: Comments marked in green were read in the last\nCommunity News show and should be ignored in this one.
These are comments which have been made during the past month, either to shows released during the month or to past shows.\nThere are 11 comments in total.
\nThere are 4 comments on\n4 previous shows:
\nUpdated on 2023-08-21 14:48:04
\nThere are 7 comments on 5 of this month\'s shows:
\n\nPolicy decisions surrounding HPR are taken by the community as a whole. This\ndiscussion takes place on the Mail List which is open to all HPR listeners and\ncontributors. The discussions are open and available on the HPR server under\nMailman.\n
\nThe threaded discussions this month can be found here:
\nhttps://lists.hackerpublicradio.com/pipermail/hpr/2023-August/thread.html\n\n\nWith the kind permission of LWN.net we are linking to\nThe LWN.net Community Calendar.
\nQuoting the site:
\nThis is the LWN.net community event calendar, where we track\nevents of interest to people using and developing Linux and free software.\nClicking on individual events will take you to the appropriate web\npage.\n\n
\nWelcome to our new host:
\n\n Fred Black.\n
Note to Volunteers: Comments marked in green were read in the last\nCommunity News show and should be ignored in this one.
These are comments which have been made during the past month, either to shows released during the month or to past shows.\nThere are 16 comments in total.
\nThere are 5 comments on\n5 previous shows:
\nUpdated on 2023-08-23 22:52:00
\nThere are 11 comments on 7 of this month\'s shows:
\n\nPolicy decisions surrounding HPR are taken by the community as a whole. This\ndiscussion takes place on the Mail List which is open to all HPR listeners and\ncontributors. The discussions are open and available on the HPR server under\nMailman.\n
\nThe threaded discussions this month can be found here:
\nhttps://lists.hackerpublicradio.com/pipermail/hpr/2023-August/thread.html\n\n\nWith the kind permission of LWN.net we are linking to\nThe LWN.net Community Calendar.
\nQuoting the site:
\nThis is the LWN.net community event calendar, where we track\nevents of interest to people using and developing Linux and free software.\nClicking on individual events will take you to the appropriate web\npage.\n\n
In this episode, I talk about getting in to the field of cybersecurity or moving up in the field. I also talk about how keyboards could keep malware from going Boom on your system.
\nTry This One Weird Trick Russian Hackers Hate
\nhttps://krebsonsecurity.com/2021/05/try-this-one-weird-trick-russian-hackers-hate/
Fake VM Sandbox artifacts - not talked about in this episode
\nhttps://github.com/NavyTitanium/Fake-Sandbox-Artifacts
Has your password been involved in a breach?
\nhttps://haveibeenpwned.com/
Realtime Global Cyber Attack Map
\nhttps://threatmap.checkpoint.com/
In this week\'s episode, I chat with R. Brady Frost about the little plumber vs the gigantic rock. Then we move in to a discussion about the fallacy of stupid users with some great stories of stupid things done by those of us who really should know better. The moral of the story, is that we are all human and nothing will ever change that. Instead, we need to be prepared for when humans are human.
\nIf you didn\'t really understand my mumbling and stuttering, here is\nthe page ;-)
\nhttps://en.wikipedia.org/wiki/Nyckelharpa
\n',422,0,0,'CC-BY-SA','Music, quiz, Instrument',0,0,1), (3938,'2023-09-06','An open directory of web audio stream',1116,'I was looking for an open directory of web audio streams and found radio hyphen browser dot info.','https://www.radio-browser.info\nthe site has good searching features, and even has a player. It has a\nmap view that\'s cute but not too useful because it doesn\'t zoom in\nenough. Still fun to fly around the world and tune in simply by clicking\nthe balloons, you should try it.
\nMobile apps that use this directory are found on https://www.radio-browser.info/users.\nThe ones I\'ve used are TuneFM (with ads, pay what you want (I think) to\nremove ads, but very good Android Auto), and Transistor (no Android\nAuto, otherwise perfect). Open Radio is pretty good but the Android Auto\nis buggy. I have not tried any others.
\nThe episode in which Ken Fallon interviewed one of the maintainers of\nFunkwhale was hpr3808.
\nSome stations I\'ve been listening to:
\nI talk about how I fail at Cell Phone Screen Protectors
\n',36,0,1,'CC-BY-SA','tech,phone repair,cell phones,Screen Protectors',0,0,1), -(3932,'2023-08-29','Short introduction to inxi',437,'folky gives the show about inxi that Ken wished for','We could make a series of this?
\n
Source: hpr3904 ::\nHow to make friends
\n
Source: hpr3942 ::\nRE: How to make friends.
\n
Source: Friendship
\n
Source: Interpersonal\nrelationship
\n
Source: Affection
\n
Source: Blood\nbrother.
\n
Source: Honour
\n
Source: Ted Bundy
\n
I thought this was funny: How to Ask a\nFriend to Hang Out.
\n',391,0,1,'CC-BY-SA','making friends, Mugsup, group chat',0,0,0); +(3932,'2023-08-29','Short introduction to inxi',437,'folky gives the show about inxi that Ken wished for','We could make a series of this?
\n
Source: hpr3904 ::\nHow to make friends
\n
Source: hpr3942 ::\nRE: How to make friends.
\n
Source: Friendship
\n
Source: Interpersonal\nrelationship
\n
Source: Affection
\n
Source: Blood\nbrother.
\n
Source: Honour
\n
Source: Ted Bundy
\n
I thought this was funny: How to Ask a\nFriend to Hang Out.
\n',391,0,1,'CC-BY-SA','making friends, Mugsup, group chat',0,0,1), +(3944,'2023-09-14','Race for the Galaxy',947,'tuturto explains very basics of card game called Race for the Galaxy','Race for the galaxy
\nRace for the galaxy is a four player card game published by Rio\nGrande Games.
\nThe goal of the game is to build a space imperium and the player with\nmost victory points wins.
\nThere\'s also a computer version of the game, which saves you from\npacking up the game after playing.
\nThere are five phases in turn:
\nAt the beginning of turn, every player selects one of these phases\nand selections are revealed simultaneously. Only selected phases will be\nplayed. Player who selected a phase gets a small bonus.
\nExplore
\nDevelop
\nSettle
\nConsume:
\nProduce:
\nrepeat until:
\nscore:
\nAll expansions add new cards.
\n\n\n\n
\n- goals (first and most)
\n- extra player
\n
\n\n\n
\n- solo play
\n- take over (conquer other player\'s worlds)
\n- extra player
\n
\n\n\n
\n- - prestige
\n- \n
\n\n
\n- counts as VP in the end
\n- can be used to perform actions
\n\n
\n- requires two previous expansions
\n
\n\n\n
\n- incompatible with previous expansions
\n- 49 cards representing alien orb players can explore
\n- balance between expanding and exploring
\n