Skip to content

Instantly share code, notes, and snippets.

🐛

Robin Gustafsson rgson

🐛
  • Sweden
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am rgson on github.
  • I am rgson (https://keybase.io/rgson) on keybase.
  • I have a public key whose fingerprint is B26C 2ED3 7324 6221 9C3D 1DFE 293A 3C91 D188 369C

To claim this, I am signing this object:

@rgson
rgson / picsum-wallpapers.sh
Last active Mar 10, 2019
Lorem Picsum Wallpapers (Cinnamon)
View picsum-wallpapers.sh
#!/bin/sh
set -e
# Sets your wallpaper to a random photo from <https://picsum.photos>.
# Run regularly (e.g. automatically on login) to keep your desktop fresh.
cache="${XDG_CACHE_HOME:-$HOME/.cache}/picsum-wallpapers"
mkdir -p "$cache"
new="$cache/new.jpg"
@rgson
rgson / youtube-playlist-duration.js
Created Feb 9, 2019
Calculates the total duration of a YouTube playlist.
View youtube-playlist-duration.js
/*
Calculates the total duration of a YouTube playlist.
Run the snippet in Chrome Dev Tools while on the playlist's page,
e.g. https://www.youtube.com/playlist?list=WL
Ensure that the playlist is fully visible first.
Long playlists are loaded 100 videos at a time.
*/
@rgson
rgson / README.md
Created Nov 23, 2018
Delete Discord messages
View README.md

Discord Eraser

Erases all of your messages in a DM conversation.

Usage

  1. Open Chrome Dev Tools > Network.
  2. Go to https://discordapp.com.
  3. Find some request with the Authorization request header.
  4. Place the header's value in the Authorization variable in eraser.js.
You can’t perform that action at this time.