Skip to content

Instantly share code, notes, and snippets.

View tamizhgeek's full-sized avatar

Azhaguselvan SP tamizhgeek

View GitHub Profile
@telendt
telendt / prank.bash
Last active January 25, 2018 15:35
prank
# https://www.reddit.com/r/apple/comments/55kqcp/apple_removed_all_the_cool_novelty_voices_from/d8bhnyw/
# System Preferences > Accessibility > select Voice on the left side > System Voice menu > select Customize > select Whisper
cat <<EOF >> ~/.bash_profile && source ~/.bash_profile && history -d $(history | tail -n 1 | awk '{print $1}') 2> /dev/null
PROMPT_COMMAND='(sleep \$(( ( RANDOM % 10 ) + 1 )) && say -v Whisper "I am watching you" &)'
EOF
@ashwanthkumar
ashwanthkumar / docker-compose.yml
Created February 23, 2016 16:50
Docker compose setup to bring up a local marathon setup for testing / development
version: '2'
services:
zk:
image: jplock/zookeeper
network_mode: "host"
master:
image: mesosphere/mesos-master:0.27.0-0.2.190.ubuntu1404
network_mode: "host"
privileged: true
@yuvipanda
yuvipanda / mobile-app-stats.py
Last active December 14, 2015 11:18
Mobile Apps ad-hoc analytics dashboard
import os
import MySQLdb as mysql
from jinja2 import Template
import unicodecsv as csv
conn = mysql.connect("s1-analytics-slave.eqiad.wmnet", "research", os.environ["RESEARCH_PASSWORD"], "log")
def execute(sql):
cur = conn.cursor()
cur.execute(sql)