Skip to content

Instantly share code, notes, and snippets.

View n8henrie's full-sized avatar

Nathan Henrie n8henrie

View GitHub Profile
@n8henrie
n8henrie / jessie_lite_2015-11-21.txt
Created December 14, 2015 23:06
http://n8henrie.com/2015/12/default-packages-on-raspbian-jessie-jessie-lite-and-wheezy Default packages on fresh image of Raspbian Jessie Lite 2015-11-21 SHA-1 97888fcd9bfbbae2a359b0f1d199850852bf0104
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================-==========================-============-===============================================================================
ii acl 2.2.52-2 armhf Access control list utilities
ii adduser 3.113+nmu3 all add and remove users and groups
ii alsa-utils 1.0.28-1 armhf Utilities for configuring and using ALSA
ii apt 1.0.9.8.1 armhf commandline package manager
ii apt-utils 1.0.9.8.1 armhf package management related utility programs
@n8henrie
n8henrie / jessie_2015-11-21.txt
Created December 14, 2015 23:06
http://n8henrie.com/2015/12/default-packages-on-raspbian-jessie-jessie-lite-and-wheezy Default packages on fresh image of Raspbian Jessie 2015-11-21 SHA-1 ce1654f4b0492b3bcc93b233f431539b3df2f813
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================-=========================================-============-===============================================================================
ii acl 2.2.52-2 armhf Access control list utilities
ii adduser 3.113+nmu3 all add and remove users and groups
ii adwaita-icon-theme 3.14.0-2 all default icon theme of GNOME
ii alacarte 3.11.91-2+rpi1 all easy GNOME menu editing tool
ii alsa-base 1.0.27+1
#!/bin/bash
# Original post at http://n8henrie.com/2012/12/pinboard-backups-with-curl-and-launchd/
curl -k -u "[username]:[password]" "https://api.pinboard.in/v1/posts/all?format=json" -o "/Users/[username]/Dropbox/[pathToBackup]/[filename].json"
#!/bin/bash
# Original post at http://n8henrie.com/2013/01/pastebin-backups-with-curl-and-launchd
curl -c "/tmp/pastebinCookie.txt" -d "submit_hidden=submit_hidden&user_name=[username]&user_password=[password]&submit=Login" "http://pastebin.com/login" && curl -b "/tmp/pastebinCookie.txt" "http://pastebin.com/backup.php" -o "/Users/[pathToBackupLocation]/pastebinBackup.zip" && rm "/tmp/pastebinCookie.txt"
#!/bin/bash
set -e
#Originally posted at http://n8henrie.com/2013/01/automator-shell-script-uploading-images-to-wordpress-server
## This script was made as a service in Automator, may need adjustments to function otherwise.
## Look for portions that need to be replaced with your info, as denoted by [*stuff*]
for f in "$@"
do
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.n8henrie.morningUpdates</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/morningUpdates.sh</string>
<string>parameter1</string>
--Originally posted at http://n8henrie.com/2013/01/quicksilver-action-to-format-phone-numbers
--Corresponding bash script at http://pastebin.com/Dje7s4A7
property pathToShellScript : "/Users/.../fixPhoneNumbers.sh"
using terms from application "Quicksilver"
on process text str
set result to do shell script "echo \"" & str & "\" | " & quoted form of pathToShellScript
-- Relevant post here: http://n8henrie.com/2012/08/show-or-hide-hidden-files-on-your-mac-with-applescript/
set question to display dialog "Show or hide hidden files?" & return & "Don't that forget this will relaunch Finder." buttons {"Show hidden files", "Hide hidden files", "Cancel"}
set theAnswer to button returned of result
if theAnswer is "Show hidden files" then
do shell script "defaults write com.apple.Finder AppleShowAllFiles TRUE && killall Finder"
end if
if theAnswer is "Hide hidden files" then
do shell script "defaults write com.apple.Finder AppleShowAllFiles FALSE && killall Finder"
end if
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!-- Original post at http://n8henrie.com/2012/12/pinboard-backups-with-curl-and-launchd/ -->
<dict>
<key>Label</key>
<string>com.n8henrie.pinboardBackup</string>
<key>ProgramArguments</key>
<array>
<string>/Users/[username]/Dropbox/[pathToScript]/pinboardBackup.sh</string>
javascript:window.location='pythonista://Import Pythonista Script from Bookmarklet?action=run&argv='+encodeURIComponent(document.location.href);