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
let type = process.argv[2]; | |
if (type !== 'minor' && type !== 'major' && type !== 'patch') { | |
console.error('Specify major/minor/patch as the first argument'); | |
process.exit(1) | |
} | |
let file = process.cwd() + '/package.json'; | |
let package = require(file); |
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
const Model = require('sequelize').Model; | |
class User extends Model { | |
columns: { | |
id: { | |
autoIncrement: true, | |
primaryKey: true, | |
type: Model.DataTypes.INTEGER(10) | |
}, |
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
private static String toHexString(byte[] bytes) { | |
Formatter formatter = new Formatter(); | |
for (byte b : bytes) { | |
formatter.format("%02x", b); | |
} | |
return formatter.toString(); | |
} | |
public static String generateHMAC(String path, String body, String key) throws SignatureException, NoSuchAlgorithmException, InvalidKeyException { | |
SecretKeySpec signingKey = new SecretKeySpec(key.getBytes(), "HmacSHA1"); |
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
var passwords = ['password','123456','12345678','1234','qwerty','12345','dragon','pussy','baseball','football','letmein','monkey','696969','abc123','mustang','michael','shadow','master','jennifer','111111','2000','jordan','superman','harley','1234567','fuckme','hunter','fuckyou','trustno1','ranger','buster','thomas','tigger','robert','soccer','fuck','batman','test','pass','killer','hockey','george','charlie','andrew','michelle','love','sunshine','jessica','asshole','6969','pepper','daniel','access','123456789','654321','joshua','maggie','starwars','silver','william','dallas','yankees','123123','ashley','666666','hello','amanda','orange','biteme','freedom','computer','sexy','thunder','nicole','ginger','heather','hammer','summer','corvette','taylor','fucker','austin','1111','merlin','matthew','121212','golfer','cheese','princess','martin','chelsea','patrick','richard','diamond','yellow','bigdog','secret','asdfgh','sparky','cowboy','camaro','anthony','matrix','falcon','iloveyou','bailey','guitar','jackson','purp |
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 | |
apt-get update | |
apt-get dist-upgrade -y | |
apt-get install python-software-properties -y | |
# node | |
apt-add-repository ppa:chris-lea/node.js -y | |
# redis |
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
Q = require 'q' | |
request = require 'request' | |
init = request.Request::init | |
request.Request::init = (options) -> | |
defer = Q.defer() | |
@on 'complete', defer.resolve | |
@on 'error', defer.reject | |
# copy over promise functions, except timeout. |
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
Q = require 'q' | |
class DeferredObject | |
constructor: (data) -> | |
@data = data | |
for k, v of @data | |
@__defineGetter__ k, -> this.data[k] | |
defer: (key, getter) -> |
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
<?php | |
function compileSass($filename, $cached = true) { | |
$cache_dir = './phpsass_cache'; | |
# if cached, ensure we can write to the cache directory | |
if ($cached) { | |
if (!file_exists($cache_dir) && !mkdir($cache_dir)) { | |
throw 'SASS cache directory does not exist and cannot be created'; | |
} |
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 | |
sizes="16 24 32 64 128 256" | |
colors=("#000" "#33b5e3" "#808080") | |
names=("black" "holo" "grey") | |
count=${#names[@]} | |
for i in `seq 1 $count` ; do | |
name=${names[i - 1]} |
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
fs = require( 'fs' ) | |
CoffeeScript = require( 'coffee-script' ) | |
module.exports = ( builder )-> | |
builder.hook 'before scripts', ( pkg )-> | |
if scripts = pkg.conf.scripts | |
ret_scripts = [] | |
scripts.forEach (file) -> |
NewerOlder