I hereby claim:
- I am kaskavalci on github.
- I am kaskavalci (https://keybase.io/kaskavalci) on keybase.
- I have a public key whose fingerprint is E6F2 56B2 165E 1C63 2120 D327 1A9E 56C5 C682 88F3
To claim this, I am signing this object:
int stdout_save; | |
char buffer[BIG_ENOUGH]; | |
fflush(stdout); //clean everything first | |
stdout_save = dup(STDOUT_FILENO); //save the stdout state | |
freopen("NUL", "a", stdout); //redirect stdout to null pointer | |
setvbuf(stdout, buffer, _IOFBF, 1024); //set buffer to stdout |
freopen("NUL", "a", stdout); //redirect stdout to null again | |
dup2(stdout_save, STDOUT_FILENO); //restore the previous state of stdout | |
setvbuf(stdout, NULL, _IONBF, MDT_BUFSIZE); //disable buffer to print to screen instantly |
Runnable runner = new Runnable() { | |
@Override | |
public void run() { | |
File index = new File(getMyURL()); | |
if (index.exists()) { | |
browser.setUrl(getMyURL()); | |
} | |
browser.refresh(); | |
} | |
} |
## | |
##You better change these: | |
## | |
git config --global user.name "Name Surname?" | |
git config --global user.email "[email protected]" | |
## | |
##Paste as it is | |
## | |
git config --global alias.s "status -suno" | |
git config --global alias.l "log --oneline --decorate" |
�ò� �� l�$X�� � � ��` �@ ��!4I4ԡ7�,�2 � | |
~1�~�GET /v1/agent/services HTTP/1.1 | |
Host: localhost:8500 | |
User-Agent: Go-http-client/1.1 | |
Accept-Encoding: gzip | |
l�$X� h h ��` 2@ !4��7�,I4��u: | |
~1�~1�HTTP/1.1 200 OK | |
Content-Type: application/json | |
Date: Thu, 10 Nov 2016 18:46:04 GMT |
# Change file extension if needed | |
for f in *.tgz ; do mkdir "${f%%.*}" && tar xzf $f -C "${f%%.*}" ; done |
if [[ ! $(which gem) ]]; then | |
echo "You don't have gem installed. Go install it." | |
exit 1 | |
fi | |
if [[ ! $(which sqlint) ]]; then | |
gem install sqlint | |
fi | |
git diff --cached --name-status | xargs -0 | while read st file; do |
I hereby claim:
To claim this, I am signing this object:
// Execute this from browser console | |
// Tested on Chrome. Firefox does not work. Even pop-up blocker is disabled it still blocks opening new windows. | |
// Things to do: | |
// Enable option Download PDF files instead of automatically opening them in Chrome in chrome | |
// Allow popups | |
Array.from(document.querySelectorAll('a')).filter(a => a.hostname.startsWith('dl.')).map((v)=>{v.setAttribute('target','_blank'); v.classList.remove('a'); return v}).forEach(v=>{window.open(v.href,'_blank'); console.log(v.href)}) |
func unique(tokens *[]string) { | |
v := reflect.ValueOf(tokens).Elem() | |
if v.Len() <= 1 { | |
return | |
} | |
sort.Strings(*tokens) | |
i := 0 | |
for j := 1; j < v.Len(); j++ { | |
if (*tokens)[i] == (*tokens)[j] { |