Skip to content

Instantly share code, notes, and snippets.

@sipdbg2
sipdbg2 / find-https-debian-archives.py
Last active February 9, 2018 10:57 — forked from eighthave/find-https-debian-archives.py
Script to find official Debian mirrors that support HTTPS
#
# Debian repository HTTPS-enabled mirrors scanner
# The package "apt-transport-https" does not ship an easy way to find https
# mirror to use. This script can fix that.
#
# rewrite of eighthave's code from https://gist.github.com/eighthave/7285154
# 09/2016 -- modem <[email protected]>
#
import threading
import sys
@Ircama
Ircama / LgMagicRemoteKeys.md
Last active March 10, 2025 22:06
Replacing Netflix and Amazon keys of the webOS LG TV LG Magic Remote with other apps

Replacing Netflix and Amazon keys of the webOS LG TV LG Magic Remote with other apps

This procedure allows substituting one or both Netflix and Amazon keys of the Magic Remote Control Unit with other apps or TV control menus of the webOS LG TV.

Netflix and Amazon keys can be found just over the Red-Green-Yellow-Blue color buttons of such remote.

Assumption for this procedure is that you accept to uninstall the apps related to the keys to be substituted. Example: if you want to replace the Netflix key, you need to uninstall Netflix (possibly, you are not using Netflix if you do not need such key).

To uninstall Netflix or Amazon Prime, press the Home key of the Magic Remote, select the "LG Content Store" app, press "APP" at the top of the screen, press "My Apps", press the "Rem

@ercas
ercas / listenbrainz.R
Last active July 21, 2021 15:58
create graphs of listenbrainz data
library(dplyr)
library(ggplot2)
library(jsonlite)
library(lubridate)
library(stringr)
# load data ---------------------------------------------------------------
data <- fromJSON("ercas_lb-2021-07-21.json") %>%
flatten() %>%
@bohwaz
bohwaz / pdf2cbz.sh
Created February 3, 2025 19:42
Convert a PDF file to CBZ (Comic Books)
#!/bin/bash
which mutool &> /dev/null || (echo "mutool is not installed" && exit 1)
which convert &> /dev/null || (echo "imagemagick is not installed" && exit 1)
which zip &> /dev/null || (echo "zip is not installed" && exit 1)
if [ "$1" = "" ]
then
echo "Usage: $0 File.pdf"
exit