Skip to content

Instantly share code, notes, and snippets.

View whimsyniche's full-sized avatar

Victor whimsyniche

View GitHub Profile
@g3d
g3d / gist:2709563
Last active May 15, 2025 07:00 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan
@agnoster
agnoster / README.md
Last active May 10, 2025 17:44
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@rmanly
rmanly / ard_multi_login.bash
Created October 25, 2012 17:57
ARD login to lab with different accounts
#!/bin/bash
computer_name=$(scutil --get ComputerName)
login() {
/usr/bin/osascript << EOF
tell application "System Events"
keystroke "${1}"
keystroke return
delay 1
@ikawnoclast
ikawnoclast / etc-pf.anchors-emerging-threats
Created October 26, 2012 18:38
Mac OS X pf firewall: Avoiding known bad guys, a blog post on ikawnoclastic thoughts
table <emerging_threats> persist file "/etc/emerging-Block-IPs.txt"
block log from <emerging_threats> to any
@olivierlacan
olivierlacan / gist:4062929
Last active March 12, 2025 04:27 — forked from Gregg/gist:968534
Code School Screencasting Framework

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
echo ""
echo "--Uninstalling pow..."
curl get.pow.cx/uninstall.sh | sh #if you have pow installed
echo ""
echo "--Modifying pow configuration..."
echo 'export POW_DST_PORT=88' >> ~/.powconfig
echo ""
echo "--Modifying Apache configuration..."
@terrywang
terrywang / dumpAccountImage.sh
Last active March 26, 2017 10:04
Extract / dump Mac OS X user account picture using dscl (Directory Service command line utility) and convert (hexdump into binary) it to to a JPEG file. NOTE: The resolution can vary depending on the original size of the photo and what version of the operating system you're using when it is saved.
dscl . -read /Users/username JPEGPhoto | tail -1 | xxd -r -p > /path/to/accountImage.jpg
d='dirs -v | head -10'
egrep='egrep --color=auto'
fgrep='fgrep --color=auto'
g=git
ga='git add'
gb='git branch'
gba='git branch -a'
gc='git commit -v'
gca='git commit -v -a'
gcl='git config --list'
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active June 27, 2025 20:44
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@nmcspadden
nmcspadden / gist:5091486
Last active December 14, 2015 13:09
AddWifi LaunchAgent.plist - the startup launchd item for the AddWifi script.
<?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>org.sacredsf.wifi.plist</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/libexec/add_wifi.sh</string>
</array>