Skip to content

Instantly share code, notes, and snippets.

@brozkeff
brozkeff / recordmydesktop-lq.sh
Created May 4, 2016 18:25
recordmydesktop tweaked
#!/bin/bash
today=`date '+%Y%m%d-%H%M%S'`;
foldername="${HOME}/Videos/recordmydesktop"
filename="$foldername/$today.ogv"
echo 'RecordMyDesktop - screen capture ogv to folder'
echo $filename
echo 'Recording starts in 5 sec, terminate with Ctrl-C.'
sleep 5
echo Creating folder $foldername if not exists yet
@brozkeff
brozkeff / slack2html.php
Last active May 16, 2017 14:40 — forked from targi/slack2html.php
slack2html
#!/usr/bin/php
<?php
/////////////////////
// slack2html
// by @levelsio
// fixed international chars + first row to be run from bash directly
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
@brozkeff
brozkeff / imposepdf-repeat.sh
Created May 17, 2017 12:50
Impose PDF - repeat the same page multiple times
#!/bin/bash
#
# imposepdf-repeat.sh
#
# Author: Martin Malec <[email protected]>
# Date : May 17, 2017
#
# Description: imposepdf-repeat.sh repeats one-page PDF multiple times
# on a single page. Requires bookletimposer installed.
#
@brozkeff
brozkeff / dokuwiki2html.sh
Last active October 22, 2018 20:19 — forked from hugorodgerbrown/md_to_rst.sh
Shell script for converting a batch of *.txt dokuwiki-syntax files into *.html using dokuwiki2mediawiki and then pandoc.
# This script was created to convert a directory full
# of dokuwiki files into html. It uses dokuwiki2mediawiki.php for intermediate step converting to mediawiki, and
# pandoc to do the conversion from mediawiki to html.
#
# 1. Install pandoc from http://johnmacfarlane.net/pandoc/
# 2. Copy this script into the directory containing the .txt files
# 3. Copy script (https://github.com/tstaerk/mediasyntax/blob/master/tools/dokuwiki2mediawiki.php) to the same directory, make sure you have PHP installed and capable running scripts
# 3. Ensure that the script has execute permissions
# 4. Run the script
#
@brozkeff
brozkeff / Workarounds for Netflix and the blocking of IPv6 tunnels.md
Last active April 24, 2021 20:18 — forked from jamesmacwhite/Workarounds for Netflix and the blocking of IPv6 tunnels.md
Prevent proxy/VPN streaming error messages from Netflix when using an IPv6 tunnel.

Workarounds for Netflix and the blocking of IPv6 tunnels

The dreaded "You seem to be using an unblocker or proxy." error message. Cool story bro.

EDIT Brozkeff 2021-04-24: add Amazon AWS domain for Method 1 since Netflix started using it as well

Original gist before forking: https://gist.github.com/jamesmacwhite/6a642cb6bad00c5cefa91ec3d742e2a6

This gist was essentially created out of my own rant about Netflix being hostile to IPv6 tunnel services since June 2016. You are welcome to read my opinion on the matter, this is the more technical side to the issue and how to combat it within your own network.

Since I wrote this, various GitHub users have contributed their thoughts and ideas which has been incorporated into this gist. Thank you to everyone who have contributed their own methods and implementations.

@brozkeff
brozkeff / do_cryptsetup_luksDump_luksHeaderBackup.sh
Created April 26, 2022 19:09
bash script to backup LUKS headers and dumpfiles of selected volumes (cryptsetup luksDump and luksHeaderBackup)
#!/bin/bash
declare -A arrayVolumes
# HOWTO: Enter new row with names of the volumes how you want your files to be named and their uuids
# You can find UUIDs via lsblk -o NAME,UUID. Use UUID of the /dev/sdx1 encrypted volume not the already mounted luks-xxx mapper
arrayVolumes[somevolume]="0e7d8c5e-fe46-4c24-bdfe-041e28e2055b"
arrayVolumes[anothervolume]="5e819f85-f283-41af-a774-6debaa4fa740"
listOfVolumes=$( echo "${!arrayVolumes[@]}" )
@brozkeff
brozkeff / glabels3-build-script-ubuntu-barcode-collate.md
Last active November 25, 2022 21:13
gLabels3 build script for Ubuntu including barcode library and with collate patch for glabels-batch
@brozkeff
brozkeff / zint-2-11-patches-from-2-6.7-for-glabels.patch
Created November 25, 2022 20:08
Attempt to re-insert code to Zint 2.11 from Zint 2.6.7 supporting old code needed for gLabels3 compatibility
From da94d696fac2c4e2eedc6c82e71bd867b5bce177 Mon Sep 17 00:00:00 2001
From: brozkeff <[email protected]>
Date: Fri, 25 Nov 2022 21:03:49 +0100
Subject: [PATCH] Squashed history
---
CMakeLists.txt | 75 ++
library.c | 1874 ++++++++++++++++++++++++++++++++++++++++++++++++
render.c | 859 ++++++++++++++++++++++
zint.h | 454 ++++++++++++
@brozkeff
brozkeff / pdf-ocr-compress.sh
Last active February 2, 2024 13:33
OCR PDF document using Tesseract and compress using JBIG2 lossy compression
#!/bin/bash
SCRIPT_NAME="OCR and jbig2 compress document using Tesseract"
VERSION_NUMBER="v2024-02-02"
AUTHOR="Martin Brozkeff Malec - https://brozkeff.net"
LICENSE="MIT (https://opensource.org/license/mit/)"
# Shared on https://gist.github.com/brozkeff/76a8c537b15458a58355949c4c70da08
echo "${SCRIPT_NAME} ${VERSION_NUMBER}"
echo "Author: ${AUTHOR}"
echo "License: ${LICENSE}"
@brozkeff
brozkeff / pdf-split-scanned-document.sh
Last active February 2, 2024 14:09
PDF splitter of scanned documents using mupdf-tools (mutool poster)
#!/bin/bash
SCRIPT_NAME="PDF splitter of scanned documents"
VERSION_NUMBER="v2024-02-02"
AUTHOR="Martin Brozkeff Malec - https://brozkeff.net"
LICENSE="MIT (https://opensource.org/license/mit/)"
# Shared on https://gist.github.com/brozkeff/b061b69800d3a08b088dfb89ca044fb5
echo "${SCRIPT_NAME} ${VERSION_NUMBER}"
echo "Author: ${AUTHOR}"