Skip to content

Instantly share code, notes, and snippets.

@Bastes
Bastes / git-chain-rebase
Last active June 24, 2020 16:14
git-chain-rebase
#! /usr/bin/env ruby
# frozen_string_literal: true
raise 'requires at least the new base and 1 branch to rebase' if ARGV.length < 2
to_rebase = ARGV[0]
new_base = ARGV[1]
puts "to rebase: #{to_rebase.inspect}"
puts "new base: #{new_base.inspect}"
@Bastes
Bastes / install.sh
Last active March 17, 2021 09:23
install ubuntu
# most basic commands and programs
sudo apt install \
tilix \
fish \
npm \
xclip \
ripgrep \
git \
gimp \
curl \
## BEFORE STOOTIE
.netrwhist
.*.sw[a-z]
.rvmrc
.rbenv-*
*~
.DS_Store
coverage
.sass-cache
vendor/bundle
@Bastes
Bastes / .gitconfig
Last active September 14, 2021 07:36
Back to my personal email and signingkey
[color]
ui = true
[user]
name = Michel Belleville
email = michel.belleville@gmail.com
signingkey = E6597EC74934C00C
[branch]
autosetupmerge = always
autosetuprebase = always
[core]
@Bastes
Bastes / init.vim
Last active June 24, 2020 16:09
My very own ~/.config/nvim/init.vim
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
" " Add or remove your Bundles here:
" " - syntaxes