Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / products.csv
Created February 9, 2016 19:41
We can't make this file beautiful and searchable because it's too large.
ID,URL,Title,Used price (USD),New price (USD),Rank
B012W7BC5K,http://www.amazon.com/Ghost-Gifts-Laura-Spinella-ebook/dp/B012W7BC5K,Ghost Gifts,5.99,5.99,1
1607747308,http://www.amazon.com/The-Life-Changing-Magic-Tidying-Decluttering/dp/1607747308,The Life-Changing Magic of Tidying Up: The Japanese Art of Decluttering and Organizing,6.29,6.99,1
B011UNEZN8,http://www.amazon.com/Last-Girl-Dominion-Trilogy-Book-ebook/dp/B011UNEZN8,The Last Girl (The Dominion Trilogy Book 1),5.99,5.99,2
081298840X,http://www.amazon.com/When-Breath-Becomes-Paul-Kalanithi/dp/081298840X,When Breath Becomes Air,11.05,11.38,2
0143124544,http://www.amazon.com/Me-Before-You-Jojo-Moyes/dp/0143124544,Me Before You,9.0,9.6,3
B00T8RIK44,http://www.amazon.com/Montana-Cherries-Kim-Law-ebook/dp/B00T8RIK44,Montana Cherries,4.99,4.99,3
0061804320,http://www.amazon.com/Happy-Valentines-Day-Mouse-Give/dp/0061804320,"Happy Valentine's Day, Mouse! (If You Give...)",4.22,3.01,4
B011URV0VY,http://www.amazon.com/All-Lasting-Things-David-Hopson-ebook/dp/
@hlian
hlian / philosophy.py
Created May 26, 2011 16:00
EVERY WIKIPEDIA ARTICLE CONVERGES TO PHILOSOPHY
#!/usr/bin/env python
import gzip
import urllib2
from cStringIO import StringIO
from lxml import etree, html
from lxml.cssselect import CSSSelector
opener = urllib2.build_opener()
opener.addheaders = [('User-agent', 'Mozilla/5.0')]
@aeris
aeris / death_letter.tex
Created August 9, 2018 10:00
Lettre de la mort GDPR
\documentclass[10pt]{lettre}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{eurosym}
\usepackage{enumitem}
\usepackage[frenchb]{babel}
\begin{document}
\begin{letter}{

Experimental Generation of Interpersonal Closeness

Instructions to Subjects Included With Task Slips Packet

This is a study of interpersonal closeness, and your task, which we think will be quite enjoyable, is simply to get close to your partner. We believe that the best way for you to get close to your partner is for you to share with them and for them to share with you. Of course, when we advise you about getting close to your partner, we are giving advice regarding your behavior in this demonstration only, we are not advising you about your behavior outside of this demonstration.

In order to help you get close we've arranged for the two of you to engage in a kind of sharing game. You're sharing time will be for about one hour, after which time we ask you to fill out a questionnaire concerning your experience of getting close to your partner.

You have been given three sets of slips. Each slip has a question or a task written on it. As soon as you both finish reading these instructions, you should

@gak
gak / fish-prompt.sh
Last active February 4, 2022 18:34
My custom fish prompt code explained at http://geraldkaszuba.com/tweaking-fish-shell/
function _common_section
printf $c1
printf $argv[1]
printf $c0
printf ":"
printf $c2
printf $argv[2]
printf $argv[3]
printf $c0
printf ", "
@mtigas
mtigas / 0-hidden-service-subdomains.md
Last active April 14, 2023 02:06
Example code for running a (HTTP/HTTPS) Tor hidden service supporting subdomains.

The following files show an example of how to create subdomains for onion site hidden services. (This hasn't been tested for hidden services for anything other than HTTP/HTTPS.)

(You might also want to read our blog post about ProPublica’s Tor hidden service, including a tutorial and notes on running a hidden service: https://www.propublica.org/nerds/item/a-more-secure-and-anonymous-propublica-using-tor-hidden-services )

In general, this works (maybe just in recent Tor clients) because Tor will handle the connection to www.xxxxxxxxxxxxxxxx.onion as a connection to xxxxxxxxxxxxxxxx.onion. The encapsulated HTTP/HTTPS connection contains the subdomain in the Host: header (and in the case of HTTPS, the SNI

@joeytwiddle
joeytwiddle / github_get_all_forks.sh
Last active October 13, 2023 20:50
Add all forks of the current repo as remotes
#!/usr/bin/env bash
set -e
# See also: https://github.com/frost-nzcr4/find_forks (same thing but in python)
origin_url="$(git remote show origin | grep 'Fetch URL:' | sed 's+.*: ++')"
full_repo_name="$(echo "$origin_url" | sed 's+.*github.com/++ ; s+\.git$++')"
forks_url="https://api.github.com/repos/${full_repo_name}/forks"
@akumria
akumria / find-forks.py
Last active March 9, 2024 01:39
A quick way to find all the forks of a particular github project. see: https://github.com/akumria/findforks for a version which works now
#!/usr/bin/env python
import os
import urllib2
import json
import subprocess
user=None
repo=None
Don't worry about what anybody else is going to do. The best way to
predict the future is to invent it.
-- Alan Kay
Premature optimization is the root of all evil (or at least most of it)
in programming.
-- Donald Knuth
Lisp has jokingly been called "the most intelligent way to misuse a
computer". I think that description is a great compliment because it
@jbonney
jbonney / spotify_keybindings
Created June 9, 2013 13:22
Spotify - Linux key bindings. From XFCE / Ubuntu keyboard shortcuts configuration, assign the control command to their key. http://shkspr.mobi/blog/2011/12/linux-spotify-keybindings/
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" XF86AudioPlay
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" XF86AudioStop
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" XF86AudioNext
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" XF86AudioPrevious