sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminatorTerminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Zabbix SMTP Alert script for gmail. | |
| """ | |
| import sys | |
| import smtplib | |
| from email.MIMEText import MIMEText | |
| from email.Header import Header |
| #!/usr/bin/env sh | |
| for p in $(opkg list-upgradable); do | |
| if [ "$p" != "-" ]; then | |
| if [ "$(echo ${p:0:1} | sed -e 's/[0-9]//')" != "" ]; then | |
| echo "upgrading $p" | |
| opkg upgrade $p | |
| fi | |
| fi | |
| done |
| #!/bin/sh | |
| # EDIT this | |
| [email protected] | |
| PASSWORD=yoursecret | |
| DOMAIN=example.dnsd.me | |
| IP=`curl --silent http://myip.dnsdynamic.com/` | |
| curl --silent --user "$EMAIL:$PASSWORD" -k "https://www.dnsdynamic.org/api/?hostname=$DOMAIN&myip=$IP" |
| # Install tmux on Centos release 6.5 | |
| # http://superuser.com/questions/738829/attempting-to-install-tmux-on-centos-6-4-or-centos-6-5-fails-with-error-evbuff | |
| # | |
| # READ THIS FIRST!!! | |
| # MAKE SURE YOU HAVE BUILD TOOLS/COMPILERS TO BUILD STUFF FROM SOURCES | |
| # yum groupinstall "Development Tools" | |
| # CD TO TEMPORARY DIRECTORY |
| KEY=XXXXXXXXXXXX | |
| HOST="https://metrics.crisidev.org" | |
| mkdir -p dashboards && for dash in $(curl -k -H "Authorization: Bearer $KEY" $HOST/api/search\?query\=\& |tr ']' '\n' |cut -d "," -f 5 |grep slug |cut -d\" -f 4); do | |
| curl -k -H "Authorization: Bearer $KEY" $HOST/api/dashboards/db/$dash > dashboards/$dash.json | |
| done |
#256 colors in putty, tmux/screen and vim There is a detailed answer on stackoverflow. If you are looking for a short one, here it is.
putty
Set Connection -> Data -> Terminal-type string to xterm-256color
tmux
Add this line to ~/.tmux.conf
| Question: | |
| . How to run Ansible without specifying the inventory but the host directly? | |
| . Run a playbook or command with arbitrary host not in the inventory hosts list? | |
| . run ansible with arbitrary host/ip without inventory? | |
| Answer: | |
| Surprisingly, the trick is to append a , | |
| The host parameter preceding the , can be either a hostname or an IPv4/v6 address. | |
| ansible all -i example.com, |