Skip to content

Instantly share code, notes, and snippets.

Reverse video:
ffmpeg -i pose.mp4 -vf reverse reversed.mp4
ffmpeg -i fom_result-18-11-00.mp4 -vf reverse reversed.mp4
Concat N videos into one:
Create file with names of videos to concatenate
file input_vid.mp4
file reversed.mp4
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
"DisableAntiSpyware"=dword:00000001
"DisableRealtimeMonitoring"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection]
"DisableBehaviorMonitoring"=dword:00000001
"DisableOnAccessProtection"=dword:00000001
"DisableScanOnRealtimeEnable"=dword:00000001
main_list.csv:
name,email
Allie,[email protected]
Bob,[email protected]
Chaz,[email protected]
David,[email protected]
good.csv:
def line_prepender(filename, line):
with open(filename, 'r+') as f:
content = f.read()
f.seek(0, 0)
f.write(line.rstrip('\r\n') + '\n' + content)
prepend_txt = 'text to prepend'
@ill13
ill13 / GoogleDorking.md
Created October 28, 2021 16:54 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@ill13
ill13 / download_file_to_client_computer.php
Created October 28, 2021 02:49 — forked from tbrianjones/download_file_to_client_computer.php
Simple way to write data to a file and save it to a Client's computer when they click a link, using only PHP and HTML.
<?php
// this is a single page that can access and write any data to a file
// on a clients computer when they click a link using only HTML and PHP
//
// this will keep the data between page loads
session_start();
// download file if $_GET['download_file'] is set to true
@ill13
ill13 / Inflect.php
Created October 28, 2021 02:48 — forked from tbrianjones/Inflect.php
A PHP Class for converting English words between Singular and Plural.
<?php
// original source: http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/
/*
The MIT License (MIT)
Copyright (c) 2015
Permission is hereby granted, free of charge, to any person obtaining a copy
@ill13
ill13 / pluralexcep.php
Created October 28, 2021 02:48 — forked from effone/pluralexcep.php
Plural Literature Suffix
<?php
// To extend $key => $value pairs further as exception gets identified
return array(
'addendum'=>'addenda',
'analysis'=>'analyses',
'child'=>'children',
'goose'=>'geese',
'locus'=>'loci',
'louse'=>'lice',
'oasis'=>'oases',
@ill13
ill13 / gist:b1e5985bc3bf615c08ef58a707da2248
Created October 28, 2021 02:45 — forked from tbrianjones/gist:6531036
A pretty good regular expression to extract US addresses from free text.
<?php
$regex = "/\b(p\.?\s?o\.?\b|post office|\d{2,5})\s*(?:\S\s*){8,50}(AK|Alaska|AL|Alabama|AR|Arkansas|AZ|Arizona|CA|California|CO|Colorado|CT|Connecticut|DC|Washington\sDC|Washington\D\.C\.|DE|Delaware|FL|Florida|GA|Georgia|GU|Guam|HI|Hawaii|IA|Iowa|ID|Idaho|IL|Illinois|IN|Indiana|KS|Kansas|KY|Kentucky|LA|Louisiana|MA|Massachusetts|MD|Maryland|ME|Maine|MI|Michigan|MN|Minnesota|MO|Missouri|MS|Mississippi|MT|Montana|NC|North\sCarolina|ND|North\sDakota|NE|New\sEngland|NH|New\sHampshire|NJ|New\sJersey|NM|New\sMexico|NV|Nevada|NY|New\sYork|OH|Ohio|OK|Oklahoma|OR|Oregon|PA|Pennsylvania|RI|Rhode\sIsland|SC|South\sCarolina|SD|South\sDakota|TN|Tennessee|TX|Texas|UT|Utah|VA|Virginia|VI|Virgin\sIslands|VT|Vermont|WA|Washington|WI|Wisconsin|WV|West\sVirginia|WY|Wyoming)(\s+|\&nbsp\;|\<(\S|\s){1,10}\>){1,5}\d{5}/i";
?>