Skip to content

Instantly share code, notes, and snippets.

# from https://gist.github.com/rupert/70ccd2081e16a3272d340573bcd9dd39
# https://stopads.io/lists/UKcatchuptvblocklist.txt
tom.itv.com
2a7e9.v.fwmrm.net
p.videologygroup.com
2356e.v.fwmrm.net
# https://www.reddit.com/r/pihole/comments/hnpig6/does_anyone_have_a_custom_list_to_block_uk_tv/fxe4x0l/
cdn.ss.anno.channel4.com
webstats.channel4.com
@simonrw
simonrw / preferences.json
Last active March 1, 2023 09:36
Youtube Enhancer preferences
{"version":"2.0.117.10","settings":{"blur":0,"brightness":100,"contrast":100,"grayscale":0,"huerotate":0,"invert":0,"saturate":100,"sepia":0,"applyvideofilters":false,"backgroundcolor":"#000000","backgroundopacity":85,"blackbars":false,"blockads":true,"blockadsexceptforsubs":false,"blockautoplay":true,"blockhfrformats":false,"blockwebmformats":false,"boostvolume":false,"cinemamode":true,"cinemamodewideplayer":true,"controlbar":{"active":true,"autohide":false,"centered":true,"position":"absolute"},"controls":["cinema-mode","size","speed-minus","speed-plus","keyboard-shortcuts","options"],"controlsvisible":false,"controlspeed":true,"controlspeedmousebutton":false,"controlvolume":false,"controlvolumemousebutton":false,"convertshorts":false,"customcolors":{"--dimmer-text":"#cccccc","--hover-background":"#232323","--main-background":"#111111","--main-color":"#00adee","--main-text":"#eff0f1","--second-background":"#181818","--shadow":"#000000"},"customcssrules":"","customscript":"","customtheme":false,"darktheme":f
@simonrw
simonrw / scrollsave.html
Created December 27, 2017 23:02
Scroll position saver
<!doctype html>
<html>
<head>
<meta charset="utf8">
<style>
div#main {
border: 1px solid black;
display: inline-block;
width: 1024px;
max-width: 1024px;
@simonrw
simonrw / python_pymysql_notes.md
Created September 18, 2015 19:01
Notes about pymysql connections

Database transactions

pymysql

  • Defaults to autocommit=False
connection = pymysql.connect(user='user', db='test')
cursor = connection.cursor()
cursor.execute('insert into test (value) values (10)')
@simonrw
simonrw / networkbench.py
Created March 25, 2020 14:11
Script to run benchmark using iperf3
#!/usr/bin/env python3
import argparse
import subprocess as sp
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument(
@simonrw
simonrw / cmakebuild.sh
Created January 6, 2019 22:52
Shell command used to run cmake to build FreeOpcUa on macos
#!/bin/bash
# `brew install boost@1.55`
set -e
(
mkdir -p build
cd build
cmake .. \
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am mindriot101 on github.
  • I am srwalker101 (https://keybase.io/srwalker101) on keybase.
  • I have a public key ASAS5wq9O2nHTLIFKrJiRhkOXxkMHjzj-Z8lU6k1OPBSZwo

To claim this, I am signing this object:

@simonrw
simonrw / sysrem_comparison.ipynb
Created January 25, 2016 10:59
Analysis of sysrem output, excluding known atypical stars
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simonrw
simonrw / vim bundles file
Created September 16, 2013 21:06
vim-polyglot errors
" Global setup
" -------------
" Set no vi compatible
set nocompatible
" Nice vundle stuff
filetype off
let g:vundle_default_git_proto = 'git'