Skip to content

Instantly share code, notes, and snippets.

View wjdp's full-sized avatar
:shipit:
Shipping things

Will Pimblett wjdp

:shipit:
Shipping things
View GitHub Profile
@wjdp
wjdp / pictureinpicture.sh
Created February 1, 2023 12:40
Show webcam in a floating window (a la Loom)
# Replace /dev/video4 with your webcam
mplayer -noborder \
-geometry 320x240+1600+840 \
-tv driver=v4l2:width=320:height=240:device=/dev/video4 tv://
@wjdp
wjdp / gitmirror.py
Created January 31, 2023 21:51
Simple script to maintain a local copy of your GitHub repos
#!/usr/bin/env python3
import requests
from requests.auth import HTTPBasicAuth
import click
from tqdm import tqdm
from pathlib import Path
import os.path
import subprocess
from glob import glob
xsacdb-next:
image: wjdp/xsacdb:next
container_name: xsacdb-next
restart: "no"
command: /bin/bash -c "/app/bin/predeploy.sh; /usr/bin/supervisord -c /app/supervisord.conf"
volumes:
- /storage/xsacdb/next/conf:/app/conf
- /storage/xsacdb/next/media:/app/media
depends_on:
- postgres
############## Subsurface CRASH LOG ###############
################ SYSTEM INFO ################
Date: Tue Jul 3 21:16:35 BST 2018
Subsurface Options:
Subsurface version:
Arch: x86_64
Kernel: Linux 4.15.0-24-generic #26~16.04.1-Ubuntu SMP Fri Jun 15 14:35:08 UTC 2018
Release: Ubuntu 16.04.4 LTS (Xenial Xerus)
############## END SYSTEM INFO ##############
@wjdp
wjdp / README.md
Last active January 23, 2017 21:22
USG LAN2 / EXT network

Setting up VOIP / eth2 port as a second, separated LAN

Used for giving wired devices (such as femtocells) access to the internet without access to local devices.

Following is rules required assuming subnet desired is 192.168.71.1/24.

@wjdp
wjdp / keybase.md
Last active November 7, 2019 21:28
keybase.md

Keybase proof

I hereby claim:

  • I am wjdp on github.
  • I am wjdp (https://keybase.io/wjdp) on keybase.
  • I have a public key ASBbewxfFNqeLeXBSJOgdefH_Zl2U29hx6Xf0d7R62L7xAo

To claim this, I am signing this object:

@wjdp
wjdp / image_tag.rb
Created November 1, 2016 23:26
NTHP Image Tag plugin before deletion
# Title: Jekyll Image Tag
# Modified by: Will Pimblett: @wjdp
# Changes made to speed up (15 seconds -> 0.01 seconds) mean that images that
# change DO NOT get updated if the filenames still match
# Original Authors: Rob Wierzbowski : @robwierzbowski
#
# Description: Better images for Jekyll.
#
# Download: https://github.com/robwierzbowski/jekyll-image-tag
@wjdp
wjdp / AnimatedScroll.coffee
Created July 15, 2016 16:32
CoffeeScript cosine animated scroll class
class AnimatedScroll
constructor: (scrollEnd, scrollDuration) ->
@scrollStart = window.scrollY
@scrollStep = Math.PI / scrollDuration
@cosParameter = (@scrollStart - scrollEnd) / 2
@scrollEnd = scrollEnd
@scrollDuration = scrollDuration
@scrollCount = 0
@wjdp
wjdp / stderr
Created December 15, 2015 02:24
newtheatre/history-project #395
Running ["HtmlCheck", "ImageCheck", "FaviconCheck", "LinkCheck", "ScriptCheck"] on ./_site on *.html...
Found 16679 links in the cache...
Adding 0 links to the cache...
Removing 0 links from the cache...
Checking 0 external links...
Ran on 2308 files!
@wjdp
wjdp / include_root.rb
Last active February 28, 2016 22:12
[Jekyll3] Adds an include_root tag, works like include_relative but starts from the root of the project
module Jekyll
module Tags
class IncludeRootTag < IncludeTag
def resolved_includes_dir(context)
'.'.freeze
end
end
end
end