Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

# set-option -g default-terminal "tmux-256color"
# set-option -g status-justify centre
set-option -g status-justify absolute-centre
set-option -g status-position top
set-option -g status-style bg=default
set-option -g status-left-length 60
# Show/Hide Status Bar with hotkey
bind s set-option -g status
@joelremix
joelremix / .tmux.conf
Created December 5, 2021 02:03
tmux.conf
# set -g default-terminal "screen-256color"
# set -g default-terminal "screen.xterm-256color"
# set -g default-terminal "tmux-256color"
set -g default-terminal "screen"
# set -g default-terminal "xterm"
set-option -gw mode-keys vi # vi style key bindings
bind-key -n C-k clear-history
# Source config
@joelremix
joelremix / check_broken_image.js
Created September 23, 2016 18:54
jQuery: Check Broken Images
$(document).ready(function(){
// Looping through all image elements
$("img").each( function () {
var element = $(this);
$.ajax({
url:$(this).attr('src'),
type:'get',
async: false,
error:function(response){
@joelremix
joelremix / vim_update-pathogen-plugins.txt
Created July 20, 2016 21:58
Vim: Update Pathogen Bundles (plugins) via Terminal
for i in ~/.vim/bundle/*; do git -C $i pull; done
@joelremix
joelremix / gist:995ae051d1bc345d30f9cf46a7feeff2
Created July 20, 2016 21:55
Vim: Update blundles (plugins) via Terminal
We couldn’t find that file to show.
@joelremix
joelremix / .vimrc
Last active December 1, 2021 18:00
VIM: vimrc
set nocompatible "Disable vi-compatability. Above everything else to enable certain features below this line
let mapleader = " "
let g:mapleader = " "
set exrc "Allows per-project vimrc files
" set guifont=Monoid\ Nerd\ Font:h14
" set guifont=SauceCodePro\ Nerd\ Font:h15
@joelremix
joelremix / text-overflow.scss
Created November 5, 2014 01:55
Sass: text-overflow.scss
//Mixin
text-overflow() {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
//Usage
branch-name {
display: inline-block;
@joelremix
joelremix / jQuery.nextStep.js
Last active August 29, 2015 14:02
jQuery: nextStep
$.fn.nextStep = function(step) {
elem = this.parent().children().eq(this.index() + step -1 -(this.index()%step));
return elem.length ? elem : this.parent().children().last();
};
@joelremix
joelremix / jQuery: nextFour.js
Created June 11, 2014 01:32
jQuery: nextFour()
// http://stackoverflow.com/a/18444121/372567
$.fn.nextFour = function (arguments){
return $(this).parent().children().eq(idx + 4-(idx%4)-1); // -1 to correct zero-based index
}
@joelremix
joelremix / _Javascript: find_item.js
Created June 6, 2014 13:18
_Javascript: find_item
//Underscore
//find item without knowing its position in array
//http://stackoverflow.com/a/11922384/372567
_.find(data.items, function(item) {
return item.id === 2;
});
// Object {id: 2, name: "bar"}