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
App::new("rsurl") | |
.version(crate_version!()) | |
.author(crate_authors!()) | |
.setting(AppSettings::AllowMissingPositional) | |
.about("Http requests from the command line.") | |
.arg( | |
Arg::with_name("body") | |
.short("b") | |
.value_name("FILE") | |
.required(false), |
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 cdgit() { | |
local dir | |
dir=$(find $HOME -type d -name .git -exec dirname {} \; | fzf-tmux) && cd "$dir" | |
} |
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
fn execute_hook(path: &Path, args: &Vec<String>, stdin: &Vec<u8>) { | |
let name = path.file_name().expect("Failed to get file name of hook."); | |
println!("Execute {:?}", &name); | |
let mut p = Command::new(path) | |
.stdin(Stdio::piped()) | |
.stdout(Stdio::inherit()) | |
.stderr(Stdio::inherit()) | |
.args(args) | |
.spawn() |
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 | |
function usage() { | |
echo "Git command to help you select which commit to create a fixup commit for." | |
echo "" | |
echo "The command will let you select a commit from a range and commit the current" | |
echo "staging area using the selected commit as argument to the --fixup= option. Any" | |
echo "extra options passed to this command will be forwarded to the git commit" | |
echo "command." | |
echo "" | |
echo "The range will be the current upstream to HEAD. If no upstream is set for the" |
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
export GRADLE_DEFAULT_OPTS='--offline' | |
function upfind() { | |
dir=`pwd` | |
while [ "$dir" != "/" ]; do |