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
alias ds="find -maxdepth 1 -type d -path '.\/*' -exec du -sh {} \;" | |
alias sds="sudo find -maxdepth 1 -type d -path '.\/*' -exec du -sh {} \;" | |
alias dsg="find -maxdepth 1 -type d -path '.\/*' -exec du -sh {} \; | grep " | |
alias sdsg="sudo find -maxdepth 1 -type d -path '.\/*' -exec du -sh {} \; | grep " |
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
/* the following is the result of viewing /css/style.css (which runs through LessServlet) */ | |
body{background:#9de;color:black;} |
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 python | |
# Based on http://stackoverflow.com/questions/982659/quickly-create-large-file-on-a-windows-system | |
import os | |
import sys | |
if len(sys.argv) != 3: | |
print 'usage: mkbigfile.py <filename> <size in gb>' | |
sys.exit(1) | |
# Grab the filename and requested size, convert the size to bytes |
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
set testHost to "google.com" | |
set errorSubject to "Internet Died" | |
set errorRecipientName to "Your Name" | |
set errorRecipientAddress to "your@ddr.ess" | |
set audioFile to "Macintosh HD:Users:rnelson:Music:iTunes:iTunes Music:Bad Religion:The Process of Belief:04 Broken.mp3" -- Broken, just like my internet | |
repeat | |
-- Try to use the network | |
set command to "/usr/sbin/scutil -r " & testHost |
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 ruby | |
require 'rexml/document' | |
# Open in.rdf and parse it as XML | |
xml = REXML::Document.new File.new('in.rdf') | |
# Go through every <rdf:Description> tag | |
xml.elements.each('//rdf:Description') do | description | | |
# Go through every <find> tag underneath the <rdf:Description> | |
# that we're currently looking at |
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 python | |
# Based on http://stackoverflow.com/questions/982659/quickly-create-large-file-on-a-windows-system | |
import os | |
import sys | |
if len(sys.argv) != 3: | |
print 'usage: mkbigfile.py <filename> <size in gb>' | |
sys.exit(1) | |
# Grab the filename and requested size, convert the size to bytes |
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
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <inttypes.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
void usage(); |
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 ruby | |
require 'optparse' | |
require 'ostruct' | |
require 'pp' | |
class MkBigFile | |
attr_reader :name, :version, :options | |
TYPES = %w[zero sparse] | |
def initialize() |
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
@ECHO OFF | |
REM Make sure to set up those platforms under Build > Configuration Manager before | |
REM running this. | |
set PROJFILE=MyAwesomeApp.sln | |
msbuild %PROJFILE% /nologo /t:Rebuild /p:Configuration=Debug;Platform=x86;RunCodeAnalysis=False | |
msbuild %PROJFILE% /nologo /t:Rebuild /p:Configuration=Release;Platform=x86;RunCodeAnalysis=False | |
msbuild %PROJFILE% /nologo /t:Rebuild /p:Configuration=Debug;Platform=x64;RunCodeAnalysis=False | |
msbuild %PROJFILE% /nologo /t:Rebuild /p:Configuration=Release;Platform=x64;RunCodeAnalysis=False |
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 | |
# | |
# newnetbsd.sh - set up a fresh NetBSD install | |
# | |
# Prereq: | |
# - During install: | |
# - Configure your network | |
# - Install pkgin ("Enable installation of binary packages") | |
# - Fetch/unpack pkgsrc | |
# - Run ntpdate at boot |
OlderNewer