ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
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 sys | |
| from PIL import Image, ImageDraw | |
| try: | |
| import cv | |
| except ImportError: | |
| print 'Could not import cv, trying opencv' | |
| import opencv.cv as cv |
# virtualenv graphite-web
# cd graphite-web
# . bin/activate
# pip install circus chaussette meinheld Django==1.3 Twisted==11.1.0 python-memcached==1.47 txAMQP==0.4 simplejson==2.1.6 django-tagging==0.3.1 gunicorn pytz pyparsing==1.5.7 http://cairographics.org/releases/py2cairo-1.8.10.tar.gz git+git://github.com/graphite-project/whisper.git#egg=whisper
# pip install git+git://github.com/graphite-project/graphite-web.git --install-option="--prefix=$VIRTUALENV_PREFIX/graphite-web" --install-option="--install-lib=$VIRTUALENV_PREFIX/graphite-web/lib/python2.7/site-packages"
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
| # Copyright 2014 Dan Krause | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
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 zsh | |
| git show-branch -a \ | |
| | grep '\*' \ | |
| | grep -v `git rev-parse --abbrev-ref HEAD` \ | |
| | head -n1 \ | |
| | sed 's/.*\[\(.*\)\].*/\1/' \ | |
| | sed 's/[\^~].*//' | |
| # How it works: |
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 | |
| # | |
| # /etc/ppp/ip-down | |
| # | |
| # When the ppp link goes down, this script is called with the following | |
| # parameters | |
| # $1 the interface name used by pppd (e.g. ppp3) | |
| # $2 the tty device name | |
| # $3 the tty device speed | |
| # $4 the local IP address for the interface |
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 site in google.com facebook.com youtube.com yahoo.com wikipedia.org linkedin.com microsoft.com twitter.com amazon.com blogspot.com tumblr.com netflix.com mozilla.org marketplace.mozilla.com login.persona.org; do echo;echo "-- $site --"; ./CiphersScan.sh $site:443;done | |
| -- google.com -- | |
| prio ciphersuite protocol pfs_keysize | |
| 1 ECDHE-RSA-AES128-GCM-SHA256 TLSv1.2 ECDH,P-256,256bits | |
| 2 ECDHE-RSA-RC4-SHA TLSv1.2 ECDH,P-256,256bits | |
| 3 ECDHE-RSA-AES128-SHA TLSv1.2 ECDH,P-256,256bits | |
| 4 AES128-GCM-SHA256 TLSv1.2 | |
| 5 RC4-SHA TLSv1.2 | |
| 6 RC4-MD5 TLSv1.2 |
This Gist contains instructions to setup Ubuntu server with Nginx, uWSGI & Node.js with that can serve for any Python apps (Django for instance) and will allow it's automatized deployment.
The content is as follows:
01-ubuntu.md– A basic Ubuntu server setup.02-nginx-uwsgi-nodejs.md– Nginx, uWSGI and Node.js installation and setup.03-deployment.md– A server setup for automatized deployment.04-mariadb.md– Mariadb installation and setup.
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 | |
| while read oldrev newrev refname | |
| do | |
| # Only build the master branch. | |
| if [[ $refname = "refs/heads/master" ]] ; then | |
| echo "building------> $newrev ... " | |
| #We get the archive and pass it to the slug builder | |
| slug_id=newapp | |
| git archive $newrev | docker run -i -name $newrev -a stdin -a stdout -a stderr flynn/slugbuilder - > $newrev.tgz | |
| # s3cmd put $newrev.tgz s3://pyxiscloud/$newrev.tgz |
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
| # required: ffmpeg (e.g. from homebrew), terminal-notifier from https://github.com/alloy/terminal-notifier | |
| # you can schedule this with launchd to run e.g. weekly | |
| # Specify in seconds how long the script should record (default here is 1 hour). | |
| seconds=3600 | |
| # Date format for the recording file name | |
| DATE=`date "+%d-%m-%y_%H-%M"` | |
| # start ffmpeg recording |