Skip to content

Instantly share code, notes, and snippets.

Josh Teneycke jteneycke

Block or report user

Report or block jteneycke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Oh my zsh with autosuggestions & syntax-highlighting.md

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@jteneycke
jteneycke / install-docker.sh
Created Jul 17, 2018 — forked from dweldon/install-docker.sh
Install docker CE on Linux Mint 18.3
View install-docker.sh
#!/usr/bin/env bash
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
sudo apt-get update
sudo apt-get install docker-ce
# https://docs.docker.com/compose/install/
@jteneycke
jteneycke / b.rb
Last active Nov 8, 2019 — forked from junegunn/b.rb
b - browse Chrome bookmarks with fzf
View b.rb
#!/usr/bin/env bash
# vim: set filetype=ruby:
# b - browse Chrome bookmarks with fzf
/usr/bin/ruby -x "$0" |
fzf-tmux -u 30% --ansi --multi --no-hscroll --tiebreak=begin |
awk 'BEGIN { FS = "\t" } { print $2 }' |
xargs xdg-open
exit $?
@jteneycke
jteneycke / gitLabToGitGraph.js
Created Jan 13, 2018 — forked from YMA-MDL/gitLabToGitGraph.js
Rendering a gitgraph in Aras PLM Solution, from a git extract (from gitlab)
View gitLabToGitGraph.js
require([
"./gitgraph/gitgraph.min.js",
"./gitgraph/lodash.js"
], function() {
var myTemplateConfig = {
colors: [ "#66ff66", "#00ffff", "#9999ff", "#ff6699", "#ff9966", "#3399ff", "#ff3300" ], // branches colors, 1 per column
branch: {
lineWidth: 6,
spacingX: 40,
@jteneycke
jteneycke / getCurrentWindowCWD.sh
Created Sep 11, 2017 — forked from TiddoLangerak/getCurrentWindowCWD.sh
Script to get the CWD of the current active window, with support for shells running tmux. This can be used to launch new terminals in the same cwd as the current one.
View getCurrentWindowCWD.sh
#!/bin/bash
# i3 thread: https://faq.i3wm.org/question/150/how-to-launch-a-terminal-from-here/?answer=152#post-id-152
# Inspired by https://gist.github.com/viking/5851049 but with support for tmux
CWD=''
# Get window ID
ID=$(xdpyinfo | grep focus | cut -f4 -d " ")
# Get PID of process whose window this is
@jteneycke
jteneycke / background.js
Created Sep 8, 2017 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
View background.js
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
@jteneycke
jteneycke / tmux-all-panes.sh
Created Jun 15, 2017 — forked from acdvorak/tmux-all-panes.sh
tmux: run a command in all panes
View tmux-all-panes.sh
#!/bin/bash
# Runs the specified command (provided by the first argument) in all tmux panes
# in every window. If an application is currently running in a given pane
# (e.g., vim), it is suspended and then resumed so the command can be run.
all-panes()
{
all-panes-bg_ "$1" &
}
@jteneycke
jteneycke / vim_tmux_no_X_clipboard.vim
Created Jun 13, 2017 — forked from TroyFletcher/vim_tmux_no_X_clipboard.vim
Sharing clipboards between vim and tmux without xsel or xclip or X forwarding
View vim_tmux_no_X_clipboard.vim
" Share clipboards between vim and tmux without xsel or xclip (which require X and
" X forwarding with SSH) and without changing tmux shortcuts. Requires only tail.
"
" Great for an ssh session to you linode or droplet.
"
" Uses z buffer in vim and writes output to ~/.clipboard and then to tmux's paste
" buffer, and reads it back in cleanly for putting (puddin').
" Example vimrc mappings
" Visual mode yank selected area to tmux paste buffer (clipboard)
@jteneycke
jteneycke / ec
Created Feb 26, 2017 — forked from alexmurray/ec
Start Emacs Client in GUI (and launch Emacs server if not already running)
View ec
#!/bin/bash
# Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/
# This script starts emacs daemon if it is not running, opens whatever file
# you pass in and changes the focus to emacs. Without any arguments, it just
# opens the current buffer or *scratch* if nothing else is open. The following
# example will open ~/.bashrc
# ec ~/.bashrc
@jteneycke
jteneycke / ec
Created Feb 26, 2017 — forked from alexmurray/ec
Start Emacs Client in GUI (and launch Emacs server if not already running)
View ec
#!/bin/bash
# Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/
# This script starts emacs daemon if it is not running, opens whatever file
# you pass in and changes the focus to emacs. Without any arguments, it just
# opens the current buffer or *scratch* if nothing else is open. The following
# example will open ~/.bashrc
# ec ~/.bashrc
You can’t perform that action at this time.