Skip to content

Instantly share code, notes, and snippets.

View RunningDroid's full-sized avatar

RunningDroid

  • New York, USA
View GitHub Profile
@wd5gnr
wd5gnr / hilo.sh
Last active March 29, 2023 20:02
A simple hilo game using Gum (https://github.com/charmbracelet/gum)
#!/bin/bash
clear
# init colors
FG="#00ffff"
BFG="#00ff00"
# if you wonder why true is in there https://www.shellcheck.net/wiki/SC2015
gum confirm --default --affirmative="Play now" --negative="Dump source first" --timeout=10s "Would you like to view the source code before playing?" && true || ( gum format -t code <"$0" )
# get initial info
gum style --foreground "$FG" --border-foreground "$BFG" --border double --align center --width 64 --margin "1 2" --padding "2 4" \
@TheBrokenRail
TheBrokenRail / README.md
Last active April 30, 2024 00:23
Jailbreak Firefox!

Jailbreak-Firefox

This script allows you to install unsigned extensions (ones that aren't approved by Mozilla) on normal Firefox builds and the official Snap! That's right, no "Firefox Developer Edition" nonsense required!

⚠️ Disclaimer ⚠️

This script is not well tested, like at all. This script might break things, possibly important things. You should probably take a backup of your Firefox profile before using it. You have been warned.

Dependencies

sudo apt install -y curl unzip zip
# Only needed when jailbreaking the Snap
@InfoTeddy
InfoTeddy / fix_steam_screensaver.c
Created May 22, 2022 06:58
Linux Steam client screensaver issue workaround LD_PRELOAD library, while letting games disable screensaver
/* SPDX-License-Identifier: MIT */
/*
* On Linux, Steam periodically calls SDL_DisableScreenSaver() so your
* screensaver doesn't work with the Steam client open even if you aren't
* playing a game, as described in
* https://github.com/ValveSoftware/steam-for-linux/issues/5607 .
*
* To fix this, LD_PRELOAD a library that replaces SDL_DisableScreenSaver()
* with a no-op if the executable calling it is Steam, but otherwise let it
@zedseven
zedseven / WebsitePassLengths.md
Last active January 31, 2021 05:11
An incomplete, rough archive of websites' maximum password lengths. I make no guarantees of accuracy - these are largely sourced from my password manager, since I set my passwords as 256 by default and shorten them until they fit. As a result, an allowed length >256 chars may be missed.

Format

website: length (date of check - YMD) - special notes (if any)

Email Providers

Website Accounts

@micycle1
micycle1 / a.md
Last active April 6, 2024 14:26
Downloading full-size media from DeviantArt

For direct image URL, the image quality is much lower than the original upload (the resolution and size of the original upload can be found in the right sidebar). This is not the case few years ago when the original image was accessible through right click, but on 2017, Wix acquired DeviantArt, and has been migrating the images to their own image hosting system from the original DeviantArt system. They linked most of the direct images to a stripped-down version of the original images; hence the bad image quality. Below are the three different formats of direct image URLs I found:

  • URL with /v1/fill inside: this means that the image went through Wix's encoding system and is modified to a specific size and quality. In this case, you remove ?token= and its values, add /intermediary in front of /f/ in the URL, and change the image settings right after /v1/fill/ to w_5100,h_5100,bl,q_100. The definitions of the values can be found in [Wix's Image Service](https://support.wi
@abenson
abenson / etc.dnsmasq.conf
Last active January 29, 2024 04:12
adblock setup
...
# adblock
addn-hosts=/etc/hosts.adblock
...
@pullmoll
pullmoll / for_descendants.txt
Last active April 19, 2023 08:10
Some thoughts...
Personally, I was never ambitious enough to spur my own descendants.
Yet this world and all the descendants of millions of people need to be thought about.
They deserve it to be left with a planet and people who are above my generation's average capacity.
My couple of suggestions to everyone who is involved with or has influence on the coming development:
1) Refrain from jealousy. Granting everything to anyone is a good start.
2) Don't waste your time with malicious gossip. It'll return to you rather sooner than later.
3) If you like someone, tell them. The day when it will be too late to speak out is coming soon.
4) Kindliness brings you US$ 0.00 per barrel. Sell it!
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active May 2, 2024 16:19
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@deckar01
deckar01 / transcend_wifi_sd_channel_config_root.md
Last active April 27, 2024 19:47
Rooting the Transcend WiFi SD card by injecting commands into the wifi channel config

Other languages:

Rooting the Transcend WiFi SD card

by injecting commands into the wifi channel config

sd

This exploit requires opening the "Files" page of the card's web interface and escaping to the root of the file system.

@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active April 25, 2024 02:01
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results