Skip to content

Instantly share code, notes, and snippets.

View TPS's full-sized avatar
🤓
https://www.rakuten.com/r/TPSAMU?eeid=6991100

TPS

🤓
https://www.rakuten.com/r/TPSAMU?eeid=6991100
View GitHub Profile
@titanous
titanous / ppp-v3.rb
Created March 5, 2009 20:57
Ruby implementation of Steve Gibson's 'Perfect Paper Passwords' v3
# Perfect Paper Passwords v3
# For more info see http://grc.com/ppp
#
# The MIT License
#
# Copyright (c) 2009 Jonathan Rudenberg
# Original version by Gavin Stark (http://is.gd/lYIf)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@endolith
endolith / Has weird right-to-left characters.txt
Last active June 1, 2024 10:58
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@hay
hay / dlcat.py
Created November 6, 2010 21:53
Download all images in a category on Wikimedia Commons. Requires pywikipedia
#!/usr/bin/python
# -*- coding: utf-8 -*-
# -cat:Images_from_Wiki_Loves_Monuments
import sys, os
# Set your path to pywikipedia here
sys.path.append("/Users/hay/htdocs/checkouts/pywikipedia/")
import wikipedia, config, pagegenerators
import urllib2, codecs
@nfreear
nfreear / favicon.css
Last active July 9, 2016 02:51
CSS3 selectors to add icons (favicons) to a user-profile list
/* CSS3 selectors. */
.pr li{ margin:2px 0; }
.pr [href*=":"]{padding-left:28px; /*24px*/ background-repeat:no-repeat; background-position:left; background-size: 16px 16px; }
.pr [href*="open.ac.uk"]{background-image:url(http://www3.open.ac.uk/favicon.ico) /*http://openlearn.open.ac.uk/favicon.ico*/ }
.pr [href*="cloudworks.ac.uk"]{background-image:url(http://cloudworks.ac.uk/themes/cloudworks/favicon.ico)}
.pr [href*="facebook.com"]{background-image:url(http://facebook.com/favicon.ico)}
.pr [href*="linkedin.com"]{background-image:url(http://www.linkedin.com/favicon.ico)}
.pr [href*="google.com"]{background-image:url(http://www.google.com/favicon.ico)}
@aemkei
aemkei / LICENSE.txt
Last active June 4, 2024 07:51 — forked from 140bytes/LICENSE.txt
Binary Tetris - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@gasman
gasman / pnginator.rb
Created April 30, 2012 18:08
pnginator: pack Javascript into a self-extracting PNG
#!/usr/bin/env ruby -w
# pnginator.rb: pack a .js file into a PNG image with an HTML payload;
# when saved with an .html extension and opened in a browser, the HTML extracts and executes
# the javascript.
# Usage: ruby pnginator.rb input.js output.png.html
# By Gasman <http://matt.west.co.tt/>
# from an original idea by Daeken: http://daeken.com/superpacking-js-demos
@nicjansma
nicjansma / PngOutBatch.cmd
Created May 16, 2012 01:47
Runs a PNG through PngOut multiple times at different block sizes. Shows the file-size savings during and at the end. More details @ http://nicj.net/2012/05/15/pngoutbatch
@echo off
setlocal enabledelayedexpansion
REM
REM PngOutBatch
REM
REM Nic Jansma - nic@nicj.net
REM
REM Runs a PNG through PngOut multiple times at different block sizes. Shows the
REM file-size savings during and at the end.
@bharatkrishna
bharatkrishna / fuzzer.py
Created July 22, 2012 00:22
Fuzzer for IrfanView
'''
A fuzzer for IrfanView image viewer.
IrfanView: http://www.irfanview.com/
'''
import math
import random
import string
import subprocess
import time
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@mwunsch
mwunsch / Gemfile
Last active January 13, 2016 05:54
Add the full range of the emoji cheat sheet to your OS X substitution list.
gem 'rumoji', :git => "git://github.com/mwunsch/rumoji.git", :tag => "v0.2.0"
gem 'osxsub', :git => "git://github.com/mwunsch/osxsub.git", :tag => "v0.1.2"