Skip to content

Instantly share code, notes, and snippets.

View matthewcosgrove's full-sized avatar

Matthew Cosgrove matthewcosgrove

View GitHub Profile
@matthewcosgrove
matthewcosgrove / osx-for-hackers.sh
Created November 30, 2016 12:55 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@matthewcosgrove
matthewcosgrove / install_virtualbox5_centos7.sh
Created November 13, 2018 19:56
Install VirtualBox 5.0.x in CentOS 7
#!/bin/sh
echo ">>>> System update and get minimal required modules to use vboxdrv kernel <<<<"
yum update -y
yum install -y binutils qt gcc make patch libgomp glibc-headers glibc-devel
echo ">>>> Getting kernel headers and DKMS to favour future VirtualBox kernel Updates <<<<"
yum install -y kernel-headers kernel-devel dkms
repoFile="/etc/yum.repos.d/virtualbox.repo"
@matthewcosgrove
matthewcosgrove / cloudflare-update-record.sh
Created December 26, 2018 20:40 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
#!/bin/bash
# CHANGE THESE
auth_email="user@example.com"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)
@matthewcosgrove
matthewcosgrove / gist:3ce949f0f95c7da47b718ca4ae416ada
Created December 29, 2018 12:41 — forked from gin1314/gist:3697341
bash: redirection cheat sheet
.---------------------------------------------------------------------------.
| |
| Bash Redirections Cheat Sheet |
| |
+---------------------------------------------------------------------------+
| |
| Created by Peteris Krumins (peter@catonmat.net) |
| www.catonmat.net -- good coders code, great coders reuse |
| |
+-----------------------------.---------------------------------------------+