Skip to content

Instantly share code, notes, and snippets.

twitch-videoad.js text/javascript
(function() {
if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; }
//This stops Twitch from pausing the player when in another tab and an ad shows.
try {
Object.defineProperty(document, 'visibilityState', {
get() {
return 'visible';
}
});
@jonocairns
jonocairns / VersionCheck.tsx
Created May 27, 2021 21:29
CRA version checker - uses material-ui and snackbar libraries which can be easily replaced with other frameworks
import {Button} from '@material-ui/core';
import {CloseOutlined} from '@material-ui/icons';
import {addBreadcrumb, BreadcrumbCategory} from 'addBreadcrumb';
import {useSnackbar} from 'notistack';
import React, {useState} from 'react';
const MANIFEST = '/asset-manifest.json';
const POLL_INTERVAL = 60000;
export const VersionCheck: React.FC = ({children}) => {
const fs = require('fs');
const season = 7;
const path = `\\\\192.168.1.75\\plex\\tv\\Star Trek- Deep Space Nine\\Season ${season}`
let count = 1;
fs.readdirSync(path).forEach((file) => {
console.log(`original: ${file}`)
0) Go to https://mullvad.net/en/download/#linux <-- Latest Link when I made this guide or just go to your mullvad account page
1) Download your mullvad VPN files by clicking "GenerateOpenVPN configuration files" . Make sure to keep "Use IP addresses" and "Connect via our bridges" left unchecked
2) Unzip the downloaded file.
3) Move all four files (you should have four) to appdata/deluge/openvpn
3a) change the file extension of mullvad_<whatever region you selected>.conf to mullvad_<whatever region you selected>.ovpn
3b) Open mullvad_<whatever region you selected>.ovpn with a text editor and add the following lines to the bottom:
pull-filter ignore "route-ipv6"
pull-filter ignore "ifconfig-ipv6"
3c) save the file.
4) In your deluge container, edit the following settings:
@import url('https://fonts.googleapis.com/css?family=Roboto');
* {
font-family: 'Roboto', sans-serif;
font-weight:bold;
}
.ng-star-inserted h1, .ng-star-inserted h4 {
display:none;
}
@import url('https://fonts.googleapis.com/css?family=Roboto:700%27);
* {
font-family: 'Roboto', sans-serif;
font-weight:bold;
}
.ng-star-inserted h1, .ng-star-inserted h4 {
display:none;
}
@jonocairns
jonocairns / autoexec.cfg
Last active November 24, 2018 05:25
csgo config - move to C:\Program Files\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg
unbindall
alias +knife slot3
alias -knife lastinv
bind 0 slot10
git config --global alias.clean-branches "!git branch | grep -v master | xargs git branch -D"
-- `git clean-branches`
choco install git -y
choco install poshgit -y
choco install visualstudio2017community -y
choco install googlechrome -y
choco install visualstudiocode -y
choco install slack -y

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets