Skip to content

Instantly share code, notes, and snippets.

@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 / 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 [email protected]`
set -e
(
mkdir -p build
cd build
cmake .. \
@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;
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
from astropy.io import fits
from astropy.stats import sigma_clip
import matplotlib.pyplot as plt
# Nicer plotting if possible, requires matplotlib>=1.5.0
try: