I hereby claim:
- I am pstorch on github.
- I am peterstorch (https://keybase.io/peterstorch) on keybase.
- I have a public key whose fingerprint is 954B A42D D4F4 E077 17D5 0400 1199 A722 4849 EA65
To claim this, I am signing this object:
SELECT schema_name, | |
pg_size_pretty(sum(table_size)::bigint), | |
sum(table_size)::bigint, | |
(sum(table_size) / pg_database_size(current_database())) * 100 | |
FROM ( | |
SELECT pg_catalog.pg_namespace.nspname as schema_name, | |
pg_relation_size(pg_catalog.pg_class.oid) as table_size | |
FROM pg_catalog.pg_class | |
JOIN pg_catalog.pg_namespace ON relnamespace = pg_catalog.pg_namespace.oid | |
) t |
# Check java version | |
JAVA_VER=$(java -version 2>&1 | sed 's/java version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q') | |
if [ "$JAVA_VER" -lt 18 ] | |
then | |
# Figure out how many versions of Java and javac we currently have | |
NR_OF_JRE_OPTIONS=$(echo 0 | alternatives --config java 2>/dev/null | grep 'There ' | awk '{print $3}' | tail -1) | |
NR_OF_SDK_OPTIONS=$(echo 0 | alternatives --config javac 2>/dev/null | grep 'There ' | awk '{print $3}' | tail -1) | |
# Silent install javac (includes jre) |
#!/bin/bash | |
for f in *; do | |
if [ -d "$f" ]; then | |
hg pull -u -R "$f" | |
fi | |
done |
{ | |
"variables": { | |
"aws_access_key": "", | |
"aws_secret_key": "" | |
}, | |
"builders": [{ | |
"type": "amazon-instance", | |
"access_key": "{{user `aws_access_key`}}", | |
"secret_key": "{{user `aws_secret_key`}}", | |
"account_id": "<<YOUR_ACCOUNT_ID>>", |
echo template shell = /bin/zsh | sudo tee /etc/samba/smb.conf.local; sudo service winbind restart |
grep --include=\*.java -rnw . -e "pattern" |
I hereby claim:
To claim this, I am signing this object:
:w !sudo tee % |
#!/bin/sh | |
#https://github.com/sualeh/SchemaCrawler | |
./schemacrawler.sh -c=graph -url=jdbc:sqlite:cgeo.sqlite -loglevel=CONFIG -infolevel=detailed -u=cgeo -outputformat=svg | |
#!/bin/sh | |
adb -d shell "run-as cgeo.geocaching cp /data/data/cgeo.geocaching/databases/data /sdcard/cgeo.sqlite" | |
adb pull /sdcard/cgeo.sqlite |