Skip to content

Instantly share code, notes, and snippets.

View joedicastro's full-sized avatar

joe di castro joedicastro

View GitHub Profile
@joedicastro
joedicastro / configuration.nix
Last active January 22, 2022 20:25
My NixOS configuration
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
## DISK CONFIGURATION
imports =
@joedicastro
joedicastro / minify
Created April 24, 2015 18:16
Compression vs Minification
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
(defhydra hydra-buffers (:color blue :hint nil)
"
╭─────────┐
Move to Window Switch Do │ Buffers │
╭────────────────────────────────────────────────────────────────────┴─────────╯
^_k_^ [_b_] switch (ido) [_d_] kill the buffer
^^↑^^ [_i_] ibuffer [_r_] toggle read-only mode
_h_ ← → _l_ [_a_] alternate [_u_] revert buffer changes
^^↓^^ [_s_] switch (helm) [_w_] save buffer
^_j_^
@joedicastro
joedicastro / shots.py
Last active December 30, 2016 08:11
Capture successive screen shots of a given screen region
#!/usr/bin/env python2
"""
shots.py: capture successive screen shots of a given screen region
"""
__author__ = "joe di castro <joe@joedicastro.com>"
__license__ = "MIT"
__date__ = "2015-03-01"
__version__ = "0.1"
graph DOM {
dpi=300
nodesep=0.8
node [
shape=box,
style=filled,
fillcolor=cornflowerblue,
fontcolor=white,
fontname=sans,
color=cornflowerblue,
@joedicastro
joedicastro / line_numbers.vim
Created July 6, 2012 18:55
Conmutar número de lineas en Vim
" Conmutar numeros de linea {{{ ----------------------------------------------
nnoremap <Leader>l :call ToggleRelativeAbsoluteNumber()<CR>
function! ToggleRelativeAbsoluteNumber()
if &number
set relativenumber
elseif &relativenumber
set nonumber & norelativenumber
else
set number
URxvt.font: xft:Dejavu Sans Mono for Powerline:size=11
URxvt.iconFile: /usr/share/icons/Humanity/apps/24/terminal.svg
URxvt.letterSpace: -1
URxvt.background: #242424
URxvt.foreground: #FFFFFF
! black
URxvt.color0 : #2E3436
URxvt.color8 : #555753
! red