This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do shell script "/usr/sbin/networksetup -setairportpower en1 off" | |
do shell script "/usr/sbin/networksetup -setairportpower en1 on" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
if [ $(git symbolic-ref HEAD 2> /dev/null) = "refs/heads/master" ] | |
then | |
git checkout gh-pages | |
git merge master | |
git checkout master | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin link($px: 2, $style: solid, $color: white) { | |
text-decoration: none; | |
border-bottom: $px*1px $style $color; | |
} | |
@mixin font-size($font-size: 16) { | |
font-size: $font-size*1px; | |
font-size: $font-size/16*1rem; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'date' | |
class DataPoint | |
# Create a new data point. | |
# | |
# tag_name - A String containing a name or identifier for the | |
# data being measured. | |
# time_recorded - A DateTime object for the recording time. | |
# data - A String or Float which is the recorded data. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/.sass-cache | |
/public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
GIT_REPO="/home/private/mybuddymichael.git" | |
PUBLIC="/home/public/dev/" | |
cd $PUBLIC || exit | |
unset GIT_DIR | |
echo "*** Pulling changes into prime." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns pgbot/main) | |
(js/alert "Hi!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__git_ps1() { | |
local b="$(git symbolic-ref HEAD 2>/dev/null)"; | |
if [ -n "$b" ]; then | |
printf " (%s)" "${b##refs/heads/}"; | |
fi | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/ruby | |
require "socket" | |
# Don't allow use of "tainted" data by potentially dangerous operations | |
$SAFE = 1 | |
class IRC | |
def initialize(server, port, nick, channel) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ip_address="$1" | |
ping -c 1 "$ip_address" > /dev/null | |
if [ $? -gt 0 ]; then | |
log_line="`date` : Ping to $ip_address unsuccessful, REBOOTING." | |
echo "$log_line" >> /var/log/ping-or-reboot | |
/sbin/reboot |
OlderNewer