Skip to content

Instantly share code, notes, and snippets.

View shredthaGNAR's full-sized avatar

Me shredthaGNAR

View GitHub Profile
@shredthaGNAR
shredthaGNAR / btt.sh
Created July 31, 2022 19:45 — forked from wkliwk/btt.sh
BTT reset trial time
# BetterTouchTool reset trial time
# ** All preference will reset
echo "remove ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist"
rm -rf ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist
echo "Done"
echo "remove ~/Library/Application\ Support/BetterTouchTool/"
rm -rf ~/Library/Application\ Support/BetterTouchTool/
echo "Done"
@shredthaGNAR
shredthaGNAR / firefox-release-test.css
Created June 18, 2022 07:28
testing userchrome ideas
@import url(integrated_searchbar_popup.css);
@import url(compact-bookmarks.css);
@import url(sliding-bookmarks-bar.css);
/*================ GLOBAL COLORS ================*/
:root {
--accent-color: 60, 56, 54;
--tab-color: 240, 240, 244;
--tab-text: 0, 0, 0;
@shredthaGNAR
shredthaGNAR / colourful-flower-popup-menu.markdown
Created April 27, 2022 14:48
Colourful Flower Popup Menu

Colourful Flower Popup Menu

This mobile inspired flower popup menu is a colourful fun project I'm experimenting with. Feel free to use it however you like.

A Pen by Jasper LaChance on CodePen.

License.

@shredthaGNAR
shredthaGNAR / yt-dlp-script.md
Created April 27, 2022 02:20
Youtube DLP Bash Script

youtube-dlp-bash

No copying URL! No pressing paste or enter!!

You select your text, and activate this script by a hotkey shortcut (e.g F9) and you instantly download the video!
No pressing enter or confirmation or whatever bs. Literally 1 button download, couldn't be smoother. No "copy" -> "select input field" -> "paste" -> "enter" on whatever video downloader

#!/bin/sh

# Replace /username/ with your username under home directory
# youtube-dlp-bash
**No copying URL! No pressing paste or enter!!**
You select your text, and activate this script by a hotkey shortcut (e.g F9) and **you instantly download the video!**
No pressing enter or confirmation or whatever bs. Literally 1 button download, couldn't be smoother. No "copy" -> "select input field" -> "paste" -> "enter" on whatever video downloader
```
#!/bin/sh
# Replace /username/ with your username under home directory
@shredthaGNAR
shredthaGNAR / download-video-from-clipboard.sh
Created April 27, 2022 02:13 — forked from tyzbit/download-video-from-clipboard.sh
Download a video from a URL in clipboard automatically (bind to keyboard shortcut) (Mac/Linux)
#!/bin/bash
dir="$HOME/Videos"
opts="--add-metadata --no-mtime"
if [ -f /usr/local/bin/youtube-dl ]; then
youtube_dl="/usr/local/bin/youtube-dl"
else
youtube_dl="$(which youtube-dl)"
fi
// ==UserScript==
// @name Copy Shopify
// @version 0.1
// @description Add copy button to shopify admin-api graphql schemas
// @author tkain
// @match https://shopify.dev/docs/admin-api/graphql/reference/*
// @grant GM_setClipboard
// ==/UserScript==
const parseAndCopy = (table) => {
@shredthaGNAR
shredthaGNAR / ccdl.command
Created July 23, 2021 10:38 — forked from ayyybe/ccdl.command
Adobe Offline Package Generator v0.1.2 (macOS only) --- No longer being updated.
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear