Skip to content

Instantly share code, notes, and snippets.

View alexjpaz's full-sized avatar
🌮

Alexander Paz alexjpaz

🌮
View GitHub Profile
/angular.js: // we can't use jQuery/jqLite here because jQuery does crazy shit with script elements, e.g.:
@alexjpaz
alexjpaz / gist:4992111
Created February 20, 2013 02:09
.gitconfig
[color]
ui = true
[alias]
br = branch --all
fixb = checkout -B _fix
co = checkout
c = commit -c HEAD
cc = !$HOME/.scripts/git/commit-progress-use-current-branch
st=status
sts=status -s .
@alexjpaz
alexjpaz / style.css
Last active December 19, 2015 21:49
body {
background: red;
}
@alexjpaz
alexjpaz / gist:6156391
Created August 5, 2013 14:38
Checkout only one branch
git remote add -t remote-branch remote-name remote-url
@alexjpaz
alexjpaz / gist:7910880
Created December 11, 2013 14:01
download and install profont
mkdir ~/.fonts && curl 'http://www.tobiasjung.net/download.php?file=profont-x11.tar.gz' | tar xz -C ~/.fonts
@alexjpaz
alexjpaz / gist:7929361
Created December 12, 2013 15:00
MATE - Select a window to make 'always on the bottom'
wmctrl -r :SELECT: -b toggle,below
@alexjpaz
alexjpaz / angular.js
Last active August 29, 2015 13:57
hi
/**
* @license AngularJS v1.2.15
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, document, undefined) {'use strict';
/**
* @description
*
docker kill $(docker ps -a -q)
docker rm -f $(docker ps -a -q)
docker-machine stop default
docker-machine start default
@alexjpaz
alexjpaz / tasks
Created August 2, 2016 12:30
tasks bash script template
#!/bin/bash
# change the directory to the script directory
cd ${0%/*}
CMD=${1:-usage}
shift 1
ARGS=$@
usage() {
@alexjpaz
alexjpaz / ks.cfg
Last active February 27, 2017 13:12
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Install OS instead of upgrade
install
# Firewall configuration
firewall --enabled --ssh
# Use CDROM installation media
cdrom
# Network information
network --bootproto=dhcp --device=eth0