Skip to content

Instantly share code, notes, and snippets.

View ferthalangur's full-sized avatar

Rob Jenson ferthalangur

View GitHub Profile
@ferthalangur
ferthalangur / download_all_ebooks.bash
Last active July 12, 2017 12:25
Download all Free Microsoft Ebooks (*nix Script)
#!/bin/bash
#
# Download Free Microsoft Ebooks
# ------------------------------
# Eric Ligman has made a large number of Microsoft Ebooks available for free,
# no strings attached. He provided a Power Shell script, but not a /(Li|U)n[iu]x/ script.
# See: https://blogs.msdn.microsoft.com/mssmallbiz/2017/07/11/largest-free-microsoft-ebook-giveaway-im-giving-away-millions-of-free-microsoft-ebooks-again-including-windows-10-office-365-office-2016-power-bi-azure-windows-8-1-office-2013-sharepo/
# ... yes, that's a sick URL that needs shortening:
# See: http://bit.ly/2tHlCY5 for details
#==============================================================================
@ferthalangur
ferthalangur / keybase.md
Created August 12, 2016 10:16
keybase.md

Keybase proof

I hereby claim:

  • I am ferthalangur on github.
  • I am ferthalangur (https://keybase.io/ferthalangur) on keybase.
  • I have a public key whose fingerprint is 9152 5B82 35DD 718F 3D52 CD4C 1D3A A60C 86EF 0FF0

To claim this, I am signing this object:

api.cltk.org. 86400 IN A 45.55.109.231
archive.cltk.org. 86400 IN A 45.55.109.231
archive-test.cltk.org 86400 IN A 45.55.109.231
api-test.cltk.org 86400 IN A 45.55.109.231
cltk.org. 3600 IN TXT "v=spf1 ip4:45.55.109.231/32 include:github.com ~all"
@ferthalangur
ferthalangur / list_mailman_list_members.bash
Last active March 10, 2016 23:19
List members of all Mailman lists on a remote server
#!/bin/bash
#############################################################
# list_mailman_list_members
#
# Bash script to log in to a server running Mailman
# software and generate a list of members of each list.
#
# Configurable Parameters:
#
# SERVER: Hostname, FQDN or alias in your SSH config for the server
@ferthalangur
ferthalangur / sync_github_repos.bash
Created December 5, 2015 20:18
Backup GitHub Repositories of interest to a local disk drive
#!/bin/bash
#############################################################
# sync_github_repos
#
# Very simple Bash script to run from cron that will synchronize
# a repository from github.com to our NFS backup disk
# (automounted here as /nfs/netbackups/gitbackups). This will
# also pull the wiki repository, if there is one. We can't pull
# the issues with this script because the GitHub API requires
# a username and password, and we prefer using SSH key authentication.
@ferthalangur
ferthalangur / .gitignore_global
Created November 22, 2015 22:21
My Global .gitignore file to avoid including Emacs, Microsoft Office, and OS/X artifacts.
# -*- mode: gitignore; -*-
#########################
# Emacs temporary files #
#########################
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
@ferthalangur
ferthalangur / prune_tm_backups.bash
Last active January 6, 2017 19:34
Prune Apple OS X Time Machine backups
#!/bin/bash
#############################################################################
# Bash script to delete some number of Apple OS X
# Time Machine (TM) backups, always keeping a minimum number. The goal
# is to rely on the _tmutil_ utility instead of physically accessing
# the files directly ... in hopes that this is less likely to corrupt
# the Time Machine database.
#
# Defaults are set to delete up to 5 backups, and keep a minimum of 5
#