Skip to content

Instantly share code, notes, and snippets.

@qutorial
qutorial / hb_all_books_dl.js
Last active August 6, 2017 13:16 — forked from graymouser/hb_all_books_dl.js
Humble bundle book bundles - download all books at once
/*
After purchasing a humble book bundle, go to your download page for that bundle.
Open a console window for the page and paste in the below javascript
*/
$('a').each(function(i){
link_text = $.trim($(this).text());
if ( link_text == 'MOBI' || link_text == 'EPUB' || link_text == 'PDF' ) {
$('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">');
document.getElementById('dl_iframe_'+i).src = $(this).data('web');
}
@qutorial
qutorial / meetings_samosas.md
Last active October 8, 2021 04:20 — forked from leommoore/meetings_samosa.md
Meetings - SAMOSAS

Meetings - SAMOSAS


  • Start and stop meeting promptly
  • Agenda created in advance; no agenda, no meeting
  • Minutes recorded and sent around after meeting so everyone can recall results
  • One speaker at a time; no interrupting talker
  • Send material in advance, since reading is faster
  • Action items at the end of meeting, so know what each should do as a result of the meeting
  • Schedule the next meeting
@qutorial
qutorial / suid-wrapper.c
Created February 6, 2018 13:13 — forked from jblyberg/suid-wrapper.c
A very small C wrapper for running shell scripts suid. Pretty dangerous, but handy.
#include <unistd.h>
#include <errno.h>
main( int argc, char ** argv, char ** envp )
{
if( setgid(getegid()) ) perror( "setgid" );
if( setuid(geteuid()) ) perror( "setuid" );
envp = 0; /* blocks IFS attack on non-bash shells */
system( "/path/to/bash/script", argv, envp );
perror( argv[0] );
@qutorial
qutorial / wget-snapshotpage.md
Created March 30, 2018 19:32 — forked from dannguyen/wget-snapshotpage.md
Use wget to snapshot a page and its necessary visual dependencies

Use wget to mirror a single page and its visible dependencies (images, styles)

Money graphic via State of Florida CFO Vendor Payment Search

Graphic via State of Florida CFO Vendor Payment Search (flair.myfloridacfo.com)

This is a quick command I use to snapshot webpages that have a fun image I want to keep for my own collection of WTFViz. Why not just right-click and save the image? Oftentimes, the webpage in which the image is embedded contains necessary context, such as captions and links to important documentation just incase you forget what exactly that fun graphic was trying to explain.

@qutorial
qutorial / freeotp_backup.md
Created May 17, 2019 18:18 — forked from kontez/freeotp_backup.md
A guide to back up and recover 2FA tokens from FreeOTP (Android)

Backing up and recovering 2FA tokens from FreeOTP

Backing up FreeOTP

Using adb, create a backup of the app using the following command:

adb backup -f freeotp-backup.ab -apk org.fedorahosted.freeotp