Skip to content

Instantly share code, notes, and snippets.

View flacoman91's full-sized avatar

Richard Dinh flacoman91

  • EY
  • New York, NY
View GitHub Profile
// ==UserScript==
// @name Auto Check-In to Southwest Flights
// @namespace http://www.ryanizzo.com/southwest-auto-check-in/
// @version 1.5.1
// @author Nicholas Buroojy (http://userscripts.org/users/83813)
// @contributor Ryan Izzo (http://www.ryanizzo.com)
// @contributor JR Hehnly (http://www.okstorms.com @stormchasing)
// @description Automatically check in to Southwest Airline flights at the appropriate time.
// @include https://southwest.com/flight/retrieveCheckinDoc.html*
// @include https://southwest.com/flight/selectPrintDocument*
@JeffreyMFarley
JeffreyMFarley / dups.sh
Last active August 25, 2020 14:17
Find Duplicated Javascript code
#!/bin/sh
files=frontend/src/static/js
pmd cpd --language ecmascript --minimum-tokens 25 --files "$files" --format csv \
| sed "1s/.*/lines,tokens,occurrences,L1,F1,L2,F2,L3,F3,L4,F4/" \
| sed "s|$(pwd)/$files|.|g" \
> dups.csv
@chrisjimallen
chrisjimallen / docker-compose.yaml
Created March 3, 2017 18:40
Browsersync working in docker container.
version: '2'
services:
wordpress:
image: wordpress
expose:
- 80
environment:
WORDPRESS_DB_PASSWORD: example
@JeffreyMFarley
JeffreyMFarley / jasmine-custom-dictionary-log.js
Last active June 29, 2018 15:07
Who's changing my values?
jasmine.addCustomEqualityTester( ( a, b ) => {
const ak = Object.keys( a ).concat( Object.keys( b ) );
const unique = ak.filter( ( v, i, arr ) => arr.indexOf( v ) === i );
unique.sort();
for ( var i = 0; i < unique.length; i++ ) {
const k = unique[i];
if ( b[k] ) {
console.log( k, '\t', a[k], '\t', b[k] );
}
@titenkov
titenkov / vim-visual-blocks.md
Last active February 4, 2025 14:32
Use Vim visual blocks during interactive git rebase

Sometimes, when rebasing interactively with git, we need to squash a sequence of commits in a branch.

For example, we need to transform this:

pick 0253dc894f bumped
pick 5a1e86933c remove dependency
pick bffoffb395 memberships rpc resource
pick 222fabf5e0 rpc membership service
pick 726a2f9a10 remove crypto logic