Skip to content

Instantly share code, notes, and snippets.

View gauthierm's full-sized avatar

Michael Gauthier gauthierm

View GitHub Profile
import DS from 'ember-data';
export default DS.Model.extend({
firstName: DS.attr('string'),
lastName: DS.attr('string'),
// Relationships
country: DS.belongsTo('country'),
});
module.exports = function defineModel(sequelize, DataTypes) {
const Account = sequelize.define('Account', {
id: {
type: DataTypes.UUID,
primaryKey: true,
defaultValue: DataTypes.UUIDV4,
allowNull: false,
},
firstName: {
type: DataTypes.STRING,
#!/bin/bash
REPOS="$1"
TXN="$2"
PHP="/usr/bin/php"
SVNLOOK="/usr/bin/svnlook"
AWK="/usr/bin/awk"
GREP="/bin/egrep"
SED="/bin/sed"
#
# The PAM configuration file for the cron daemon
#
#
# No PAM authentication called, auth modules not needed
account required pam_access.so
account include password-auth
session required pam_loginuid.so
session include password-auth
auth include password-auth
so_sites:
- name: 'mywebsite'
primary_domain: 'www.mywebsite.com'
ipv4_address: '127.0.0.1'
directory: 'mywebsite'
php_sessions:
- 'mywebsite''
- 'mywebsite'admin'
php_exceptions:
- 'mywebsite''
You are using pip version 6.1.1, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Processing /var/folders/l1/vxc71l1j7lvff3cf46q1z8ym0000gn/T/peep-EiJbqi/rna-601ec3dca993b39cb685238e3c2cb5ac86769af2.tar.gz
Installing collected packages: rna
Found existing installation: rna 0.0.1
Uninstalling rna-0.0.1:
Successfully uninstalled rna-0.0.1
Running setup.py install for rna
Successfully installed rna-0.0.1
You are using pip version 6.1.1, however version 7.1.2 is available.
@gauthierm
gauthierm / .vimrc
Last active November 10, 2015 15:42
" syntax highlighting
syntax on
" use vim extensions
set nocompatible
" user-friendly backspace
set backspace=indent,eol,start
" show command on last line of screen
@import 'bootstrap.less';
// your code here
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'login' ]
2 info using npm@2.10.0
3 info using node@v0.12.3
4 verbose adduser before first PUT { _id: 'org.couchdb.user:gauthierm',
4 verbose adduser name: 'gauthierm',
4 verbose adduser password: 'XXXXX',
4 verbose adduser email: 'mike@silverorange.com',
4 verbose adduser type: 'user',
4 verbose adduser roles: [],
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'adduser' ]
2 info using npm@2.10.0
3 info using node@v0.12.3
4 verbose adduser before first PUT { _id: 'org.couchdb.user:gauthierm',
4 verbose adduser name: 'gauthierm',
4 verbose adduser password: 'XXXXX',
4 verbose adduser email: 'mike@silverorange.com',
4 verbose adduser type: 'user',
4 verbose adduser roles: [],