-
-
The History Of Computing: The Mother Of All Demos
-
The History Of Computing: The Tetris Negotiations
-
The MacAdmins Podcast: Managing Everything with Charles and Rich
-
Convert File Encoding Types
Digging into old software, or software written on different systems, often ends up resulting in a mismatch in encoding types. Given how common this can be, most flavors of Linux and macOS come with a built-in utility for converting files between various encoding types in iconv. To use it, simply provide the source format as a -f and the target format as a -t. In the below example we’ll also bring a sourcefile.txt in using the < and kick out a targetfile.txt, or the file with the source converted using a >: iconv -f KOI8-U -t utf-16 < sourcefile.txt > destinationfile.txt You could also pipe the output of an echo…
-
The History Of Computing: Apple in the late 80s, The Blue Meanies, Pink, Taligent, and IBM
-
Scripting the Temp and Cache Directories on a Mac
Ever see a weird folder like /var/folders/g0/lr10g_wx4t75s2hd5129qhkc0000gn/T/ and wonder why it’s there? Those are usually Darwin or shell temporary or cache directories. They are where those weird temp directories you need to access are written to and read from. Apple uses these to host volatile sql databases and a number of scripts use them to house a file and protobuffs prior to processing. You too can access them in your scripts when needed. The most common is a built-in shell temp that you can easily access just by echoing out the contents of $TMPDIR: echo $TMPDIR Darwin has some as well; most notably in DARWIN_USER_CACHE_DIR and DARWIN_USER_TEMP_DIR where each can…
-
Web Server Bash One Liner for Linux or Mac
The nc (or netcat) binary is useful for a variety of TCP or UDP operations. You can open a listener, proxy connections, open a connection to another device, and port scan a device. And you can do it all through TCP and/or UDP, define ports, and scripting with nc is pretty easy. So in the below code we’ll start a while loop and then execute an echo of a header so a browser knows how to interpret what we’re sharing, which is a cat of our file. Then we’ll pipe that into netcat with a -l option so we can define the port and end the loop. while TRUE; do…
-
Jamf After Dark Podcast: Conditionally Accessing All The Things
- Mac OS X, Mac OS X Server, Mac Security, MacAdmins Podcast, The History Of Computing, The History Of Computing Podcast
The Origin Of The Blue Meanies