Skip to content

Instantly share code, notes, and snippets.

View englishm's full-sized avatar
🎯
Focusing

Mike English englishm

🎯
Focusing
View GitHub Profile
$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
NAME
bash - GNU Bourne-Again SHell
SYNOPSIS
bash [options] [file]
COPYRIGHT
Bash is Copyright (C) 1989-2005 by the Free Software Foundation, Inc.
DESCRIPTION
curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash
$ echo <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
/dev/fd/63
$ cat /dev/fd/63
/bin/cat: /dev/fd/63: Bad file descriptor
$ cat <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
#!/usr/bin/env bash
shopt -s extglob
PS4="+ \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()} \${LINENO} > "
...
@englishm
englishm / .tmux.conf
Created March 1, 2012 21:15
set up a session for trying examples from http://learnyouahaskell.com/chapters
bind-key H source-file ~/tm-haskell
@englishm
englishm / README.md
Created May 22, 2012 05:46
Potty Growler

PottyGrowler

Moved to a standard repo.

@englishm
englishm / install_graphite_statsd_ubuntu_precise.sh
Created June 17, 2012 17:43 — forked from bhang/install_graphite_statsd_ubuntu_precise.sh
Install Graphite and statsd on Ubuntu 12.04 LTS (Precise Pangolin)
#!/bin/bash
# node.js using PPA (for statsd)
sudo apt-get --yes install python-software-properties
sudo apt-add-repository --yes ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get --yes install nodejs npm
# Install git to get statsd
sudo apt-get --yes install git
@englishm
englishm / gist:3014435
Created June 28, 2012 22:41
ext3grep deletion even histogram
root@datarecovery:~# ext3grep /dev/sdb3 --histogram=dtime --after 1335555802 --before 1335555805
Running ext3grep version 0.10.1
Only show/process deleted entries if they are deleted on or after Fri Apr 27 15:43:22 2012 and before Fri Apr 27 15:43:25 2012.
Number of groups: 156
Minimum / maximum journal block: 1544 / 35884
Loading journal descriptors... sorting... done
The oldest inode block that is still in the journal, appears to be from 1335458082 = Thu Apr 26 12:34:42 2012
Journal transaction 19354469 wraps around, some data blocks might have been lost of this transaction.
Number of descriptors in journal: 30581; min / max sequence numbers: 19354439 / 19359432