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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Redirect {www.,}company.co.uk web site to company.com, including SSL", | |
"Resources": { | |
"BucketCompanyCoUk": { | |
"Properties": { | |
"AccessControl": "PublicRead", | |
"BucketName": "company.co.uk", | |
"CorsConfiguration": { | |
"CorsRules": [ |
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
{ | |
"uid": "1", | |
"method": "stats", | |
"error": null, | |
"body": { | |
"data": { | |
"nodes": [ | |
{ | |
"uid": "d4b60cdb-8f97-4071-957b-4df337ae563b", | |
"name": "0797059c619d_9292", |
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
{ | |
"uid": "1", | |
"method": "stats", | |
"error": null, | |
"body": { | |
"data": { | |
"nodes": [ | |
{ | |
"uid": "96b071f8-0337-4e7a-bd96-f0d961fc663f", | |
"name": "c9e85c7db306_9292", |
This file has been truncated, but you can view the full file.
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
heap profile: 615: 5192584 [26348: 3560010448] @ heap/1048576 | |
3: 1990656 [5041: 3344965632] @ 0x79d911 0x5f656c 0x48309a 0x482ed1 0x5ecfe9 0x5efb5b 0x5f0cc4 0x47908d 0x5e3db2 0x5e3c0d 0x45d611 | |
# 0x79d910 compress/flate.NewWriter+0x30 /Users/fz/go1.7/src/compress/flate/deflate.go:660 | |
# 0x5f656b github.com/centrifugal/centrifugo/vendor/github.com/gorilla/websocket.glob..func1+0x3b /Users/fz/go/src/github.com/centrifugal/centrifugo/vendor/github.com/gorilla/websocket/compression.go:17 | |
# 0x483099 sync.(*Pool).getSlow+0x149 /Users/fz/go1.7/src/sync/pool.go:145 | |
# 0x482ed0 sync.(*Pool).Get+0xf0 /Users/fz/go1.7/src/sync/pool.go:121 | |
# 0x5ecfe8 github.com/centrifugal/centrifugo/vendor/github.com/gorilla/websocket.compressNoContextTakeover+0x88 /Users/fz/go/src/github.com/centrifugal/centrifugo/vendor/github.com/gorilla/websocket/compression.go:39 | |
# 0x5efb5a github.com/centrifugal/centrifugo/vendor/github.com/gorilla/websocket.(*Conn).NextWriter+0x13a /Users/fz/go/src/github.com/centrifuga |
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
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty | |
ntpd -d -q -n -p pool.ntp.org |
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
yum install -y erlang | |
rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc | |
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-3.5.6-1.noarch.rpm | |
rpm -Uvh rabbitmq-server-3.5.6-1.noarch.rpm | |
chkconfig rabbitmq-server on | |
/sbin/service rabbitmq-server start | |
rabbitmqctl status | |
rabbitmq-plugins enable rabbitmq_management | |
/sbin/service rabbitmq-server restart | |
rabbitmqctl add_user [username] kd9RWz5zSFT1 |
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
{ | |
"network": { | |
"servers": [ | |
"logstash:5000" | |
], | |
"timeout": 15, | |
"ssl ca": "/etc/ssl/certs/pipebug_elk.crt" | |
}, | |
"files": [ | |
{ |
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
-----BEGIN CERTIFICATE----- | |
MIIDHTCCAgWgAwIBAgIJAMj7Za7lBb4bMA0GCSqGSIb3DQEBBQUAMBMxETAPBgNV | |
BAMTCGxvZ3N0YXNoMB4XDTE1MDgxMzA5NTkxOVoXDTI1MDgxMDA5NTkxOVowEzER | |
MA8GA1UEAxMIbG9nc3Rhc2gwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB | |
AQCoiVdPKu+OKoX9rHY7gGZ2iXERo3PWGY3QDfbzf1vLgGvnsIdBpr3pODYJgWYb | |
V04OLg1KEixyW3kOVy8n3VVUfyDVHwCIJ4jM+cREmm71tV9ZOV2BblGVRhwp1zkx | |
AMBkR85V6XbMYXttFg7YgKCmRPxmx4GVGPSLK0cSI3IQUiRfcfM+lKh1uSmlvjFs | |
kNfHuC7nVkF593/NQKke3wJnn/KyOJilJhobdg6H/AW18d/YB4OTvwHZ6TLnmhF/ | |
sAnTsh2oD9OgW0MBs1jWR5lHcupH2ALOTgWhhGxNcIvq2G4aAQzcnjPj90sfNNvs | |
iDgAMpn8Ju5MgJNfQg8OVAlVAgMBAAGjdDByMB0GA1UdDgQWBBRnsVz6CPzJjURw |
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
log_format detailed '$remote_addr $remote_user [$time_iso8601] ' | |
'"$request" $status $body_bytes_sent ' | |
'"$http_referer" "$http_user_agent" ' | |
'$request_time $request_length $pipe $msec ' | |
'$connection_requests $connection $bytes_sent ' | |
'$content_length "$content_type" "$host" ' | |
'$tcpinfo_rtt $tcpinfo_rttvar $tcpinfo_snd_cwnd $tcpinfo_rcv_space'; | |
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
if user_signed_in? | |
case current_user.provider | |
when "facebook" | |
facebook_profile_image_path("#{current_user.uid}.jpg", :default_image => "Users_iaysut.png") | |
when "twitter" | |
twitter_name_profile_image_path("#{current_user.uid}.jpg", :default_image => "Users_iaysut.png") | |
else | |
gravatar_profile_image_path(current_user.email, :default_image => "Users_iaysut.png") | |
end | |
end |