Skip to content

Instantly share code, notes, and snippets.

@crgr
crgr / CSS: Eric Meyer Reset minified
Created April 17, 2012 19:46
CSS: Eric Meyer Reset minified
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
@crgr
crgr / CSS: 8 font stacks
Created April 17, 2012 20:13
CSS: 8 font stacks
font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif;
font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;
font-family: "Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif;
font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-family: Corbel, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif;
font-family: "Segoe UI", Can
@crgr
crgr / mrxvtrc
Created September 25, 2012 07:40
mrxvtrc
Mrxvt.background: #191919
Mrxvt.foreground: #e0e0a4
Mrxvt.cursorColor: yellow
Mrxvt.pointerColor: yellow
Mrxvt.borderColor: DarkGrey
Mrxvt.fading: 50
Mrxvt.scrollBar: False
Mrxvt.fullscreen: False
Mrxvt.smoothResize: True
Mrxvt.loginShell: True
@crgr
crgr / grub.cfg
Created September 26, 2012 22:15
grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
@crgr
crgr / i3.config
Created October 8, 2012 19:55
i3.config
set $mod Mod4
#font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
font -windows-proggytiny-medium-r-normal--10-80-96-96-*-60-*-*
# font xft:DejaVu Sans Mono 10
new_window none
bindsym $mod+t border normal
bindsym $mod+y border 1pixel
bindsym $mod+u border none
@crgr
crgr / i3status
Created October 8, 2012 20:03
i3status
general {
colors = true
color_good = "#6666FF"
color_degraded = "#660099"
color_bad = "#FF0066"
color_separator = "#333333"
interval = 5
}
order += "ipv6"

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
#!/usr/bin/python
import socket
import struct
import sys
# We want unbuffered stdout so we can provide live feedback for
# each TTL. You could also use the "-u" flag to Python.
class flushfile(file):
def __init__(self, f):
@crgr
crgr / DNS tunneling with iodine.md
Created May 11, 2018 07:10 — forked from nukeador/DNS tunneling with iodine.md
How to install and use iodine for DNS tunneling.

Domain

We need some records on our domain (mydomain.com) DNS for connections. Add these records:

t1              IN      NS      t1ns.mydomain.com. ; note final the dot!
t1ns            IN      A       OUR_SERVER_IP

Server

@crgr
crgr / tmux - prefix
Created October 3, 2018 09:56 — forked from jofi/tmux - prefix
Setup secondary prefix for tmux
# in a shell:
tmux set -g prefix2 C-a
tmux bind-key C-a send-prefix -2
# or in a ~/.tmux.conf
set -g prefix2 C-a
bind-key C-a send-prefix -2