Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am lifehome on github.
  • I am lifehome (https://keybase.io/lifehome) on keybase.
  • I have a public key whose fingerprint is 8248 46E2 166F 8EEE DB94 301B CD6B 42C3 56D7 BEF6

To claim this, I am signing this object:

@dreamcat4
dreamcat4 / how to install entware on ARM.md
Last active May 20, 2020
Install entware on ARM based router eg tomato / ddwrt / asus-merlin cfw
View how to install entware on ARM.md
@bmeck
bmeck / apps-script-boilerplate.js
Created Oct 24, 2013
boilerplate for turning google forms into a webhook
View apps-script-boilerplate.js
function onResponse(e) {
var formResponse = e.response;
var itemResponses = formResponse.getItemResponses();
var data = {};
for (var j = 0; j < itemResponses.length; j++) {
var itemResponse = itemResponses[j];
var key = itemResponse.getItem().getTitle();
var value = itemResponse.getResponse();
data[key] = value;
}
@fernandoaleman
fernandoaleman / Linux Static IP
Created Mar 23, 2012
How To Configure Static IP On CentOS 6
View Linux Static IP
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
@kecebongsoft
kecebongsoft / 10fastfinger_bot.js
Created Dec 22, 2011
BOT for 10fastfingers, automatic typing with adjustable speed
View 10fastfinger_bot.js
/*
* BOT for 10fastfingers, automatic typing with adjustable speed
* ================================================================
*
* bored in my apartment and decided to hack this game: http://indonesian-speedtest.10fastfingers.com/
* just start the game, when you're ready to type, DON'T TYPE ANYTHING, open up
* your Developer Tools in Chrome (CTRL+SHIFT+J) and click Console tab, and
* then paste the whole code below, then press enter, and enjoy the show.
*
* twitter.com/kecebongsoft
@jcsrb
jcsrb / gist:1081548
Created Jul 13, 2011
get avatar from google profiles, facebook, gravatar, twitter, tumblr
View gist:1081548
function get_avatar_from_service(service, userid, size) {
// this return the url that redirects to the according user image/avatar/profile picture
// implemented services: google profiles, facebook, gravatar, twitter, tumblr, default fallback
// for google use get_avatar_from_service('google', profile-name or user-id , size-in-px )
// for facebook use get_avatar_from_service('facebook', vanity url or user-id , size-in-px or size-as-word )
// for gravatar use get_avatar_from_service('gravatar', md5 hash email@adress, size-in-px )
// for twitter use get_avatar_from_service('twitter', username, size-in-px or size-as-word )
// for tumblr use get_avatar_from_service('tumblr', blog-url, size-in-px )
// everything else will go to the fallback
// google and gravatar scale the avatar to any site, others will guided to the next best version