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 nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' |
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
""" | |
Example output: | |
Random string of 1024 alphanumerics: | |
imbsnSkVml0zBLoTafc7hH2o1Nk6GJNKZAOxVKWMSkbA9wuUMKLTaIwcfLzIAxdMlwmO6d1r | |
Siwtk4nPgCbZVAph5x6LTcIcWQT284YqsSKoN87a2dmLQd5JHPSlzC4HgThJa97zXvS9MCNE | |
zcrbeSHresDyZjhLx8t2PsAXQ012dPDnJuy0RxIPzzVI0x6aZNqYcbXYy5z1SaeRzWVvKO6i | |
rAnRsQ41u30eAg0AY6o4ebQb7iiIr5bpJUmsCsdStXLMoVMQuJBPXaA5RvWaMztVMG5No9rA | |
uhBFx6Jh3hGPLEFk7jSFI6sCi6VkpnePUczrbDMmC4cmHHPmi8SztAxEpkZNk68uumzS8EAf |
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 time | |
from django.core.management.base import BaseCommand | |
from django.db.models import Max, Min | |
from django.db.utils import ProgrammingError | |
from djcelery.models import TaskMeta | |
class Command(BaseCommand): | |
help = 'Delete old celery tasks' |
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
checks: | |
- name: BofA | |
url: https://www.bankofamerica.com/ | |
form: | |
- id: onlineId1 | |
creds: bofa.login | |
- id: passcode1 | |
creds: bofa.password | |
- id: hp-sign-in-btn | |
click: 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
checks: | |
- name: AmEx | |
url: https://www.americanexpress.com/ | |
form: | |
- id: Username | |
creds: amex.username | |
- id: Password | |
creds: amex.password | |
- id: loginLink | |
click: 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
checks: | |
- name: Discover | |
url: https://www.discover.com/ | |
form: | |
- id: userid | |
creds: discover.login | |
- id: password | |
creds: discover.password | |
delay: 5 | |
transform: |
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
checks: | |
- name: TD | |
url: https://onlinebanking.tdbank.com/ | |
form: | |
- id: txtUser | |
value: creds.td.username | |
- id: txtPassword | |
value: creds.td.password | |
transform: | |
- css: #balance |
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
checks: | |
- name: bofa | |
url: https://www.bankofamerica.com/ | |
form: | |
- id: onlineid1 | |
creds: keyring.bofa.username | |
- id: passcode1 | |
creds: keyring.bofa.password | |
- id: hp-sign-in-btn |
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
transform: | |
- jinja: | | |
{%- set bofa = stash.bofa_credit | float -%} | |
{%- set discover = stash.discover | float -%} | |
{%- set amex = stash.amex | float -%} | |
{%- set checking = stash.bofa_checking | float -%} | |
{%- set savings = stash.bofa_savings | float -%} | |
{%- set credits = bofa + discover + amex -%} | |
{%- set total = -bofa - discover - amex + checking + savings -%} | |
```text |
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 | |
ticket=$(git symbolic-ref HEAD | grep -o 'ND-[0-9][0-9]*') | |
if [ -n "${ticket}" ]; then | |
grep -qs "^ *${ticket}" "${1}" || (echo >> "${1}" && echo "${ticket}" >> "${1}") | |
fi |