Skip to content

Instantly share code, notes, and snippets.

@int3h
int3h / Time.com-example.json
Created July 28, 2017 09:16
"Websta for Instagram" Chrome extension spyware - example of data collected
[
{
"type": "banner",
"width": 300,
"height": 250,
"actualWidth": 300,
"actualHeight": 254,
"inFrame": true,
"pageUrl": "http://time.com/",
"referrerUrl": "http://time.com/",
@int3h
int3h / easylist-no-globals.txt
Last active July 28, 2016 00:43
Easylist with global element hiding rules disables
This file has been truncated, but you can view the full file.
[Adblock Plus 2.0]
! Version: 201607211743
! Title: EasyList minus Global Cosmetic Rules
! Last modified: 27 Jul 2016 17:43 UTC
! Expires: 9 days (update frequency)
! Homepage: https://gist.github.com/int3h/54da360f4a51badd3fb56a006b1714df
! Licence: https://easylist.github.io/pages/licence.html
!
! Please report any unblocked adverts or problems
! in the forums (https://forums.lanik.us/)
@int3h
int3h / 01.configure
Created October 24, 2013 01:52
homebrew: hang on pipe in ./configure (example: groff)
user (~)$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install groff --with-grohtml 2>&1
==> Downloading http://ftpmirror.gnu.org/groff/groff-1.22.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/groff-1.22.2.tar.gz
tar xf /Library/Caches/Homebrew/groff-1.22.2.tar.gz
==> ./configure --prefix=/usr/local/Cellar/groff/1.22.2 --without-x
./configure --prefix=/usr/local/Cellar/groff/1.22.2 --without-x
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
@int3h
int3h / hman.sh
Created May 2, 2013 12:36
hman: a bash function for Mac OS X which lets you view a man page as a nicely formatted HTML page in your browser. Source this file in your ~/.bash_profile (e.g., add a line like "source ~/hman.sh" to that file) and re-open your Terminal. Use as in "hman bash". Tested on Mac OS X 10.8.3. Requires a newer version of "groff" than comes with the OS…
#!/usr/bin/env bash
hman () {
local TMPHTML=`mktemp /tmp/hman_XXXXXXXX`.html
groff -mandoc -Txhtml -P'-D/tmp' `man -w $@` | \
tidy -ashtml 2>/dev/null | \
sed -e 's/<\/style>/body {font-family: "Helvetica Neue", Helvetica, sans-serif; width: 800px; margin-left: auto; margin-right: auto;}\
.toc {position: fixed; overflow-y: scroll; overflow-x: hidden; top: 10px; height: 90%; width: 200px; text-transform: lowercase; margin-left: -200px; margin-top: 1.5em; font-size: 11pt; border-right: 1px solid black; }\
.toc a { line-height: 2em; }\
@int3h
int3h / README.md
Last active December 10, 2015 20:48 — forked from mbostock/.block

Enclosure diagrams use containment to represent the hierarchy. Although circle packing is not as space-efficient as a treemap, it better reveals the hierarchy. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

@int3h
int3h / index.html
Last active December 10, 2015 20:28
D3.js Bar Chart Demo
<html>
<head>
<title>D3 Bar Chart Demo</title>
<script src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
.chart {margin: 2em auto auto auto;}
div.bar {
display: inline-block;
@int3h
int3h / README.md
Last active December 10, 2015 20:28 — forked from mbostock/.block
@int3h
int3h / gist:822093
Created February 11, 2011 08:57
Working Rails tmbundle form_for
${TM_RAILS_TEMPLATE_START_RUBY_EXPR}form_for @${1:model} do |f|${TM_RAILS_TEMPLATE_END_RUBY_EXPR}
$0
${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}