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
# OS generated files | |
.DS_Store | |
.DS_Store? | |
ehthumbs.db | |
Icon? | |
Thumbs.db | |
# XCode 4 | |
*.xcuserstate | |
*.pbxuser |
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
[-:] redism@~: ab -n 10000 -c 10 http://127.0.0.1:2131/files/5b68e493-5055-47b3-91e4-ea11c4cd180c.jpg | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 127.0.0.1 (be patient) | |
Completed 1000 requests | |
Completed 2000 requests | |
Completed 3000 requests | |
Completed 4000 requests |
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
[-:] redism@~: ab -n 10000 -c 10 http://127.0.0.1:2131/api/user/1 | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 127.0.0.1 (be patient) | |
Finished 10000 requests | |
Server Software: |
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
/** | |
* A simple socket.io client for performance benchmark | |
* | |
* Created by redism on 2014. 4. 22.. | |
*/ | |
var SocketIO = require('socket.io-client'), | |
argv = require('optimist').argv; | |
var n = argv.n || 10; |
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 Adder = function Adder() { | |
console.log(arguments); | |
this.list = Array.prototype.slice.apply(arguments); | |
}; | |
Adder.prototype.sum = function sum() { | |
var sum = 0; | |
this.list.forEach(function(x) { | |
sum += x; |
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
function pad0(num) { | |
return num < 10 ? '0' + num.toString() : num.toString(); | |
} | |
function getDateStringDaysAgo(days) { | |
const date = new Date(Date.now() - (days * 24 * 60 * 60 * 1000)); | |
return date.getFullYear() + "-" + pad0(date.getMonth() + 1) + "-" + pad0(date.getDate()); | |
} | |
/** |
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 | |
if [ -f ~/Library/KeyBindings/DefaultkeyBinding.dict ]; then | |
echo "~/Library/KeyBindings/DefaultkeyBinding.dict already exists" | |
exit -1 | |
fi | |
mkdir -p ~/Library/KeyBindings | |
cat << EOF > ~/Library/KeyBindings/DefaultkeyBinding.dict | |
{ | |
"₩" = ("insertText:", "\`"); |
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
BODY=${1:-"Finished"} | |
DATA='{"title":"Done","type":"note","body":"'$BODY'"}' | |
curl --header 'Access-Token: <YOUR_TOKEN_HERE>' \ | |
--header 'Content-Type: application/json' \ | |
--data-binary $DATA \ | |
--silent \ | |
--request POST \ | |
https://api.pushbullet.com/v2/pushes > /dev/null |