Skip to content

Instantly share code, notes, and snippets.

View Jan02's full-sized avatar

Jan Jan02

  • UTC -5
View GitHub Profile
@paulirish
paulirish / gist:373253
Created April 21, 2010 00:08
jquery invert
// jquery invert plugin
// by paul irish
// some (bad) code from this css color inverter
// http://plugins.jquery.com/project/invert-color
// some better code via Opera to inverse images via canvas
// http://dev.opera.com/articles/view/html-5-canvas-the-basics/#insertingimages
// and some imagesLoaded stuff from me
// http://gist.github.com/268257
@cmartinbaughman
cmartinbaughman / GoogleHackMasterList.txt
Last active June 28, 2024 05:28
The definitive super list for "Google Hacking".
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www” domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com
@tbrianjones
tbrianjones / free_email_provider_domains.txt
Last active July 1, 2024 06:46
A list of free email provider domains. 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.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
126.com
150ml.com
15meg4free.com
@akaleeroy
akaleeroy / youtube-thumbnail.js
Last active August 22, 2018 08:54
YouTube Thumbnail Image Search Bookmarklet
javascript: (function() {
// var thumb = document.querySelector("meta[property='og:image']").content;
// var t = document.querySelector("link[itemprop='thumbnailUrl']").href;
const thumbnailUrl = `https://i.ytimg.com/vi/${ytplayer.config.args.video_id}/hqdefault.jpg`;
const imageSearchUrl = 'https://images.google.com/searchbyimage?site=search&image_url=' + thumbnailUrl;
const thumbnailWindow = window.open(thumbnailUrl, 'thumbnailWindow');
const imageSearchWindow = window.open(imageSearchUrl, 'imageSearchWindow');
setTimeout(function() {
newWindow.focus();
}, 250);
@Cheesebaron
Cheesebaron / blocklist.txt
Last active March 12, 2018 05:25
Blocklist for: https://chrome.google.com/webstore/detail/personal-blocklist-by-goo/nolijncfnkgaikbjbdaogikpmpbdcdef I hate stupid aggregators, which uses Stackoverflow QA etc. DIE DIE DIE!
28im.com
4byte.cn
acnenomor.com
adtandroid.blogspot.com
androidstackoverflow.blogspot.com
askmequest.gq
besttopics.net
bloglovin.com
c9q.net
codebaum.wordpress.com
@DuncanWilder
DuncanWilder / List of personal email domains
Created August 12, 2015 11:02
List of personal email domains
aol
arnet
att
bellsouth
blueyonder
bt
btinternet
charter
comcast
cox
@DuncanWilder
DuncanWilder / List of temporary email domains
Last active November 19, 2022 08:24
List of temporary email domains
0-mail
815
845
0clickemail
0sg
0wnd
10mail
10minut
10minutemail
@markhowellsmead
markhowellsmead / email_not_specific_domain.txt
Last active November 9, 2023 04:21
Regex for valid email address excluding specific free domains, like Gmail, GMX and Yahoo. Extend the list of domains according to your own requirements.
^([\w.-]+)@(\[(\d{1,3}\.){3}|(?!hotmail|gmail|googlemail|yahoo|gmx|ymail|outlook|bluewin|protonmail|t\-online|web\.|online\.|aol\.|live\.)(([a-zA-Z\d-]+\.)+))([a-zA-Z]{2,4}|\d{1,3})(\]?)$
@jamesmacwhite
jamesmacwhite / ffmpeg_mkv_mp4_conversion.md
Last active June 29, 2024 01:09
Easy way to convert MKV to MP4 with ffmpeg

Converting mkv to mp4 with ffmpeg

Essentially just copy the existing video and audio stream as is into a new container, no funny business!

The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.

With ffmpeg this can be achieved with -c copy. Older examples may use -vcodec copy -acodec copy which does the same thing.

These examples assume ffmpeg is in your PATH. If not just substitute with the full path to your ffmpeg binary.

Single file conversion example

<?php
# Read an RSS feed and generate an ical calendar with the feed items as events.
#
# Written by Tom Henderson, 31 May 2007
#
# Use however you like, but please attribute my code to me.
# If you come up with anything cool I'd love to hear about it.
#
# Usage:
# http://path/to/rss-ics.php?url=http://path/to/feed/