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
| # 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 |
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
| 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 |
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
| 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) |