Skip to content

Instantly share code, notes, and snippets.

Avatar

Josh Teneycke jteneycke

View GitHub Profile
@jteneycke
jteneycke / gist:7947353
Last active Oct 20, 2020
How to install and configure Common Lisp for Emacs. (SBCL + Slime + Emacs24)
View gist:7947353

In your shell

sudo apt-get install sbcl
curl -O http://beta.quicklisp.org/quicklisp.lisp
sbcl --load quicklisp.lisp

Inside the context of sbcl

@jteneycke
jteneycke / b.rb
Last active Apr 15, 2020 — 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 $?
View colors.conf
color_0 = ffff ffff ffff
color_1 = 4949 4848 3e3e
color_2 = 6666 d9d9 efef
color_3 = 6b6b c7c7 2b2b
color_4 = fdfd 9797 1f1f
color_5 = f9f9 2626 7272
color_6 = 94bc 5925 ffff
color_7 = 7575 7171 5e5e
color_8 = e6e6 dbdb 7474
color_9 = a6a6 e2e2 2e2e
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 / aliases.sh
Created Jun 4, 2019
Easy git bash aliases
View aliases.sh
# ~/.bash_profile
# ----------------------
# Git Aliases
# ----------------------
alias g='git'
alias ga='git add'
alias gaa='git add .'
alias gaaa='git add --all'
alias gau='git add --update'
alias gb='git branch'
@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/
View convert 3gp to mp3
ffmpeg -i in.3gp -c:a libmp3lame output.mp3
avconv -i in.3gp -acodec mp3 -ar 22050 -f wav out.mp3
View bootstrap-gallery-with-modal-and-carousel.markdown
@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
You can’t perform that action at this time.