Skip to content

Instantly share code, notes, and snippets.

View ran-dall's full-sized avatar
🗿
It's a Trap!

Randall ran-dall

🗿
It's a Trap!
View GitHub Profile
(function(window, document){
var analytics = {
endpoint: 'ANALYTICS_ENDPOINT',
siteId: 'SITE_ID',
referrer: document.referrer || null,
anonymizeIP: true, // Indicate preference for IP anonymization
deviceInfo: function() {
// Improved device detection logic (still basic for demonstration)
var ua = navigator.userAgent;
var browserMatch = ua.match(/firefox|chrome|safari|msie|trident/i);
@ran-dall
ran-dall / one-shot.sh
Created October 3, 2022 14:46
Gentoo `merge-usr` One Shot
emerge -v1 sys-apps/merge-usr; \
merge-usr; \
eselect profile set {n+1}; \
emerge --update --deep --changed-use @world
@ran-dall
ran-dall / usb-suspend-control
Created August 26, 2022 14:24
Disable a device from resuming system after suspending on Linux
#!/bin/bash
# Adapted from uglic's StackOverflow response
# https://askubuntu.com/questions/1328823/disable-specific-device-from-waking-up-the-system
while getopts v:p:s: flag
do
case "${flag}" in
v) vendor=${OPTARG};;
p) product=${OPTARG};;
s) state=${OPTARG};;
@ran-dall
ran-dall / dracula-nextcloud.css
Created January 15, 2022 19:06
Dracula Theme for NextCloud
:root {
--color-hover-blue:rgba(75, 110, 175, 0.4);
--color-plasma-blue:rgba(75, 110, 175, 1);
--color-cardboard-gray: rgba(210, 210, 210, 1);
--color-coastal-fog: rgba(127, 140, 141, 1);

Keybase proof

I hereby claim:

  • I am ran-dall on github.
  • I am randall_ (https://keybase.io/randall_) on keybase.
  • I have a public key ASA8wlV7E58tR9yIklkeToSJHFgAzCWqL3il13Cubrcy0Ao

To claim this, I am signing this object: