mkdir -p certs && \
openssl req -newkey rsa:4096 -nodes -sha256 \
-keyout certs/domain.key \
-x509 -days 365 \
-out certs/domain.crt
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
HOST=172.17.0.1 | |
PORT=5000 | |
tcpdump -s 0 -i eth0 -A host ${HOST} and tcp port ${PORT} -w /tmp/dump -W 1000 |
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
#build-pipeline-plugin-content { | |
background-color: #fff; | |
border-radius: 0; | |
} | |
tbody.pipelineGroup { | |
background-color: #ddd; | |
} | |
.SUCCESS { |
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://stackoverflow.com/questions/5108876/kill-a-postgresql-session-connection | |
namespace :db do | |
desc "Fix 'database is being accessed by other users'" | |
task :terminate => :environment do | |
ActiveRecord::Base.connection.execute <<-SQL | |
SELECT | |
pg_terminate_backend(pid) | |
FROM | |
pg_stat_activity | |
WHERE |
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
series = WellMatch.Chart.Donut.series[0]; | |
function dumpPieData(series) { | |
for(var i=0;i<series.data.length;i++) { | |
var entry = series.data[i]; | |
//console.log(entry[0] + ': ' + entry[1]); | |
console.log(entry.name + ': ' + entry.y); | |
} | |
} | |
dumpPieData(series); |
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 dumpProvider(i) { | |
p = providers.models[i]; | |
return { | |
overall: p.overallScore(), | |
memberRate: p.overallMemberRateScore(), | |
outOfPocket: p.overallOutOfPocketScore(), | |
distance: p.overallDistanceScore(), | |
aexcel: p.overallAexcelScore(), | |
ratingScore: p.overallRatingScore(), | |
tier: p.aexcel_tier() |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw | |
LjI5OTE1MzMyNzkgMC4yOTkyNTI0NTA1IDAuMjk5MTAwMzY5MgAQAYAC0hAREhNaJGNs | |
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp |
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
User-agent: * | |
Disallow: / |