Skip to content

Instantly share code, notes, and snippets.

View vinch's full-sized avatar

Vincent Battaglia vinch

View GitHub Profile
@roycewilliams
roycewilliams / pwnedpasswords-v2-top20k.txt
Last active May 29, 2024 07:42
pwnedpasswords-v2-top20k.txt
#------------------------------------------------------------------------------
# Top 20K hashes from the Troy Hunt / haveibeenpwned Pwned Passwords list v2 (2018-02-21)
# with frequency count and cracked plaintext passwords
#
# The latest version of this file can be found here:
# https://gist.github.com/roycewilliams/281ce539915a947a23db17137d91aeb7
#
# NOTE: THIS FILE IS DEPRECATED.
# The equivalent of this file, but based on v6 of the Pwned Passwords, is here:
# https://gist.github.com/roycewilliams/226886fd01572964e1431ac8afc999ce
@ammarshah
ammarshah / all_email_provider_domains.txt
Last active July 15, 2024 20:13
A list of all email provider domains (free, paid, blacklist etc). Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
0-mail.com
007addict.com
020.co.uk
027168.com
0815.ru
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org
@maximilian-lindsey
maximilian-lindsey / express_in_electron.md
Last active March 29, 2024 22:46
How to run Express inside an Electron app

How to run Express inside an Electron app

You can run your Express app very easily inside your Electron app.

All you need to do is to:

  • place all the files of your Express app inside a new app folder in your_electron_app\resources\app
  • reconfigure the app.js file
  • refactor some relative pathes in your Express app
@mariozig
mariozig / migrate_repo.sh
Last active May 26, 2024 20:57
Migrate repo from GitLab to GitHub Full blog post @ http://ruby.zigzo.com/2015/03/23/moving-from-gitlab-to-github/
# Assume we are in your home directory
cd ~/
# Clone the repo from GitLab using the `--mirror` option
$ git clone --mirror git@your-gitlab-site.com:mario/my-repo.git
# Change into newly created repo directory
$ cd ~/my-repo.git
# Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks.
@holman
holman / example.png
Created November 5, 2014 05:35
A quick Hubot script to display Uber surge pricing from a particular point (LIKE AN OFFICE).
example.png
@jacquerie
jacquerie / evolution.py
Last active August 29, 2015 14:03
What would past presidential elections look like if electoral votes were multiplied by percentage of people believing in evolution? Usage: python evolution.py votes-20**.tsv
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import sys
EVOLUTION_DATA = {
"Alabama": 0.51, "Alaska": 0.66, "Arizona": 0.65, "Arkansas": 0.53,
"California": 0.73, "Colorado": 0.69, "Connecticut": 0.77, "Delaware": 0.70,
"Florida": 0.64, "Georgia": 0.60, "Hawaii": 0.71, "Idaho": 0.59, "Illinois": 0.68,
"Indiana": 0.60, "Iowa": 0.62, "Kansas": 0.61, "Kentucky": 0.57, "Louisiana": 0.62,
@sergejmueller
sergejmueller / ttf2woff2.md
Last active March 9, 2024 13:37
WOFF 2.0 – Learn more about the next generation Web Font Format and convert TTF to WOFF2
@Gubolin
Gubolin / extract.js
Last active May 30, 2023 01:52
PDF.js text extraction
// adapted from https://stackoverflow.com/questions/1554280/extract-text-from-pdf-in-javascript/9213180#9213180
page.render(renderContext).promise.then(function(pdf){
page.getTextContent().then(function(textContent){
var page_text = "";
var last_block = null;
for(j = 0; j < textContent.length; j++){
var block = textContent[j];
if(last_block != null && last_block.str[last_block.str.length - 1] != ' '){
@robhurring
robhurring / README.md
Last active March 3, 2016 11:58
Angular geolocation wrapper service
@jakemmarsh
jakemmarsh / filters.js
Created July 16, 2013 14:03
AngularJS filter to create links out of URLs
app.filter('parseUrl', function() {
var //URLs starting with http://, https://, or ftp://
replacePattern1 = /(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim,
//URLs starting with "www." (without // before it, or it'd re-link the ones done above).
replacePattern2 = /(^|[^\/])(www\.[\S]+(\b|$))/gim,
//Change email addresses to mailto:: links.
replacePattern3 = /(\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6})/gim;
return function(text, target, otherProp) {
angular.forEach(text.match(replacePattern1), function(url) {