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/bash -e | |
# A SHORT DESCRIPTION OF YOUR SCRIPT GOES HERE | |
# USAGE: | |
# DESCRIPTION OF ENV VARS HERE | |
############################################################################### | |
set -e # exit on command errors (so you MUST handle exit codes properly!) | |
set -o pipefail # capture fail exit codes in piped commands | |
#set -x # execution tracing debug messages | |
# Get command info |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.country { | |
fill: #b8b8b8; | |
stroke: #fff; | |
stroke-width: .5px; | |
stroke-linejoin: round; | |
} |
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
# this is required | |
Import-Module pscx | |
# just drop this into your $profile, somewhere after the above import-module line | |
function With-Env ( | |
[string[]]$vars, | |
[Parameter(Position=1)] | |
[scriptblock]$f | |
) { | |
Push-EnvironmentBlock |
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
[32;01m * [39;49;00mPackage: dev-lang/mono-3.12.1 | |
[32;01m * [39;49;00mRepository: dotnet | |
[32;01m * [39;49;00mMaintainer: [email protected] | |
[32;01m * [39;49;00mUSE: abi_x86_64 amd64 elibc_glibc kernel_linux nls userland_GNU | |
[32;01m * [39;49;00mFEATURES: preserve-libs sandbox userpriv usersandbox | |
[32;01m*[0m Determining the location of the kernel source code | |
[32;01m*[0m Found kernel source directory: | |
[32;01m*[0m /usr/src/linux | |
[32;01m*[0m Found kernel object directory: | |
[32;01m*[0m /lib/modules/4.0.5-gentoo/build |
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
(function() { | |
function makeImg(url) { | |
var result = new Image(); | |
result.src = url; | |
return result; | |
} | |
var images = [ | |
makeImg("http://i.imgur.com/nm0PtVD.jpg"), | |
makeImg("http://i.imgur.com/uxaHo7Z.jpg"), |
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
<!DOCTYPE html> | |
<html lang="zh"> | |
<head> | |
<meta charset="utf-8"/> | |
<style type="text/css"> | |
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td | |
{ | |
margin: 0px; | |
padding: 0px; | |
border: 0px none; |
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
// ==UserScript== | |
// @name FI Data Getter | |
// @namespace https://github.com/aggieben | |
// @version 0.1.2 | |
// @description Download table of transactions as OFX | |
// @match https://*.ibsnetaccess.com/* | |
// @author Benjamin Collins | |
// @copyright 2013, Benjamin Collins | |
// @require http://code.jquery.com/jquery-1.10.2.min.js | |
// @require https://raw.githubusercontent.com/alexei/sprintf.js/master/dist/sprintf.min.js |
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
// ==UserScript== | |
// @name Show Deleted Chat Messages | |
// @namespace https://gist.github.com/aggieben | |
// @version 0.2.2 | |
// @description show deleted messages on chat.*.stackexchange.com and chat.(*.\.)stackoverflow.com | |
// @match *://chat.meta.stackexchange.com/* | |
// @match *://chat.stackexchange.com/* | |
// @match *://chat.stackoverflow.com/* | |
// @copyright 2012+, Ben Collins |
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
mount -t proc proc /mnt/gentoo/proc; mount --rbind /sys /mnt/gentoo/sys; mount --rbind /dev /mnt/gentoo/dev; chroot /mnt/gentoo /bin/bash; | |
source /etc/profile; export PS1="(chroot) $PS1" | |
cd; umount -l /mnt/gentoo/dev{/shm,/pts,}; umount -l /mnt/gentoo{/boot,/proc,} |