Skip to content

Instantly share code, notes, and snippets.

@nemunaire
nemunaire / dmarc-report-display.pl
Last active April 23, 2021 17:23
Parse and display DMARC reports for human review.
#!/usr/bin/env perl
#=============================================================================
#
# FILE: dmarc-report-display.pl
#
# USAGE: ./dmarc-report-display.pl REPORT
#
# DESCRIPTION: Parse and display a DMARC report
#
# REQUIREMENTS: Perl 5.10; File::LibMagic, Term::ANSIColor; XML::LibXML
@debloper
debloper / userChrome.css
Last active December 28, 2015 22:39
Sexy Tabs. Take that, Curvy Tabs! #firefoxAustralis :P
/* set default namespace to XUL */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
.tabbrowser-tab[selected] { margin-top: -1px !important; }
.tab-background-middle {
border-left: none !important;
border-right: none !important;
margin: 0 -0.5px !important;
}
@Starefossen
Starefossen / vim-cheats.md
Last active May 22, 2024 13:14
My vim cheat sheet for working with tabs and window splits.

Tabs

New Tab

  • :tabnew - new blank tab
  • :tabedit [file] - open file in tab

Cursor Movement

  • gt (:tabn) - next tab
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 23, 2024 18:01
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@saghul
saghul / gist:1124655
Created August 4, 2011 07:30
Check Python architecture reliably
# http://mail.python.org/pipermail/pythonmac-sig/2009-September/021649.html
# On Mac OSX Python may run in 32 or 64 bit mode so platform.architecture() is not reliable.
# Example: use 32bit Python: export VERSIONER_PYTHON_PREFER_32_BIT=yes
def arch():
import ctypes
return {4: "i386", 8: "x86_64"}[ctypes.sizeof(ctypes.c_size_t)]