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
### Keybase proof | |
I hereby claim: | |
* I am kgorskowski on github. | |
* I am kgorskowski (https://keybase.io/kgorskowski) on keybase. | |
* I have a public key whose fingerprint is 64FE DFAC BF35 B3EE 87BD 1BAF F3BB A06D E57D 45AC | |
To claim this, I am signing this object: |
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
sed -i "s/SUBACCOUNT/${SUBACCOUNT}/" exim4.conf |
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
sudo docker run -d -p 4001:4001 -p 7001:7001 quay.io/coreos/etcd -discovery=https://discovery.etcd.io/xyc -addr=private_ipv4:4001 -peer-addr=private_ipv4:7001 |
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
{{range gets "/myapp/upstream/*"}} | |
server {{base .Key}} {{.Value}} | |
{{end}} |
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
ffmpeg -i audioinput.mp3 -loop 1 -i backgroundpic.png -filter_complex "[0:a]channelsplit[a1][a2];[a1]showwaves=s=960x270:mode=p2p:rate=15,format=yuv420p,colorbalance=gs=0.49,colorbalance=bs=0.34,colorbalance=rm=1,colorbalance=gm=1,colorbalance=bm=1,scale=1920x540[bottom];[1:v][bottom]overlay=shortest=1:main_h/2[vid]" -map "[a2]" -c:a /dev/null -map "[vid]" -map 0:a -codec:v libx264 -crf 18 -tune animation -preset fast -r 15 -codec:a aac -strict -2 -b:a 192k output.mp4 |
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
{ | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:Get*", | |
"s3:List*" | |
], | |
"Resource": [ | |
"arn:aws:s3:::BUCKET", |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetBucketLocation", | |
"s3:ListBucket" | |
], | |
"Resource": [ |
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
iptables -A INPUT -p tcp --dport 3306 -i eth0 -j DROP |
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
settings { | |
logfile = "/var/log/lsyncd/lsyncd.log", | |
statusFile = "/var/log/lsyncd/lsyncd.status" | |
} | |
sync { | |
default.rsyncssh, | |
source = "/sites/", | |
host = "x.x.x.x", | |
targetdir = "/sites/", | |
exclude = {"*.bak" , "*.tmp" , "*.log" }, |
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
require 'rubygems' | |
require 'chef/encrypted_data_bag_item' | |
secret = Chef::EncryptedDataBagItem.load_secret('chef_secret') | |
data = {"id" => "name_of_secret_goes_here", "key" => 'secret_goes_here'} | |
encrypted_data = Chef::EncryptedDataBagItem.encrypt_data_bag_item(data, secret) | |
FileUtils.mkpath('data_bags/passwords') | |
File.open('data_bags/passwords/name_of_secret_goes_here.json', 'w') do |f| | |
f.print encrypted_data.to_json |