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 | |
# Your search on the kisscartoon website | |
query="$(echo "" | dmenu -p "Search:" | tr ' ' '+')"; | |
[ -z "$query" ] && exit; | |
# Each search result as HTML elements, containing names and URLs of shows | |
results="$(curl --silent "https://kisscartoon.app/?s=$query" | grep -F 'oldtitle')"; | |
# The name of the result you chose |
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 | |
# Multi-monitor wallpaper generator | |
# Requires imagemagick, xrandr, feh | |
# Usage: pipe a list of images to this script | |
# Example: ls ~/Pictures/*.JPG | sort -R | sh wallpaper | |
{ | |
# ignore first line | |
read -u 3 -r ign; | |
# reading from xrandr piped in last line |
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/sh | |
#usage: cat file | section PATTERN | |
grep "$1" -A9999 -m1 | grep '^[[:space:]]*$' -B9999 -A0 -m1 <&0 |
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/dash | |
# MPD Discord Rich Presence | |
# Requires github.com/Pigpog/discord-rich-presence-cli | |
timecalc(){ | |
echo "$(date +'%s') + ((($3 * 60) + $4) - (($1 * 60) + $2))" | bc | |
} | |
{ | |
# Application ID |
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/sh | |
[ -z $2 ] || [ ! -z $4 ] && echo "Usage: currconv FROM TO [AMOUNT]" && exit; | |
# Parameters must be uppercase | |
FROM=$(echo $1 | tr 'a-z' 'A-Z' ); | |
TO=$(echo $2 | tr 'a-z' 'A-Z' ); | |
# SAMPLE: {"base":"CAD","rates":{"USD":0.8010888328},"date":"2021-04-23"} | |
RESPONSE="$(curl -s --http2 "https://api.ratesapi.io/api/latest?base=$FROM&symbols=$TO")"; |
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 | |
# Automatically skips songs you dont like | |
# Skipping a song decreases its score | |
# Playing it for >15 seconds increases it | |
# Songs are skipped randomly based on their score | |
# Location of database file | |
DBFILE=~/scripts/database |
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 D2L Dark Theme | |
// @version 0.1 | |
// @description A dark theme for D2L | |
// @author Jared | |
// @match https://*.desire2learn.com/* | |
// @exclude https://*.desire2learn.com/d2l/lms/selfassess/* | |
// @exclude https://*.desire2learn.com/content/* | |
// @grant none | |
// ==/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
const express = require('express'); | |
const fileUpload = require('express-fileupload'); | |
const app = express(); | |
// default options | |
app.use(fileUpload()); | |
app.get("/upload", function (req, res, next) { | |
console.log(req.connection.remoteAddress) | |
try { |
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 Rabb.it square | |
// @namespace https://github.com/Pigpog | |
// @version 0.1 | |
// @description change rabb.it video calls to squares instead of circles. | |
// @author Pigpog | |
// @match https://www.rabb.it/* | |
// @grant none | |
// ==/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 telegram dark theme | |
// @namespace https://github.com/Pigpog | |
// @version 0.1 | |
// @description Telegram Web Dark Theme | |
// @author Pigpog | |
// @match https://web.telegram.org/ | |
// @grant none | |
// ==/UserScript== |