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
fs=yes | |
cache=30720 | |
ao=pulse | |
af=scaletempo | |
softvol-max=300 | |
softvol=yes |
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] | |
co = checkout | |
di = diff | |
ci = commit | |
cm = commit -m | |
ap = add -p | |
dc = diff --cached | |
s = status -s | |
g = log --graph --decorate | |
p = push |
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-recent | |
//! | |
//! Prints recently checked out git branches, most recently checked out branch first. | |
//! | |
//! Usage: git recent [lines] | |
//! | |
//! Options: | |
//! lines - number of lines to output [default=10] | |
use std::io::prelude::*; |
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
use std::env; | |
use std::ops::Deref; | |
use std::io::prelude::*; | |
use std::fs::File; | |
use std::process::Command; | |
fn main() { | |
let args = env::args().skip(1).take(3).collect::<Vec<_>>(); | |
match args.get(1).map_or("", Deref::deref) { |
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
wget --referer=https://github.com https://raw.githubusercontent.com/rust-lang/rust/master/LICENSE-APACHE || exit 1 | |
wget --referer=https://github.com https://raw.githubusercontent.com/rust-lang/rust/master/LICENSE-MIT || exit 1 | |
sed -i -e 's_^license =.*$_license = "MIT/Apache-2.0"_' Cargo.toml | |
cat <<LICENSE >> README.md | |
## License | |
Licensed under either of |
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
I want clean history, but that really means (a) clean and (b) history. | |
People can (and probably should) rebase their _private_ trees (their own | |
work). That's a _cleanup_. But never other peoples code. That's a "destroy | |
history" | |
So the history part is fairly easy. There's only one major rule, and one | |
minor clarification: | |
- You must never EVER destroy other peoples history. You must not rebase |
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
KEYMAP=us | |
FONT=ter-v18b |
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 | |
SELF="$1" | |
MD5=$(md5sum "${SELF}" | cut -f1 -d" ") | |
OUT="${SELF}.${MD5}.out" | |
if [ ! -f "${OUT}" ]; then | |
rustc -C debuginfo=0 -C prefer-dynamic "${SELF}" -o "${OUT}" || exit 1 | |
fi | |
shift | |
exec "${OUT}" "$@" |
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 | |
REPO_URL="https://crates.io" | |
API_URL="$REPO_URL/api/v1" | |
die() { | |
echo "$@" >&2 | |
exit 1 | |
} |
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
#![feature(plugin)] | |
#![plugin(regex_macros)] | |
extern crate regex; | |
use std::ops::Index; | |
use regex::Regex; | |
pub struct Re(Regex); |
NewerOlder