Skip to content

Instantly share code, notes, and snippets.


Derek Gaffney gaffneyd4

View GitHub Profile
slikts / Linuxifying
Last active Jan 16, 2021
Linuxifying Windows
View Linuxifying

Linuxifying Windows for development

This guide is for 'linuxing-up' Windows as a development environment; it focuses on setting up [WSL], an Ubuntu Hyper-V virtual machine, [wsltty] (a nice terminal emulator) and various tweaks.


View Tcpdump Cheat


Tcpdump is a commandline tool that is used to dump traffic on a network. This tool comes in hand when you want to analyse network captures within the command line. Basically it can do most of the wireshark job.

NOTE This guide might not be complete it just serve as a reference to me.

Additional Note & Reference

mkdir -p /home/pi/pi-hole/pihole &&
mkdir -p /home/pi/pi-hole/dnsmasq.d &&
cd /home/pi/pi-hole &&
docker run -d \
--name pihole \
--restart=always \
--dns= \
--dns= \
-p 53:53/tcp -p 53:53/udp -p 80:80 -p 443:443 \
bobrik /
Last active Jul 28, 2021
CFS hiccups
vratiu / .bash_aliases
Last active Oct 23, 2021
Git shell coloring
View .bash_aliases
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart -
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
afabbro /
Created Sep 21, 2012
Webkit Pseudo-Element Selectors (Shadow DOM Elements)

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:


View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:


start new with session name: