# add repository key
wget -q http://repos.sensuapp.org/apt/pubkey.gpg -O- | sudo apt-key add -
# add repo
echo "deb http://repos.sensuapp.org/apt sensu main" > /etc/apt/sources.list.d/sensu.list
# install sensu
This file contains hidden or 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"?> | |
<playlist version="1" xmlns="http://xspf.org/ns/0/"> | |
<title>dhananjaynav's loved tracks</title> | |
<creator>dhananjaynav</creator> | |
<info>http://www.last.fm/user/dhananjaynav</info> | |
<trackList> | |
<track><title>Heart Skipped a Beat</title><creator>The xx</creator><identifier>http://www.last.fm/music/The+xx/_/Heart+Skipped+a+Beat</identifier></track> | |
<track><title>Crystalised</title><creator>The xx</creator><identifier>http://www.last.fm/music/The+xx/_/Crystalised</identifier></track> | |
<track><title>Yellow</title><creator>Coldplay</creator><identifier>http://www.last.fm/music/Coldplay/_/Yellow</identifier></track> | |
<track><title>Dog Days Are Over</title><creator>Florence + the Machine</creator><identifier>http://www.last.fm/music/Florence+%252B+the+Machine/_/Dog+Days+Are+Over</identifier></track> |
This file contains hidden or 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
#!/bin/bash | |
# MONITOR THIS | |
PROCNAME=irssi | |
PROC=$(ps aux | grep ${PROCNAME} | grep -v grep) | |
if ! [[ -z $PROC ]]; | |
then | |
# ALl good | |
exit 0 |
This file contains hidden or 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
#!/usr/bin/env python | |
####### INIT BLOCK BEGIN | |
import paramiko | |
ssh = paramiko.SSHClient() | |
# Load host keys from system | |
ssh.load_system_host_keys() | |
# Disable host_key checking |
This file contains hidden or 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
#!/bin/bash | |
USERNAME="" | |
PASSWORD="" | |
curl --data 'act_username=${USERNAME}&act_password=${PASSWORD}&login=login' \ | |
http://portal.acttv.in -o /dev/null |
I hereby claim:
- I am dbalan on github.
- I am dbalan (https://keybase.io/dbalan) on keybase.
- I have a public key whose fingerprint is 1848 DFBC 9143 A4E2 DF02 0759 BD40 6C83 4AA6 E39B
To claim this, I am signing this object:
This file contains hidden or 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
for i in $LC | |
do | |
aws --region us-east-1 autoscaling delete-launch-configuration --launch-configuration-name $i | |
done |
This file contains hidden or 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
#!/bin/bash | |
# change table owners for a databse - postgresql | |
ALTER DATABSE dbname OWNER TO username; | |
for tbl in $(psql -qAt -c "SELECT TABLENAME FROM pg_tables WHERE schemaname = 'public';" $DATABASE); | |
do | |
psql -c "alter table $tbl owner to $NEW_OWNER" $DATABASE ; done | |
done |
This file contains hidden or 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
(setq el-get-sources | |
'((:name package-name))) | |
(defun sync-packages () | |
"Synchronize packages" | |
(interactive) | |
(el-get 'sync '(el-get package)) | |
(add-to-list 'package-archives '("tromey" . "http://tromey.com/elpa/")) | |
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) | |
(setq my-packages (mapcar 'el-get-source-name el-get-sources)) |
This file contains hidden or 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
<Response> | |
<Speak>Hello Vincy, Belated birthday wishes</Speak> | |
<Wait length="1"/> | |
<Play> | |
http://rest.s3for.me/orwibwerw8/Ariyathe+Ninayathe+Song+-+Vineeth+Sreenivasan+-+Jaiz+John+mp3skull.guru.mp3 | |
</Play> | |
</Response> |