Skip to content

Instantly share code, notes, and snippets.

View nertzy's full-sized avatar
🤪

Grant Hutchins nertzy

🤪
View GitHub Profile
@nertzy
nertzy / lstcp.fish
Created March 22, 2024 18:54
lstcp
alias --save lstcp="sudo lsof -iTCP -sTCP:LISTEN -n -P"
AllCops:
DisabledByDefault: true
Style/TopLevelMethodDefinition:
Enabled: true
# 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
# 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:
#424242,#00776D,#49A8D5,#FFFFFF,#8D8E8E,#FFFFFF,#71FFDA,#EB3D46
export function generateFactory<T>(defaultObject: T): (input?: Partial<T>) => T {
return (input?: Partial<T>) => Object.assign({}, defaultObject, input);
}
@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 {
#!/bin/sh
DIR=`dirname "${BASH_SOURCE[0]}"`
pushd "$DIR"
ssh-add -t 9h ./id_rsa
@nertzy
nertzy / callgrind_profiler.rb
Last active August 29, 2015 14:20
CallgrindProfiler
require 'jruby/profiler'
require 'jruby/profiler/callgrind_printer'
module CallgrindProfiler
def callgrind
unless JRuby.runtime.instance_config.is_profiling?
STDERR.puts 'Profiling not enabled, re-run with `ruby --profile.api`'
return
end
± gh |master ✓| → bundle --verbose
HTTP GET https://rails-assets.org/api/v1/dependencies
――― ERROR REPORT TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――
- What did you do?
- What did you expect to happen?
- What happened instead?
Error details
Java::JavaLang::RuntimeException: Could not generate DH keypair