- init
- log
- rebase - like a merge (change the order of commits)
- merge
- commit
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
- redis-cli BGSAVE | |
- on each cassandra node nodetool -h localhost -p 7199 snapshot snapshot-name |
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
// taken from http://snes9x-rr.googlecode.com/svn/trunk/snes9x-151/lua-engine.cpp | |
// http://snes9x-rr.googlecode.com/svn/trunk/snes9x-151/SFMT/SFMT.c | |
// same as math.random, but uses SFMT instead of C rand() | |
// FIXME: this function doesn't care multi-instance, | |
// original math.random either though (Lua 5.1) | |
static int sfmt_random (lua_State *L) { | |
lua_Number r = (lua_Number) genrand_real2(); | |
switch (lua_gettop(L)) { // check number of arguments | |
case 0: { // no arguments |
-- My fiddles:
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/sh | |
### BEGIN INIT INFO | |
# Provides: jmxtrans | |
# Required-Start: $local_fs $network $named $time $syslog | |
# Required-Stop: $local_fs $network $named $time $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: JMX Proxy | |
### END INIT INFO |
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 | |
STACKDRIVER_API_KEY=$1 | |
JMX_HOST="localhost" | |
JMX_PORT="7199" | |
CASSANDRA_HOST="localhost" | |
CASSANDRA_PORT="7199" | |
curl -O https://repo.stackdriver.com/stack-install.sh | |
sudo bash stack-install.sh --api-key=$STACKDRIVER_API_KEY |
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
LoadPlugin match_regex | |
LoadPlugin target_set | |
PreCacheChain "RenameES" | |
<Chain "RenameES"> | |
<Rule "rename_es"> | |
<Match regex> | |
Plugin "^curl_json$" | |
PluginInstance "elasticsearch" | |
</Match> | |
<Target "set"> |
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
http://www.thebuzzmedia.com/software/imgscalr-java-image-scaling-library/#solve | |
https://github.com/thebuzzmedia/imgscalr | |
http://stackoverflow.com/questions/10245220/java-image-resize-maintain-aspect-ratio |
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
#iGivefirst API | |
This api allows iGivefirst partners to show nonprofit advertisements on their websites and collect donations on behalf of iGivefirst, and nonprofits. | |
## General Concepts | |
### Guids | |
Our API utizes business keys in the form of standard 36 character guids. These guids are created with-in our system and are unique. The main guids that are utilized: |
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 | |
# find-out-what-is-using-your-swap.sh | |
# -- Get current swap usage for all running processes | |
# -- | |
# -- rev.0.3, 2012-09-03, Jan Smid - alignment and intendation, sorting | |
# -- rev.0.2, 2012-08-09, Mikko Rantalainen - pipe the output to "sort -nk3" to get sorted output | |
# -- rev.0.1, 2011-05-27, Erik Ljungstrom - initial version | |