Skip to content

Instantly share code, notes, and snippets.

@juhokuu
juhokuu / discord_msg_delete.js
Last active November 11, 2018 03:31
Delete private Discord msgs you've sent
// vim: set ts=4 sw=4:
var ownid = '';
var atoken = '';
var stopthis = 'no', waitms = 500;
function delay(duration) {
return new Promise((resolve, reject) => {
setTimeout(function() {
return resolve();

Keybase proof

I hereby claim:

  • I am juhokuu on github.
  • I am juhokuu (https://keybase.io/juhokuu) on keybase.
  • I have a public key whose fingerprint is 12C0 3C16 93CB 85EE 8C24 FC09 6349 FF59 7EE9 DCAD

To claim this, I am signing this object:

#!/usr/bin/env bash
# Author: juhokuu
#
# Dumb script to manage port mappings between a LXD
# host and containers.
#
# $PATH has to include jq (a JSON processor https://stedolan.github.io/jq/),
# nc (netcat with support for UNIX-domain sockets), awk, iptables, and sort.
defaults write org.vim.MacVim MMTextInsetTop '10'
defaults write org.vim.MacVim MMTextInsetLeft '10'
defaults write org.vim.MacVim MMTextInsetBottom '10'
defaults write org.vim.MacVim MMTextInsetRight '10'