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
# ===================== Mark functions ======================= | |
# calling mark, sets up a file ~/.mark_dir containing | |
# the value of the current directory | |
# hence forth, any terminal you open will be directed to this | |
# directory | |
function m(){ | |
printf `pwd` > ~/.mark_dir | |
echo 'Directory Marked' | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Auth uid="999999990019" tid="public" ac="public" sa="public" ver="1.5" lk="MKg8njN6O+QRUmYF+TrbBUCqlrCnbN/Ns6hYbnnaOk99e5UGNhhE/xQ=" txn="ilXwVcqzpZNSBMHG5W5/+y/FcfOPAoA7SYHVRNtNIx8= "> | |
<Skey ci="20150922">w7Ze8431BC0g5d/v4vJhH/38ZukDDfau5RrTaWV8hxdr1StjdD/WNSadThrO | |
VE/yuDXL3i0piCNM7sbVnEdDPE+gobEAdwSlwob8ypYeNNh5b6SIIE7hKkJF | |
BGbMy/8Cbcp9llqLH2zRaP78NM9LcRfoXjz02TOfx35RJdBGhzh5OESdiz60 | |
Mp7yJ5PbQdgAYqKvK0iW3z7kItuc6GduZiZCoiRiRSAX4nglYBi5vLV+DNuF | |
0OaefJV5hAu4o4qqhBFkF7IoWP58t2w5Lju0vrR+WquMW9AZl4BnBqHpCdpN | |
FTgQbfhWNL9axfeIqB4ctz2QZOENwnIjBCMR+hyJFQ== | |
</Skey> | |
<Uses pi="n" pa="n" pfa="n" bio="y" bt="FMR" pin="n" otp="n"/> |
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
# Instructions | |
# << command >> : << what it does >> | |
# l : lists all bookmarks | |
# s <name> : save current directory as <name> | |
# g <name> : go to bookmark <name> | |
# d <name> : delete bookmark <name> | |
function _uh { [[ -z $DEV ]]; return $? } |
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
#!/usr/bin/env python | |
""" | |
- Create a virtualenv in the directory containing this file. | |
- Activate the above virtualenv | |
- Install the dependencies for the app, as declared in | |
requirements.txt | |
""" | |
import os |
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
DEBUG = bool(os.environ.get('DJ_DEBUG')) | |
DATABASE_ENGINE = str(os.environ.get('DJ_DATABASE_ENGINE')) |
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/sh | |
### BEGIN INIT INFO | |
# Provides: planner | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the planner web app on a gunicorn server | |
# Description: starts the planner web app using start-stop-daemon |
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
#!/usr/bin/python | |
import sys | |
import os | |
import subprocess | |
proxies = { | |
'150': 'http://10.3.100.150:8080/', | |
'211': 'http://10.3.100.211:8080/', | |
'212': 'http://10.3.100.212:8080/', |
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 | |
# USAGE | |
# $> sudo ./sync-hosts-file | |
# Run this command in a directory where you have a hosts.append file | |
# which has hosts in the /etc/hosts style. | |
if [ "$(id -u)" != "0" ]; then | |
echo "You need to be root to execute this script" | |
exit 1 |
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
var SomeService = require('./SomeService'); | |
var config = require('config'); | |
var winstonConfig = require('winston-config'); | |
winstonConfig.fromJson(config.get('logging'), function (err, winston) { | |
// Handle error | |
var logger = winston.loggers.get('protocol'); | |
logger.info('Started application'); | |
} |
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
var config = require('config'); | |
var winstonConfig = require('winston-config'); | |
winstonConfig.fromJson(config.get('logging'), function (err, winston) { | |
// Handle error | |
var SomeService = require('./SomeService'); | |
var logger = winston.loggers.get('protocol'); | |
logger.info('Started application'); |
OlderNewer