I hereby claim:
- I am jktravis on github.
- I am jktravis (https://keybase.io/jktravis) on keybase.
- I have a public key ASBnSUSRq2VafF3mvh7BrVUC1waCoHWIzIGgkLR3V5VBfQo
To claim this, I am signing this object:
#!/bin/bash | |
# Renames a group of files | |
counter=0 | |
filename=$1 | |
context=$2 | |
ext=$3 | |
if [ $# -ne 0 ] | |
then | |
if [ -z "${ext}" ] |
#!/bin/bash | |
# Replace spaces with underscores | |
for file in "${1}"; | |
do | |
echo Renaming "$file" to "${file// /_}" | |
mv "$file" "${file// /_}" | |
done |
#Lowercase a group of files | |
for i in "${1}"; do mv "$i" "$(echo $i|tr A-Z a-z)"; done |
import os, argparse | |
parser = argparse.ArgumentParser(description="Remove spaces from file names and make them lowercase.") | |
parser.add_argument("file", nargs='+', help="The file to be renamed") | |
args = parser.parse_args() | |
for f in args.file: | |
print "Renaming {} to {}".format(f, f.replace(" ", "_").lower() ) | |
os.rename(f, f.replace(" ", "_").lower()) |
for i in *.txt; | |
do | |
x=$(sed 's/^Foo\(Bar..*\)/\1/' <<< $i); | |
echo "$i renames to: $x"; | |
mv $i $x; | |
done |
diff -s <(sha1sum fileToCheck | cut -d " " -f1) <(echo "SHA1Hash") |
cat ~/.ssh/id_rsa.pub | ssh user@host "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys" |
I hereby claim:
To claim this, I am signing this object:
function handleError (type, error) { | |
console.error(error); | |
let payload; | |
if (typeof error === 'string') { | |
payload = error; | |
} else if (error.message) { | |
payload = error.message; | |
} | |
return {type, payload, error: true }; | |
} |