Skip to content

Instantly share code, notes, and snippets.

View vandorjw's full-sized avatar

Joost van Dorp vandorjw

View GitHub Profile
breakpoint at line 614 from client.py
ffmpeg -i recording.mkv -r 15 -vf "scale=1024:-1,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -ss 00:00:00 -to 00:00:20 output.gif
@vandorjw
vandorjw / loopback-latency.sh
Created July 30, 2021 20:25 — forked from keturn/loopback-latency.sh
use netem to add latency to loopback network traffic
#!/bin/bash
#
# https://wiki.linuxfoundation.org/networking/netem#Emulating_wide_area_network_delays
#
# Add latency to all outgoing traffic on $DEV on tcp/udp $PORT,
# in the amount of $DELAY.
#
# This is matching on both source port and destination port, which
# may hit you twice if you're accessing a local resource.
#

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@vandorjw
vandorjw / bitbucket-pipelines.yml
Last active August 15, 2022 21:00 — forked from keepitsimple/bitbucket-pipelines.yml
Bitbucket pipeline to sync / copy code commits to GitHub. How to sync Bitbucket repo to GitHub
image: python:3.8
definitions:
services:
docker:
memory: 1024
steps:
- step: &Push-to-GitHub
name: Push code changes to GitHub
function Formset(element) {
/*
Dynamic Formset handler for Django formsets.
Events:
* init.formset
* add-form.formset
* remove-form.formset
* renumber-form.formset
//ensure we instantiate the listeneres on page-load.
window.addEventListener("DOMContentLoaded", AddFileEventListeners);
// add-form.formset is a custom event that is only 'emitted' by the formset.js file
// When new forms are added to the page, we need those forms to also have an event listener
// not just the ones that were present on page load.
document.querySelector('form').addEventListener("add-form.formset", AddFileEventListeners);