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
<div> | |
</div> | |
<script> | |
var o = { | |
test1 : 50, | |
test2 : 'Test', | |
test3: { | |
test4: 'test1', | |
test5: [1,2,3] |
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 util = require('util'); | |
var logentries = require('node-logentries'); | |
var log = logentries.logger({ | |
token:'11111111-2222-3333-4444-555555555555' | |
}); | |
var d = require('domain').create(); | |
d.on('error', function(err){ | |
try { |
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
ini_set('display_errors',1); | |
ini_set('display_startup_errors',1); | |
error_reporting(-1); |
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
$('#table').dataTable({ | |
ajax: '/things', | |
columns:[ | |
{data: 'col1', visible: false }, | |
{data: 'col2', title:'col2', dataSort:'0'} | |
] | |
}); |
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
while true; do curl -w %{http_code}:%{time_total} http://www.google.com/ -o /dev/null -s; printf "\n"; sleep 0.5; done |
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
# | |
# Example of nginx config to proxy the port 443 to port 7547 | |
# Adding a certificate and Basic Auth in the process | |
# | |
server { | |
listen 443; | |
server_name abc.def.example.com; |
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 util = require('util'); | |
var d = require('domain').create(); | |
d.on('error', function(err){ | |
try { | |
// make sure we close down within 10 seconds | |
var killtimer = setTimeout(function() { | |
process.exit(1); |
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 KEYS "prefix:*" | xargs redis-cli DEL |
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
ssh -i ~/path/to/key.pem ubuntu@66.11.22.345 |
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
free | grep Mem | awk '{print $4/$2 * 100.0}' |
OlderNewer