I hereby claim:
- I am bparks on github.
- I am bparks (https://keybase.io/bparks) on keybase.
- I have a public key whose fingerprint is ACB0 1131 0644 7B7D 77AB D50E E52F 721C 4377 6B95
To claim this, I am signing this object:
| // Use the following command line to build: | |
| // gcc -o screenshot screenshot.c -lX11 $(pkg-config cairo --cflags --libs) | |
| /* | |
| Grabs a screenshot of the root window. | |
| Usage : ./scr_tool <display> <output file> | |
| Example : ./scr_tool :0 /path/to/output.png | |
| Author: S Bozdag <selcuk.bozdag@gmail.com> | |
| */ |
| Array.prototype.gather = function(func) { | |
| var fn = func; | |
| if (typeof func == 'string') { | |
| fn = function(item) { return item[func]; }; | |
| } | |
| var out = {}; | |
| for (var i = 0; i < this.length; i++) { | |
| var item = this[i]; | |
| var key = fn(item); | |
| if (typeof out[key] == 'undefined') |
| #!/bin/bash | |
| buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" Info.plist | awk -F. '{print $(NF)}') | |
| assemblyVersion=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Info.plist) | |
| majorVersion=$(echo $assemblyVersion | awk -F. '{print $1}') | |
| minorVersion=$(echo $assemblyVersion | awk -F. '{ print (length($2) == 0) ? '0' : $2 ; }') | |
| buildVersion=$(echo $assemblyVersion | awk -F. '{ print (length($3) == 0) ? '0' : $3 ; }') | |
| buildNumber=$(($buildNumber + 1)) | |
| /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $majorVersion.$minorVersion.$buildVersion.$buildNumber" Info.plist |
| set -g __fish_git_prompt_showdirtystate 1 | |
| # host:dir[git_info] user$ | |
| function fish_prompt | |
| set -l EXIT_STATUS $status | |
| set ORG_COLOR "\e[00m" | |
| set WHITE_BOLD "\[\e[1;37m\]" | |
| set BOLD "\[\e[01;32m\]" | |
| set BLUE "\[\e[01;34m\]" |
I hereby claim:
To claim this, I am signing this object:
| //get_google.js | |
| //does the same as curl -q https://www.google.com (including doctype) | |
| var page = require('webpage').create(); | |
| var url = 'https://www.google.com/'; | |
| page.open(url, function (status) { | |
| var source = page.evaluate(function () { | |
| return document.doctype + document.documentElement.outerHTML; |