Skip to content

Instantly share code, notes, and snippets.

@abbotto
abbotto / terminus.theme.bash
Created June 21, 2018 20:44
Terminus Them for Bash-it
#!/usr/bin/env bash
SCM_THEME_PROMPT_DIRTY=" ${red}"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}"
SCM_THEME_PROMPT_PREFIX=" ${green}"
SCM_THEME_PROMPT_SUFFIX="${green}"
GIT_THEME_PROMPT_DIRTY=" ${red}"
GIT_THEME_PROMPT_CLEAN=" ${bold_green}"
GIT_THEME_PROMPT_PREFIX=" ${green}"
@abbotto
abbotto / archlinux-install-guide.md
Created February 10, 2017 23:14 — forked from alphazo/archlinux-install-guide.md
ArchLinux Installation Guide

ArchLinux Installation guide

This will use GPT partitions and GRUB2 on a BIOS enabled PC (see Wiki for EFI). The Installation Guide can be found at /root/install.txt.

Prepare USB stick

Get 2012.08.04 image or later from http://www.archlinux.org/download. Following tutorial requires at least 2011.07.15 image.

dd if=/dev/zero of=/dev/sdx bs=1k count=1

// Font-Awesome form controls
input[type="checkbox"],
input[type="radio"] {
visibility: hidden;
}
input[type="checkbox"] + label,
label + input[type="checkbox"] {
@extend .icon;
cursor: pointer;
@abbotto
abbotto / conky.conf
Last active February 23, 2021 10:42
Conky settings for Linux
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
conky.config = {
-- General settings
alignment = 'top_right',
background = true,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = '#555',
@abbotto
abbotto / nest.sh
Last active October 7, 2016 11:30
NodeJS Environment Setup Tasks
#!/bin/bash
printf "\n-----------------------------------------\n"
printf "N.E.S.T.\n"
printf "NodeJS Environment Setup Tasks"
printf "\n-----------------------------------------\n"
# Requires nvm and nodejs
# Put this in the same folder as "package.json"
@abbotto
abbotto / convert.demo.sh
Created August 12, 2016 19:01 — forked from zealinux/convert.demo.sh
imagemagick convert cheat sheet
= IMAGEMAGICK
Working with images, PDFs and the command line
# convert from one format to another
convert image.gif image.jpg
# convert specific PDF page to image
@abbotto
abbotto / xpad.c
Created August 7, 2016 03:10 — forked from anonymous/xpad.c
xpad.c to emulate keyboard
/*
* Xbox input device driver for Linux - v0.1.6
*
* Copyright (c) 2002 - 2004 Marko Friedemann <mfr@bmx-chemnitz.de>
*
* Contributors:
* Vojtech Pavlik <vojtech@suse.sz>,
* Oliver Schwartz <Oliver.Schwartz@gmx.de>,
* Thomas Pedley <gentoox@shallax.com>,
* Steven Toth <steve@toth.demon.co.uk>,
@abbotto
abbotto / nano-template.js
Last active April 26, 2024 08:13
A templating solution implemented in JavaScript [207 bytes minified+gzipped]
// Author: Jared Abbott
// Created: December 2015
// License: MIT
var template = function(tpl, data) {
// Make sure the cache is available
var w = window;
w.tplCache = !w.tplCache ? {} : w.tplCache;
// Prepare and load the template
tpl = ('"' + tpl.replace(/\{\{(.*?)\}\}/g, '"+$1+"') + '"').split(/\'+ | + \'/);
@abbotto
abbotto / font-awesome-form-controls.scss
Last active December 17, 2015 23:42
Cross-Browser Form Controls - Made with SASS and Font Awesome
// Demo: http://codepen.io/o0110o/pen/ZQWLKR?editors=110
// Comment out the following line if you already have Font Awesome installed
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css);
// Base Style
.icon {
text-decoration: none;
margin-left: 0.4rem;
&:before {
@abbotto
abbotto / .bashrc
Created October 15, 2015 16:54
.bashrc for OS X
export EDITOR=/usr/bin/nano
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
export NVM_DIR="/Users/USERNAME_HERE/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
# NVM Path
source ~/.nvm/nvm.sh