This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if pgrep -f "ffmpeg.*\/tmp\/screencast\.webm" | |
then | |
pkill -f "ffmpeg.*\/tmp\/screencast\.webm" | |
exit | |
fi | |
rm /tmp/screencast.webm | |
rm /tmp/screencast.webp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: ezdrop myfile.png | |
# ^ ctrl+v into browser (discord/slack/whatever) | |
f="$(realpath "$@")" | |
echo -n "file://$f" | xclip -se c -t 'text/uri-list' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Slack: Always Stay Active -- slight update from version available in below url | |
// @namespace https://ericdraken.com/slack-always-stay-active | |
// @version 1.0.2 | |
// @description Always stay active on Slack. | |
// @author Eric Draken (ericdraken.com) | |
// @match https://app.slack.com/client/* | |
// @grant unsafeWindow | |
// @run-at document-start | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name scrolling | |
// @match *://*/* | |
// @version 1.0 | |
// ==/UserScript== | |
const s = (e, dir) => { | |
e.preventDefault() | |
e.stopPropagation() | |
window.scrollBy({ | |
behavior: "smooth", |