This file contains hidden or 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 | |
# | |
############################################################################### | |
# Magical Single-Interface Routing Script (MSIRS) | |
# | |
# Converts a single, physical interface to 2 separate vlans that can route to | |
# each other. There is no need for a second physical interface or cable. | |
# However, since you are not literally in the middle of every packet, there is | |
# still a chance of an internal computer being connected to directly. It's | |
# unlikely, but because of this risk you should not run this in a production |
This file contains hidden or 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/ruby | |
# The StackOverflow data set is available as an XLSX (Microsoft 2007+ Excel | |
# Spreadsheet) file, which means that most readers will 'helpfully' convert the | |
# data into various formats. | |
# | |
# Also, the data itself is presented as a range of numbers, and for my | |
# statistical analysis I'm using simple numbers, so I take the mean of the | |
# range. |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
01-Our Story (intro).flac:METADATA block #0 | |
01-Our Story (intro).flac: type: 0 (STREAMINFO) | |
01-Our Story (intro).flac: is last: false | |
01-Our Story (intro).flac: length: 34 | |
01-Our Story (intro).flac: minimum blocksize: 4096 samples | |
01-Our Story (intro).flac: maximum blocksize: 4096 samples | |
01-Our Story (intro).flac: minimum framesize: 362 bytes | |
01-Our Story (intro).flac: maximum framesize: 14413 bytes | |
01-Our Story (intro).flac: sample_rate: 44100 Hz | |
01-Our Story (intro).flac: channels: 2 |
This file contains hidden or 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
$ puppet apply truthy.pp | |
"0" is truthy! | |
/Stage[main]//Notify["0" is truthy!]/message: defined 'message' as '"0" is truthy!' | |
1 is truthy! | |
/Stage[main]//Notify[1 is truthy!]/message: defined 'message' as '1 is truthy!' | |
0 is truthy! | |
/Stage[main]//Notify[0 is truthy!]/message: defined 'message' as '0 is truthy!' | |
Finished catalog run in 0.17 seconds |
This file contains hidden or 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
--- | |
:blue: "#3465A4" | |
:cyan: "#06989A" | |
:green: "#4E9A06" | |
:bright_red: "#EF2929" | |
:bright_yellow: "#FCE94F" | |
:bright_purple: "#AD7FA8" | |
:bright_white: "#EEEEEC" | |
:red: "#CC0000" | |
:yellow: "#C4A000" |
This file contains hidden or 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
wget http://URL/BIG_FILE -O/dev/null 2>&1 1>/dev/null | awk '/^ / { speed=$8 } /^\d/ { speed = $7 } { if (NR % 500 == 0) { print "\n" } if (index($speed, "M")) { print substr($speed, 1, index($speed, "M")-1)*1024 } else if (index($speed, "K")) { print substr($speed, 1, index($speed, "K")-1) } else { print 0 } }' | tr '\n' ',' | sed "s/,,/\n/g;s/^,//" > speeds.csv |
This file contains hidden or 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
fs.file-max = 65535 | |
fs.inode-max = 32768 | |
fs.suid_dumpable = 0 | |
kernel.core_uses_pid = 1 | |
kernel.exec-shield = 1 | |
kernel.maps_protect = 1 | |
kernel.msgmax = 65536 | |
kernel.msgmnb = 65536 | |
kernel.panic = 30 | |
kernel.panic_on_oops = 30 |
This file contains hidden or 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
[url "ssh://[email protected]/"] | |
; What to substitute when pushing | |
pushInsteadOf = gh: | |
; What to substitute when pulling/cloning | |
insteadOf = gh: | |
; Inspired by KDE's config. |
This file contains hidden or 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/ruby | |
# A simple CLI client to save images to imgfave.com | |
# It's kind of like an undocumented API but that doesn't matter so much, right? | |
# They've hit inertia beyond what they can easily manage. This so-called 'API' | |
# will be available for a good while anyways. | |
require 'net/http' | |
# 3 parameters passed. |
This file contains hidden or 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
# Maintainer: Gaetan Bisson <[email protected]> | |
# Edited by Colin Shea <[email protected]> | |
# --- | |
# Remember to remove the `.sh' from the filename. it's there to help Gist | |
# syntax highlight this whole shebang. | |
# | |
# See my blog post for more info: http://mindtables.heroku.com/2010/05/18/compiling-jabberd-2-on-arch/ | |
pkgname=jabberd2 | |
pkgver=2.2.9 |