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
{ | |
"code": "TEO", | |
"constant": "TECH_EMISSION_AND_OMISSIONS", | |
"name": "Technology Errors and Omissions", | |
"path": "/tech-e-and-o", | |
"productId": "fc1ab8a2-3ac9-4f6f-9c58-e51f35e98af1", | |
"insurerGroup": "Berkley Insurance Company", | |
"insurerId": "1a6f63e9-1c2e-4f0a-bf79-0acaebba9781", | |
"eligibility": { | |
"maximumDaysInAdvance": 60, |
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 | |
# | |
# Custom Git merge driver - merges PO files using msgcat(1) | |
# | |
# - Install gettext | |
# | |
# - Place this script in your PATH | |
# | |
# - Add this to your .git/config : | |
# |
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 | |
# Run with curl https://gist.github.com/justhamade/633013c13e29e72c1080 | sh | |
yum clean metadata | |
yum clean all | |
yum update -y | |
yum groupinstall "Development tools" -y | |
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel -y |
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
name: stackto-demo | |
framework: | |
type: python | |
runtime: python27 | |
min_version: | |
client: 1.5.1 | |
env: | |
DJANGO_SETTINGS_MODULE: settings.production | |
requirements: | |
pip: |
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 urlparse | |
DATABASES = {} | |
if 'DATABASE_URL' in os.environ: | |
url = urlparse.urlparse(os.environ['DATABASE_URL']) | |
DATABASES['default'] = { | |
'NAME': url.path[1:], | |
'USER': url.username, | |
'PASSWORD': url.password, | |
'HOST': url.hostname, | |
'PORT': url.port, |
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 urlparse | |
DATABASES = {} | |
if 'DATABASE_URL' in os.environ: | |
url = urlparse.urlparse(os.environ['DATABASE_URL']) | |
DATABASES['default'] = { | |
'NAME': url.path[1:], | |
'USER': url.username, | |
'PASSWORD': url.password, | |
'HOST': url.hostname, | |
'PORT': url.port, |
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 | |
FILE=find.txt | |
DIRECTORY=fmep | |
while read f; do | |
echo "Searching for $f" | |
line=$(find $DIRECTORY -type f -exec grep -Hn $f {} \;) | |
if [ -z "${line}" ]; then | |
echo "$f NOT FOUND" | |
fi |
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
store: | |
title: Justins Stackato Applications | |
contact: Justin Hamade <justin@openroad.ca> | |
icon: 901uhl.png | |
icon-url: http://i42.tinypic.com/ | |
src-url: https://github.com/justhamade/ | |
defaults: | |
id: $id-from-name | |
mem: 128 | |
src: $id.git |
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.contrib import admin | |
from django.contrib.admin import ChoicesFieldListFilter | |
from django.contrib.admin.views.main import ChangeList | |
from django.utils.http import urlencode | |
from django.utils.translation import ugettext_lazy as _ | |
from django.utils.encoding import smart_text | |
from .models import Person | |
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
$.ajaxSetup({$ | |
xhrFields: {$ | |
withCredentials: true$ | |
},$ | |
crossDomain: true,$ | |
statusCode: {$ | |
401: function(){$ | |
// Redirec the to the login page.$ | |
console.log('401');$ | |
//window.location.replace('/web/#login');$ |