Skip to content

Instantly share code, notes, and snippets.

View techygrrrl's full-sized avatar
🔴

techygrrrl techygrrrl

🔴
View GitHub Profile
@techygrrrl
techygrrrl / Fyre queue expander.user.js
Last active July 24, 2022 22:53
Expands the queue on the Fyrewire queue, a tool used for setting up queues for gaming streamers for 1v1 matches. Install a user script runner like ViolentMonkey, TamperMonkey or GreaseMonkey and Click "Raw" to install.
// ==UserScript==
// @name Fyre queue expander
// @namespace https://techygrrrl.stream
// @version 0.1
// @description Because we should all stop using accordions, shows all list items in the accordion on the Fyre queue.
// @author techygrrrl
// @match https://thefyrewire.com/kappa/queues/techygrrrl
// @icon https://techygrrrl.stream/favicon.ico
// @grant none
// ==/UserScript==
@techygrrrl
techygrrrl / random_values_zshrc_bash_profile.sh
Last active October 23, 2022 18:19
Generate random values in the command line. pbcopy and pbpaste are macOS commands and may not be available on other systems, so use the equivalent on yours
# Put these in your ~/.bash_profile or ~/.zshrc
alias randomhex="python -c 'import sys,uuid; sys.stdout.write(uuid.uuid4().hex)' | pbcopy && pbpaste && echo"
# => db2bfd6f438444fd8b9e9285ea761386
alias uuid="python -c 'import sys,uuid; sys.stdout.write(str(uuid.uuid4()))' | pbcopy && pbpaste && echo"
# => e2b6addd-d057-4ba4-8e57-9d60431bf5e6
@techygrrrl
techygrrrl / Twitch Channel Rewards Clickrrr.user.js
Last active May 3, 2023 07:06
Auto-click the channel rewards button to automatically claim the bonus without having to click. Install a user script runner like ViolentMonkey, TamperMonkey or GreaseMonkey and Click "Raw" to install.
// ==UserScript==
// @name Twitch auto-clickrrr
// @namespace https://techygrrrl.stream
// @version 0.1
// @description Auto-click the rewards
// @author techygrrrl
// @match https://*.twitch.tv/*
// @match https://*.twitch.com/*
// @icon https://techygrrrl.stream/images/icons/channel-clickrrr.png
// @grant none
@techygrrrl
techygrrrl / gamesense_heartbeat.sh
Created June 10, 2022 05:57
Heartbeat script to keep your app alive for the GameSense SDK
GAMESENSE_HEARTBEAT_ENDPOINT='http://127.0.0.1:49711/game_heartbeat'
GAME_NAME='TECHYGRRRL'
while
curl --location --request POST $GAMESENSE_HEARTBEAT_ENDPOINT \
--header 'Content-Type: application/json' \
--data-raw '{
"game": "$GAME_NAME"
}'
sleep 8
@techygrrrl
techygrrrl / postman-test-next-page.js
Created June 10, 2022 21:05
Postman script to support pagination
// Assumes you have a value on the response JSON `pagination.cursor` and an environment variable `next_cursor`
// Will set this environment variable so you can use it for subsequent requests.
const responseJson = pm.response.json();
pm.environment.set("next_cursor", responseJson.pagination.cursor);
@techygrrrl
techygrrrl / bad-jokes-function.js
Last active June 19, 2022 18:48
Punny Jokes / Bad Jokes / Dad Jokes API – available here: https://autocode.com/techygrrrl/apps/bad-jokes
/**
* You can use it immediately here: https://autocode.com/techygrrrl/apps/bad-jokes/
*/
const jokes = [
"I'm tired of following my dreams. I'm just going to ask them where they are going and meet up with them later.",
"Did you hear about the guy whose whole left side was cut off? He's all right now.",
"Why didn’t the skeleton cross the road? Because he had no guts.",
"What did one nut say as he chased another nut? I'm a cashew!",
"Chances are if you've seen one shopping center, you've seen a mall.",
"I knew I shouldn't steal a mixer from work, but it was a whisk I was willing to take.",
@techygrrrl
techygrrrl / Twitch following privacy screen.user.js
Last active July 24, 2022 22:52
Twitch following privacy screen. Install a user script runner like ViolentMonkey, TamperMonkey or GreaseMonkey and Click "Raw" to install.
// ==UserScript==
// @name Twitch following privacy screen
// @namespace https://techygrrrl.stream
// @version 0.1
// @description Mask the following sidebar
// @author techygrrrl
// @match https://*.twitch.tv/*
// @match https://*.twitch.com/*
// @icon https://techygrrrl.stream/images/icons/twitch-privacy-screen.png
// @grant none
@techygrrrl
techygrrrl / Twitch pop out chat bookmark action.js
Created August 19, 2022 23:49
Twitch pop out chat bookmark action
/**
* open a chat window in a popup
*
* USAGE:
* - copy the entire contents of this file
* - in the URL field, type `javascript:` without the ticks
* - paste everything after the colon
*/
(function openTechygrrrlChat() {
const username = 'techygrrrl'
@techygrrrl
techygrrrl / ComponentTemplate.svelte
Last active August 24, 2022 03:54
Example base Svelte template
<script>
// You can import any dependencies here, e.g.:
import { toUppercase } from '../utils/to-uppercase'
// If you need to manage state in your component, you can set variables here, e.g.
let myValue = toUppercase('hello')
</script>
<div>
<h1 class="title">My HTML goes here - {myValue}</h1>
</div>
@techygrrrl
techygrrrl / LoadingSpinner.svelte
Created August 24, 2022 03:50
A loading spinner component in Svelte
<script>
</script>
<div class="loading-state">
<div class="lds-ripple">
<div />
<div />
</div>
</div>