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
exec ssh-agent bash | |
chmod 600 path/to/.ssh/id_rsa | |
ssh-add path/to/.ssh/id_rsa | |
ssh-add -l |
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
mkdir -p "$@" && cd "$_"; |
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 | |
if [ -z "$1" ]; then | |
echo "mising argument: query" | |
exit 0 | |
fi | |
if [ -z "$2" ]; then | |
echo "mising argument: replace" | |
exit 0 |
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/env php | |
<?php | |
function ask($string) { | |
echo "$string (y/n): "; | |
$handle = fopen("php://stdin","r"); | |
$line = trim(fgets($handle)); | |
if ($line == 'y' or $line == 'yes') { |
NewerOlder