start new:
tmux
start new with session name:
tmux new -s myname
| #Rewrites the request, extracting a fragment of the file name and using a remote server. | |
| location @fetchFromRemote { | |
| rewrite ^/path/to/images/(.*)$ http://remoteserver.com/other/path/to/images/$1 redirect; | |
| } | |
| #Will try to see if we have the file in this server, is not will use fetchFromRemote | |
| location ~ ^/path/to/images/.*(png|jpg|jpeg|gif|ico|swf)$ { | |
| try_files $uri @fetchFromRemote; | |
| } |
| # URI of the local (caching) HTTP proxy | |
| LOCAL_HTTP_PROXY = 'http://192.168.33.200:8123' | |
| # Configures vagrant-cachier and vagrant-proxyconf. | |
| # Should be called only on "local machine" providers. | |
| def configure_caching(config) | |
| if Vagrant.has_plugin?('vagrant-cachier') | |
| config.cache.enable_nfs = true | |
| config.cache.enable :gem | |
| config.cache.enable :npm |
| import paramiko | |
| import time | |
| import re | |
| bastion_ip='ip' | |
| bastion_pass='pass' | |
| ssh = paramiko.SSHClient() | |
| ssh.set_missing_host_key_policy( paramiko.AutoAddPolicy() ) | |
| ssh.connect(bastion_ip, username='root', password=bastion_pass) |
| #!/usr/bin/python | |
| import random | |
| import unicodedata | |
| def unicode_fuzz(lower_limit=0, upper_limit=60): | |
| unicode_glyphs = ''.join( | |
| unichr(char) | |
| for char in xrange(65533) | |
| # use the unicode categories that don't include control codes |
| ----------------------------------------- | |
| -- Show and Hide <application> | |
| ----------------------------------------- | |
| -- | |
| -- This script allows you to easily | |
| -- toggle the visibility of a specific | |
| -- app, similar to how Twitter and | |
| -- Sparrow toggle with their global | |
| -- hotkey option. | |
| -- |