- httpie --
easy_install httpie
(probably you want tosudo easy_install httpie
- this script --
curl -o /usr/local/bin/json-to-csv.py https://raw.github.com/gist/4119347/24adb5dcd9c025c272042653a70d25b73b485958/json-to-csv.py
- make that executable --
chmod +x /usr/local/bin/json-to-csv.py
This file contains 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
set -x | |
text=`python3 -c 'import random; any(map(lambda item: print("{0}<break time=\"4s\"/>".format(item)), random.sample(range(1,91), 90)))'` | |
echo "${text}" | |
echo "<speak>${text}</speak>" | tts --type ssml $@ loto.mp3 | |
mpg123 loto.mp3 | |
rm loto.mp3 |
This file contains 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
aws sqs send-message --queue-url=<queue url> --message-body='elasticbeanstalk scheduled job' --message-attributes '{"beanstalk.sqsd.path": {"DataType": "String", "StringValue": "<task url>"}, "beanstalk.sqsd.scheduled_time": {"DataType": "String", "StringValue": "2001-02-03T00:00:00+00:00"}}' |
This file contains 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
"""Download sentry data. | |
usage: | |
python download_sentry_data.py <org>/<project> <api_key> | |
""" | |
import requests | |
import csv | |
This file contains 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 sys | |
from django.utils.importlib import import_module | |
from django.core.urlresolvers import clear_url_caches | |
from django.template import context, base, loader | |
from django.utils import translation | |
from django.utils.translation import trans_real | |
This file contains 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
buildout.cfg: | |
[py] | |
recipe = zc.recipe.egg | |
... | |
interpreter = py | |
initialization = | |
try: | |
sys.argv.remove('-u') | |
except ValueError: |
This file contains 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
Show hidden characters
{ | |
// -------------------------------------------------------------------- | |
// JSHint Configuration, Strict Edition | |
// -------------------------------------------------------------------- | |
// | |
// This is a options template for [JSHint][1], using [JSHint example][2] | |
// and [Ory Band's example][3] as basis and setting config values to | |
// be most strict: | |
// | |
// * set all enforcing options to true |
This file contains 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
{ | |
// run flake8 lint on file saving | |
"lint_on_save": true, | |
// popup a dialog of detected conditions? | |
"popup": true, | |
// highlight detected conditions? | |
"highlight": true, |
This file contains 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 | |
# | |
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext | |
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just | |
# from time to time | |
# | |
# Usage: ./checkpoint.sh | |
# | |
# The script checks if Enpoint Security VPN is running. If it is, then it shuts it down, if it is not, it fires it up. | |
# Or, make an Automator action and paste the script. |