Skip to content

Instantly share code, notes, and snippets.

View abarnhard's full-sized avatar

Adam Barnhard abarnhard

  • USA - Denver, CO
View GitHub Profile
@abarnhard
abarnhard / sybase.py
Created December 11, 2016 03:40 — forked from pawl/sybase.py
Copy Sybase IQ Table Schema to MySQL Using SQLalchemy and SQL Anywhere ODBC
import sqlalchemy, sqlanydb
from sqlalchemy import create_engine, Table, Column, Integer, Unicode, MetaData, String, Text, update, and_, select, func, types
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
def connect():
return sqlanydb.connect(DSN='<your DNS>', userid='<username>', password='<password>')
srcEngine = sqlalchemy.create_engine('sqlalchemy_sqlany://', creator=connect, echo=True) # pip install sqlalchemy-sqlany
@abarnhard
abarnhard / .jscsrc
Last active August 29, 2015 14:12 — forked from chyld/.jscsrc
{
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch",
"switch"
@abarnhard
abarnhard / .jshintrc
Last active August 29, 2015 14:12 — forked from chyld/.jshintrc
{
"camelcase": true,
"curly": true,
"eqeqeq": true,
"forin": true,
"immed": true,
"indent": 2,
"latedef": "nofunc",
"newcap": true,
"noarg": true,
@abarnhard
abarnhard / gulpfile.js
Last active August 29, 2015 14:12 — forked from chyld/gulpfile.js
var gulp = require('gulp');
var gutil = require('gulp-util');
var bower = require('bower');
var concat = require('gulp-concat');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var rename = require('gulp-rename');
var sh = require('shelljs');
var jade = require('gulp-jade');
var jshint = require('gulp-jshint');
@abarnhard
abarnhard / .jshintrc
Last active August 29, 2015 14:09 — forked from chyld/.jshintrc
{
"camelcase": true,
"curly": true,
"eqeqeq": true,
"forin": true,
"immed": true,
"indent": 2,
"latedef": "nofunc",
"newcap": true,
"noarg": true,
@abarnhard
abarnhard / .jscsrc
Last active August 29, 2015 14:09 — forked from chyld/.jscsrc
{
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch",
"switch"
@abarnhard
abarnhard / .vimrc
Last active August 29, 2015 14:09 — forked from chyld/.vimrc
" http://vimdoc.sourceforge.net/htmldoc/options.html
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'scrooloose/nerdtree'
@abarnhard
abarnhard / .tmux.conf
Last active August 29, 2015 14:09 — forked from chyld/.tmux.conf
# Allows for faster key repetition
set -s escape-time 1
# Start window numbering at 1
set -g base-index 1
# Start pane numbering at 1
setw -g pane-base-index 1
# Allow repeat keys under 1 second
@abarnhard
abarnhard / .gitconfig
Last active August 29, 2015 14:09 — forked from chyld/.gitconfig
[alias]
st = status -s
lg = log --oneline --decorate --all --graph
br = branch -av
rt = remote -v
[user]
email = chyld.medford@gmail.com
name = Chyld Medford
@abarnhard
abarnhard / .mongo.conf
Last active August 29, 2015 14:09 — forked from chyld/.mongo.conf
fork = true
bind_ip = 0.0.0.0
port = 27017
quiet = true
dbpath = /users/chyld/Data/mongo/
logpath = /users/chyld/Data/mongo/mongodb.log
logappend = true
journal = true