- Kandan - https://github.com/kandanapp/kandan
- Let's chat - http://sdelements.github.io/lets-chat/
- Zulip - https://www.zulip.org/
- Mattermost - http://www.mattermost.org/
- Rocket.chat - https://rocket.chat/
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
def hex2binstr(bstr): | |
t = { | |
"0" : '0000', | |
"1" : '0001', | |
"2" : '0010', | |
"3" : '0011', | |
"4" : '0100', | |
"5" : '0101', |
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 | |
function F_get_instance_state { | |
aws ec2 describe-instances --instance-id $1 | jq -r ".Reservations[0].Instances[0].State.Name" | |
} | |
function F_get_volume_state { | |
aws ec2 describe-volumes --volume-ids $1 | jq -r ".Volumes[0].State" | |
} |
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
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |
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
####################################################### | |
# iadd | |
####################################################### | |
#!/bin/sh | |
git ls-files -m |percol|xargs git add | |
####################################################### | |
# ikill | |
####################################################### |
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
var bufferXOR = function(a,b){ | |
c = Buffer(20); | |
for(i = 0; i<20;i++){ | |
c[i] = a[i] ^ b[i]; | |
} | |
return c; | |
} | |
var getKBucketId = function(buf){ |
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
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(custom-enabled-themes (quote (wombat)))) | |
(custom-set-faces | |
;; custom-set-faces was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. |
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
// ==UserScript== | |
// @name View on flifkriver | |
// @namespace http://lamehacks.net | |
// @description Adds links to flickriver on flickr group, user, tag and search pages | |
// @include http://*.flickr.com/* | |
// @match http://*.flickr.com/* | |
// ==/UserScript== | |
var groupRegex = new RegExp(".*?flickr.com/groups/([^\/]*)"); | |
var matched = groupRegex.exec(window.location); |