Skip to content

Instantly share code, notes, and snippets.

View nertzy's full-sized avatar
🤪

Grant Hutchins nertzy

🤪
View GitHub Profile
#!/bin/sh
DIR=`dirname "${BASH_SOURCE[0]}"`
pushd "$DIR"
ssh-add -t 9h ./id_rsa
@nertzy
nertzy / url-parse.d.ts
Last active September 26, 2016 16:24 — forked from Jason-Rev/url-parse.d.ts
Typings for npm url-parse
declare module "url-parse" {
interface Query {
[index: string]: string;
}
interface QueryParser {
(query: string): any;
}
interface ParsedUrl {
export function generateFactory<T>(defaultObject: T): (input?: Partial<T>) => T {
return (input?: Partial<T>) => Object.assign({}, defaultObject, input);
}
#424242,#00776D,#49A8D5,#FFFFFF,#8D8E8E,#FFFFFF,#71FFDA,#EB3D46
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-pain-control'
# Other examples:
# frozen_string_literal: true
require "sidekiq-ent/unique"
# In order to prevent duplicate unique jobs, Sidekiq Enterprise generates a
# hash of the job arguments. Because we are using Active Job, the arguments
# that Sidekiq receives include the job id and a timestamp of when the job was
# enqueued, both of which are virtually guaranteed to be unique.
#
# To work around this, we intercept and filter these arguments out around
AllCops:
DisabledByDefault: true
Style/TopLevelMethodDefinition:
Enabled: true
@nertzy
nertzy / lstcp.fish
Created March 22, 2024 18:54
lstcp
alias --save lstcp="sudo lsof -iTCP -sTCP:LISTEN -n -P"