This is a work in progress
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
set smoothscroll | |
" alias ':g' to ':tabnew google' | |
command g tabnew google | |
map <C-l> nextTab | |
map <C-h> previousTab | |
map <C-u> scrollPageUp | |
map <C-d> scrollPageDown |
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
" map "f" createTabbedHint | |
" map "shift+f" createHint | |
map "ctrl+l" nextTab | |
map "ctrl+h" previousTab | |
map "ctrl+u" scrollPageUp | |
map "ctrl+d" scrollPageDown |
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
Verifying my Blockstack ID is secured with the address 13mmWSf2GZJuEhSW1bUNSTSpkRKqyuRzyn https://explorer.blockstack.org/address/13mmWSf2GZJuEhSW1bUNSTSpkRKqyuRzyn |
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 readAllNumbers(input) { | |
var number = ""; | |
var numbers = []; | |
for (var i = 0; i < input.length; i++) { | |
if (input[i] === ' ' || input[i] === '\n') { | |
numbers.push(parseInt(number)); | |
number = ""; | |
continue; | |
} else { | |
number += input[i]; |
Sometimes you have a process you lost the PID, and would like to kill it.
You can use top
(or better htop
) to search for your process name and press k
to kill it.
But this isn’t optimal when you aren’t sure of its name.
A better alternative is to search by the port opened, for example port 80:
sudo lsof -i :80
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
# Get list of streams | |
aws kinesis list-streams --region {region: us-east-1} | |
# Get list of shards for a stream | |
aws kinesis describe-stream --region {region: us-east-1} --stream-name {stream_name} | |
# Split | |
aws kinesis split-shard --region {region: us-east-1} --stream-name {stream_name} --shard-to-split {shard_id_to_split} --new-starting-hash-key {new_starting_hash_key:(shard ending hashkey / 2)} | |
# Check that it worked | |
aws kinesis describe-stream --region {region: us-east-1} --stream-name {stream_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
cat <(ssh server1 sudo tail -f /var/log/test.log) <(ssh server2 sudo tail -f /var/log/test.log) | grep /api/1/test >> hits & watch wc -l hits |
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
cat <(ssh server1 sudo tail -f /var/log/log.log) <(ssh server2 sudo tail -f /var/log/log.log) | grep /api/1/test >> hits |
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 casper = require('casper').create({ | |
pageSettings: { | |
// javascriptEnabled: false | |
} | |
}); | |
var system = require('system'); | |
var options = casper.cli.options; |
NewerOlder