-
download & install go in your home dir
mkdir ~/src wget "https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz" tar -xvf go1.4.2.linux-amd64.tar.gz export GOROOT="$HOME/src/go" export PATH="$PATH:$GOROOT/bin"
-
create a directory where go would download & install packages using
go get
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
<config> | |
<!-- See sample config: /usr/share/doc/fahclient/sample-config.xml --> | |
<!-- Client Control | |
Don't fold anonymously, provide user info. --> | |
<fold-anon v='false'/> | |
<!-- Folding Slot Configuration --> | |
<gpu v='true'/> <!-- If true, attempt to autoconfigure GPUs --> |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
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
-- show running queries (pre 9.2) | |
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(query_start, clock_timestamp()), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
- Wiki URL: http://hpc.ilri.cgiar.org/r-software
- latest version:
R/3.3.2
- sample usage:
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/bash | |
#backup studio project files | |
#ignore build/ dir | |
SRC_DIR="/home/james/AndroidStudioProjects/" | |
DEST_DIR="/run/media/james/tank/Backups/studio/" | |
cd $SRC_DIR |
I hereby claim:
- I am oguya on github.
- I am oguya (https://keybase.io/oguya) on keybase.
- I have a public key ASA1_78svc9r8nnMc6vqP9OYXyJIPPPNIkVct4oWdkyuPAo
To claim this, I am signing this object:
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
{ | |
"ANDROID_VERSION": 1.5, | |
"APP_VERSION_CODE": 8, | |
"APP_VERSION_NAME": 1.3, | |
"AVAILABLE_MEM_SIZE": 181972992, | |
"BRAND": "generic", | |
"BUILD": { | |
"BOARD": "unknown", | |
"BRAND": "generic", | |
"DEVICE": "generic", |
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
Typeface tf = Typeface.createFromAsset(getAssets(),"fonts/Roboto-Black.ttf"); | |
TextView tv = (TextView) findViewById(R.id.FontTextView); | |
tv.setTypeface(tf); |
NewerOlder