Skip to content

Instantly share code, notes, and snippets.

View jwkicklighter's full-sized avatar

Jordan Kicklighter jwkicklighter

View GitHub Profile
@jwkicklighter
jwkicklighter / tmux.conf
Created March 9, 2026 16:16
tmux.conf for OpenCode passthrough bug
# Prefix
set -g prefix C-Space
set -g prefix2 C-b
bind C-Space send-prefix
# Reload config
bind q source-file ~/.config/tmux/tmux.conf
# Vi mode for copy
setw -g mode-keys vi
@jwkicklighter
jwkicklighter / link-mac.sh
Last active July 2, 2020 15:31
Link PrusaSlicer configs from a synced directory to the default config directory
@jwkicklighter
jwkicklighter / snippet.rb
Last active January 24, 2020 15:08
Run Rake tasks from Rails console #ruby #rails
require 'rake' # Often returns `false` because 'rake' is already loaded
Rails.application.load_tasks
Rake::Task['my_task'].invoke
# If you need to run the task again from the same session, you must re-enable it
Rake::Task['my_task'].reenable
@jwkicklighter
jwkicklighter / malloc_check.sh
Created August 7, 2019 14:53
Verify that jemalloc is enabled for Ruby
#! /bin/bash
#
# If this prints anything to the console, jemalloc is enabled.
# Otherwise the command will just exit with no output.
MALLOC_CONF=stats_print:true ruby -e "exit"
@jwkicklighter
jwkicklighter / ChromeExtensionGulp.js
Last active March 28, 2019 17:24 — forked from lykmapipo/ChromeExtensionGulp.js
Gulp file for building a Chrome Extension
'use strict';
//npm install gulp gulp-minify-css gulp-uglify gulp-clean gulp-cleanhtml gulp-jshint gulp-strip-debug gulp-zip node-sass gulp-sass --save-dev
var gulp = require('gulp'),
clean = require('gulp-clean'),
cleanhtml = require('gulp-cleanhtml'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
sass = require('gulp-sass'),
@jwkicklighter
jwkicklighter / delete_evicted_pods.sh
Created March 21, 2019 17:09
Delete evicted kubernetes pods #k8s
kubectl get pods --all-namespaces --field-selector 'status.phase==Failed' -o json | kubectl delete -f -
@jwkicklighter
jwkicklighter / .eslintrc.js
Created March 12, 2019 15:04
ESLint + Prettier + VSCode format on save issue
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
},
env: {
browser: true,
'jest/globals': true,
},
@jwkicklighter
jwkicklighter / docker_img_rm_repo.sh
Created July 30, 2018 15:39
Remove all docker images matching a repo name.
#! /bin/bash
# Remove all docker images matching a repo name, with tab completion.
# e.g. docker_img_rm_repo node
#
# Add this to your .bashrc/.zshrc, or save it and `source docker_img_rm_repo.sh`.
docker_img_rm_repo() {
docker image rm `docker image ls --format='{{.ID}}' $1 | tr '/n' ' '`
}
// Don't parse the string yet
var template = 'Hello ${name}'
var sayHello = function (name) {
// NOW parse the string
alert(template)
}
var debugHello = function (name) {
// ALSO NOW parse the string
@jwkicklighter
jwkicklighter / .vimrc
Last active October 14, 2015 13:56
Dotfiles
"syntax :on
"
color desert
set autoindent
set number
set tabstop=3
set sw=3
set gfn=Droid\ Sans\ Mono:h14
filetype indent plugin on
"