This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| # | |
| # Create symlinks in the PrusaSlicer config directory pointing to the contents of this directory. | |
| SYNC_DIR=`pwd` | |
| CONFIG_DIR="$HOME/Library/Application Support/PrusaSlicer" | |
| dirs="filament print printer" | |
| echo $CONFIG_DIR | |
| echo $SYNC_DIR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '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'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl get pods --all-namespaces --field-selector 'status.phase==Failed' -o json | kubectl delete -f - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| root: true, | |
| parser: 'babel-eslint', | |
| parserOptions: { | |
| sourceType: 'module', | |
| }, | |
| env: { | |
| browser: true, | |
| 'jest/globals': true, | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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' ' '` | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "syntax :on | |
| " | |
| color desert | |
| set autoindent | |
| set number | |
| set tabstop=3 | |
| set sw=3 | |
| set gfn=Droid\ Sans\ Mono:h14 | |
| filetype indent plugin on | |
| " |
NewerOlder