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
--- | |
# Config file to override default-config.yml from git@github.com:geerlingguy/mac-dev-playbook.git | |
configure_dotfiles: false | |
configure_terminal: false | |
configure_osx: false | |
homebrew_installed_packages: | |
- aspell | |
- autoconf | |
- awscli |
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
(require 'package) | |
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/")) | |
(package-initialize) | |
(when (not package-archive-contents) | |
(package-refresh-contents)) | |
(defvar my-packages '(starter-kit | |
starter-kit-bindings |
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
from django.core.management.base import BaseCommand | |
from django.db.models import get_models, get_app, fields | |
from django.db.models.fields import related | |
class Command(BaseCommand): | |
help = """Generate factory-boy factories for the given app""" | |
def handle(self, *args, **options): | |
assert len(args) == 1, 'Must specify app name as first and only argument' |
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
TASK [tequila-django : upload github key] ****************************************************************************************************************************************************************** | |
task path: /home/vkurup/dev/epicallieshq/deployment/roles/tequila-django/tasks/main.yml:74 | |
ok: [staging] => { | |
"changed": false, | |
"checksum": "838396e7a90480edfd99021278843b6b2ee9d0cf", | |
"diff": { | |
"after": { | |
"path": "/home/epicallieshq/.ssh/github" | |
}, | |
"before": { |
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
TASK [tequila-django : upload github key] ****************************************************************************************************************************************************************** | |
task path: /home/vkurup/dev/epicallieshq/deployment/roles/tequila-django/tasks/main.yml:74 | |
changed: [staging] => { | |
"changed": true, | |
"checksum": "838396e7a90480edfd99021278843b6b2ee9d0cf", | |
"dest": "/home/epicallieshq/.ssh/github", | |
"diff": [], | |
"failed": false, | |
"gid": 1014, | |
"group": "epicallieshq", |
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
(tcx)vinod@cartman:~/dev/python-tcxparser(master) $ python | |
Python 2.7.10 (default, Oct 14 2015, 16:09:02) | |
[GCC 5.2.1 20151010] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import tcxparser | |
>>> tcx = tcxparser.TCXParser('test.tcx') | |
>>> tcx.root | |
<Element {http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2}TrainingCenterDatabase at 0x7f97eb2689e0> | |
>>> namespace = 'http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2' | |
>>> tcx.root.findall('.//ns:Extensions', namespaces={'ns': namespace}) |
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 urllib | |
import boto3 | |
import requests | |
print('Loading function') | |
s3 = boto3.client('s3') | |
# someday i will need to learn how to use AWS | |
s3_resource = boto3.resource('s3') |
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
smpp_transport: | |
transport_name: "transport" | |
system_id: smppclient1 # username | |
password: password # password | |
host: localhost # the host to connect to | |
port: 2775 # the port to connect to | |
rapidsms_relay_fake: | |
transport_name: 'transport' | |
rapidsms_url: {{ pillar['vumi']['rapidsms_url'] }} |
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 | |
pyflakes "$1" | |
pep8 --repeat "$1" | |
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 | |
# Reads from STDIN looking for ledger-formatted commodity symbols. Uses | |
# getquote (Perl script) to lookup the lastest price for commodity, then | |
# appends to PRICEDB file. | |
# | |
# Usage: | |
# ledger -n bal ^Assets:Investments | glue-quote.sh | |
# | |
# Assumes that you have 'getquote' on your path |
NewerOlder