Skip to content

Instantly share code, notes, and snippets.

View IrishPrime's full-sized avatar

Michael "Irish" O'Neill IrishPrime

View GitHub Profile
@IrishPrime
IrishPrime / 50-synaptics.conf
Created June 6, 2014 22:12
Touchpad Settings (/etc/X11/xorg.conf.d/)
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
Option "AccelFactor" "0"
Option "AccelerationDenominator" "1"
Option "AccelerationNumerator" "1"
Option "AccelerationProfile" "-1"
Option "AccelerationScheme" "none"
Option "AccelerationThreshold" "0"
@IrishPrime
IrishPrime / vimrc-xsel
Last active August 29, 2015 14:06
Quick way to get data from terminal vim to the system clipboard with xsel (for when vim is compiled without clipboard support)
" Mappings to make the global register less annoying (requires xsel)
if has("clipboard")
map <Leader>p :set paste<CR>"+]p<Esc>:set nopaste<CR>
map <Leader>P :set paste<CR>"+]P<Esc>:set nopaste<CR>
map <Leader>y "+y
map <Leader>Y "+Y
else
map <Leader>p :set paste<CR>:r !xsel -ob<Esc>:set nopaste<CR>
map <Leader>P :set paste<CR>:-1r !xsel -ob<Esc>:set nopaste<CR>
map <Leader>y :w !xsel -ib<CR><CR>
@IrishPrime
IrishPrime / git-cleanup.sh
Created October 3, 2017 15:31
Remove merged branches
#!/bin/bash
# Delete remote branches which have been merged into master, excluding the
# current branch, then remove local branches pointing to remote branches which
# have been deleted.
# Test
git branch -r --merged master | grep -v -e $(git symbolic-ref --short HEAD) -e master | sed 's/origin\///'
# Delete
@IrishPrime
IrishPrime / bands.txt
Created November 23, 2019 18:28
Female Fronted Rock and Metal Bands
Aesma Daeva
After Forever
Almôra
Amaranthe
Amberian Dawn
Ancient Bards
Android Lust
Angelspit
Angtoria
Arch Enemy
@IrishPrime
IrishPrime / luasnip.lua
Last active October 13, 2022 02:07
Simple LuaSnip.nvim configuration with Python snippets
local ls = require("luasnip")
local ai = require("luasnip.nodes.absolute_indexer")
local events = require("luasnip.util.events")
local extras = require("luasnip.extras")
local fmt = require("luasnip.extras.fmt").fmt
local postfix = require("luasnip.extras.postfix").postfix
local types = require("luasnip.util.types")
ls.config.set_config({
-- This tells LuaSnip to remember the last snippet.