Skip to content

Instantly share code, notes, and snippets.

View peterkovacs's full-sized avatar

Peter Kovacs peterkovacs

View GitHub Profile
@peterkovacs
peterkovacs / s3.sh
Last active August 29, 2015 14:20 — forked from chrismdp/s3.sh
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3()
{
file_path=$1
@peterkovacs
peterkovacs / password_strength.js
Created January 17, 2014 20:00
Start of a JS implementation of strong_password password strength meter
$.fn.password_strength = function (options) {
"use strict";
// This is generated by doing:
// Regexp.union( StrongPassword::DictionaryAdjuster::COMMON_PASSWORDS.sort_by(&:length).reverse ).to_json
// Some additional edits may be necessary in order to get the escaping correct.
var COMMON_PASSWORDS = /films\+pic\+galeries|masterbaiting|contortionist|masturbation|masterbating|unbelievable|pornographic|scandinavian|motherfucker|businessbabe|christopher|intercourse|experienced|primetime21|penetration|fuck_inside|knickerless|cheerleaers|penetrating|playstation|ejaculation|charlie123|1q2w3e4r5t|deepthroat|highlander|california|experience|qwertyuiop|dragonball|masterbate|uncencored|interacial|cocksucker|manchester|techniques|housewifes|quant4307s|washington|gangbanged|basketball|enterprise|insertions|postov1000|undertaker|1234567890|peternorth|university|fuckinside|absolutely|lockerroom|transexual|swordfish|snowboard|gallaries|alexander|blackjack|homepage\-|cleveland|webmaster|passwords|chevrolet|housewife