- https://developer.atlassian.com/blog/2015/03/docker-systemd-socket-activation/
- https://jpetazzo.github.io/2013/10/08/docker-containers-metrics/
Kids Edu
# Hate this work and so i scripted it !! | |
# Start Time is set to 9:00 AM EST - Change as needed | |
# Get your Token from Toggl settings page | |
create_timesheet(){ | |
for DY in $1 | |
do | |
curl -u MYNEWTOKENMYNEWTOKENMYNEWTOKEN:api_token -H "Content-Type: application/json" \ | |
-d '{"time_entry":{"description":"MYNEWCLIENT","billable":true,"duration":28800,"start":"2016-'$MTH'-'$DY'T13:00:00.000Z","created_with":"curl"}}' \ |
Generate Keys
$ ssh-keygen -f ~/.ssh/bitbucket.pem
Files bitbucket.pem and bitbucket.pem.pub will be generated.
Load this bitbucket.pem.pub key as a deploy key to your bitbucket repo.
# cat solo.rb
cookbook_path "/tmp/cookbooks"
# cat runlist.json
{
"run_list" : [ "recipe[haproxy]" ]
}
#--------------------------------------------------------------------- | |
# Example configuration for a possible web application. See the | |
# full configuration options online. | |
# | |
# http://haproxy.1wt.eu/download/1.4/doc/configuration.txt | |
# | |
#--------------------------------------------------------------------- | |
#--------------------------------------------------------------------- | |
# Global settings |
filebeatTest.sh
CONF="/tmp/f.yml"
cat << EOF >> $CONF
filebeat:
registry_file: "/var/lib/filebeat/registry"
prospectors:
-
paths:
test
# remove non-ascii character from a file. | |
tr -cd '\11\12\15\40-\176' < file-with-binary-chars > clean-file | |
== | |
yum install sysstat | |
mpstat -P ALL | |
sar -u 2 5 | |
nohup sar -o output.file 12 8 >/dev/null 2>&1 & | |
iostat -xtc 5 3 |
{ | |
"acl_token": "anonymous", | |
"client_addr": "0.0.0.0", | |
"data_dir": "/var/lib/consul", | |
"datacenter": "sbox-us-east", | |
"enable_syslog": true, | |
"encrypt": "x==", | |
"log_level": "INFO", | |
"ports": { | |
"dns": 8600, |