Skip to content

Instantly share code, notes, and snippets.

@ravinggenius
ravinggenius / sample.haml
Created November 11, 2012 01:49
Export XML passwords from Revelation password manager and convert to a CSV format that 1Password can import
-# this is an (incomplete) structure of the file that the script converts
%entry{:type => :folder}
%name Folder Name
-# forgot what type these entries are...
%entry{:type => :<not-folder>}
%name Name
%description Notes
%field{:id => 'generic-username'} Username
%field{:id => 'generic-password'} Password
@sillypog
sillypog / major_us_city_dma_codes.py
Created November 15, 2012 17:59 — forked from ecarter/major_us_city_dma_codes.py
Major US Cities with Latitude/Longitude and DMA Codes
# Major US Cities with DMA Codes
major_cities = [
{'city': 'Ada', 'dma_code': 657, 'latitude': 34.774531000000003, 'longitude': -96.678344899999999, 'region': 'OK', 'slug': 'ada-ok'},
{'city': 'Akron', 'dma_code': 510, 'latitude': 41.081444699999999, 'longitude': -81.519005300000003, 'region': 'OH', 'slug': 'akron-oh'},
{'city': 'Albany', 'dma_code': 525, 'latitude': 31.578507399999999, 'longitude': -84.155741000000006, 'region': 'GA', 'slug': 'albany-ga'},
{'city': 'Alexandria', 'dma_code': 644, 'latitude': 31.311293599999999, 'longitude': -92.445137099999997, 'region': 'LA', 'slug': 'alexandria-la'},
{'city': 'Alpena', 'dma_code': 583, 'latitude': 45.061679400000003, 'longitude': -83.432752800000003, 'region': 'MI', 'slug': 'alpena-mi'},
{'city': 'Altoona', 'dma_code': 574, 'latitude': 40.5186809, 'longitude': -78.394735900000001, 'region': 'PA', 'slug': 'altoona-pa'},
{'city': 'Amarillo', 'dma_code': 634, 'latitude': 35.221997100000003, 'longitude': -101.8312969, 'region': 'TX', 'slug': 'amarillo-tx'},
@dbknickerbocker
dbknickerbocker / southwest.user.js
Last active October 13, 2016 19:09
Southwest Auto Check-In
// ==UserScript==
// @name Southwest Auto Check-In
// @namespace http://dbknickerbocker.blogspot.com
// @description Automatically check-in for Southwest flights
// @include http://southwest.com/flight/retrieveCheckinDoc*
// @include http://www.southwest.com/flight/retrieveCheckinDoc*
// @include http://southwest.com/flight/selectPrintDocument*
// @include http://www.southwest.com/flight/selectPrintDocument*
// @updateURL https://gist.github.com/dbknickerbocker/5730976/raw/southwest.user.js
// @author David B. Knickerbocker
@XayOn
XayOn / Stealth_ scrapper.py
Last active December 19, 2015 16:18
Better scrappery script
import sys
import mechanize
from random import choice
class Scrapper(object):
"""
Main scrapper object.
Use self.do_anonymous_scrapping after setting self.url
(or use scrap() function)
@bf4
bf4 / southwest.user.js
Created January 14, 2016 15:11 — forked from dbknickerbocker/southwest.user.js
Southwest Auto Check-In
// ==UserScript==
// @name Southwest Auto Check-In
// @namespace http://dbknickerbocker.blogspot.com
// @description Automatically check-in for Southwest flights
// @include https://southwest.com/flight/retrieveCheckinDoc*
// @include https://www.southwest.com/flight/retrieveCheckinDoc*
// @include https://southwest.com/flight/selectPrintDocument*
// @include https://www.southwest.com/flight/selectPrintDocument*
// @updateURL https://gist.github.com/dbknickerbocker/5730976/raw/southwest.user.js
// @author David B. Knickerbocker
@jduck
jduck / nexus-ota-updates-2016-02-01.md
Last active September 28, 2023 12:26
February 2016 Nexus OTA Updates - Security Level 2016-02-01

LICENSE/DISCLAIMER - This information is provided as is and without warranty. Permission to repost this information is granted so long as it is properly attributed to "droidsec.org" and/or "jduck". Thank you for your consideration.

Pixel C MXB48T from MXB48J
Pixel C MXB48T from MXB48K
Nexus 6P MMB29Q from MMB29P
Nexus 5X MMB29Q from MMB29P
Nexus 6 MMB29Q from MMB29S
Nexus

@MarMed
MarMed / README.md
Last active May 1, 2024 12:18
Routing plex traffic through an SSH tunnel

Routing plex traffic through an SSH tunnel

This guide creates a reverse SSH tunnel to route all Plex server traffic through it.

Step 2 is done on the tunnel, all other steps are done on the plex server.

1. Setup SSH keys (if you already have key based authenthication setup skip to step 2)

On plex server:

import requests
import re
import sys
from multiprocessing.dummy import Pool
def robots(host):
r = requests.get(
'https://web.archive.org/cdx/search/cdx\
?url=%s/robots.txt&output=json&fl=timestamp,original&filter=statuscode:200&collapse=digest' % host)
@ThatGuySam
ThatGuySam / vlc-elgato-catpure.md
Last active June 1, 2024 13:34
Windows Shortcut Target for VLC to show Elgato HD60S Video Stream of PS4 Pro

How to Capture an Elgato Device(or any capture device) in VLC


Make a copy of your normal VLC Shortcut and paste this into it's Target under Properties and customize according to you're system and setup.

"C:\Program Files\VideoLAN\VLC\vlc.exe" dshow:// :dshow-vdev="Game Capture HD60 S (Video) (#01)" :dshow-adev="Game Capture HD60 S (Audio) (#01)" :dshow-aspect-ratio="16:9" :dshow-audio-samplerate=48000 :dshow-audio-channels=2 :live-caching=0 :dshow-fps=60

@beporter
beporter / add_to_cart.user.js
Last active August 18, 2023 21:43
Greasemonkey script to repeatedly refresh a given page, look for specific "Add to Cart" buttons, click them if present, and make a lot of noise on success.
// ==UserScript==
// @name Add Saved Items to Cart
// @namespace https://gist.github.com/beporter/ce76204bcba35d9edb66b395bb5e9305
// @version 0.5
// @description Repeatedly refresh a given "saved items" page (Amazon, Walmart, BestBuy), look for specific "Add to Cart" buttons, click them if present, and make a lot of noise on success.
// @author https://github.com/beporter
// @match https://www.amazon.com/gp/registry/wishlist/*
// @match https://www.amazon.com/hz/wishlist/ls/*
// @match https://www.bestbuy.com/cart
// @match https://www.bestbuy.com/site/customer/lists/manage/saveditems