Skip to content

Instantly share code, notes, and snippets.

View vincens2005's full-sized avatar
💭
lite xl is epick

Cukmekerb vincens2005

💭
lite xl is epick
View GitHub Profile
@vincens2005
vincens2005 / rebrandly.html
Created February 11, 2021 23:59
an exapmple of the rebrandly API ising jQuery (ancient)
<!doctype html>
<input id="box">
<button onclick="makelink(document.getElementById('box').value);">Make link</button>
<div id="output"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js">
</script>
<script>
@vincens2005
vincens2005 / rebrandly_custom_slashtag.html
Created February 12, 2021 00:02
Use the rebrandly API with custom slashtags (also old)
<!doctype html>
URL:
<input id="box">
Slashtag:
<input id="slashtag">
<button onclick="makelink(document.getElementById('box').value, document.getElementById('slashtag').value);">Make link</button>
{"lastUpload":"2021-03-24T17:42:58.750Z","extensionVersion":"v3.4.3"}
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
>
<channel>
<atom:link href="{{ site.url }}{{ page.url }}" rel="self" type="application/rss+xml" />
<link>{{ site.url }}</link>
var fetch = require("node-fetch");
exports.handler = async (event, context) => {
var url = event.path;
url = url.split(".netlify/functions/cors-binary/")[1];
url = decodeURIComponent(url);
url = new URL(url);
for (let i in event.queryStringParameters) {
url.searchParams.append(i, event.queryStringParameters[i]);
}
@vincens2005
vincens2005 / virtualcam.sh
Created August 1, 2021 17:49
creates a virtual webcam with ffmpeg and v4l2loopback
#!/bin/bash
# WTFPL license
# You might need to change /dev/video2 to something different depending on what hardware you have plugged in
sudo modprobe v4l2loopback
echo "Enter the file path (no spaces):"
read filepath
echo starting stream...
ffmpeg -re -stream_loop -1 -i $filepath -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video2
[{"question":"what color is an orange?","answers":["green","yellow","orange","blue"],"correct":[2],"timelimit":15},{"question":"when did the chicken cross the road?","answers":["1984","to get to the other side","not enough information","yesterday"],"correct":[1,2],"timelimit":15},{"question":"what isn't one of Ernest Dichter's theories?","answers":["women are sexually attracted to asparagus","cakes are bisexual","rice represents birth","yogurt makes you sexy"],"correct":[1],"timelimit":34},{"question":"what is Linux?","answers":["an operating system","licensed under GPLv3","not an operating system unto itself, but rather another free component of a fully functioning GNU system, made useful by the GNU corelibs, shell utilities, and vital system components comprising a full OS as defined by POSIX","the basis of MacOS"],"correct":[2],"timelimit":15},{"question":"What type of camera was Dune (2021) shot on?","answers":["Red Komodo","ARRI Alexa Mini","Red Monstro","ARRI Alexa LF"],"correct":[3],"timelimit":15},{"q
@vincens2005
vincens2005 / game.json
Created March 15, 2022 21:06
chinese 3 kaboot #1
[{"question":"口袋 (kǒudài)","answers":["carry","pocket","hole","chopsticks"],"correct":[1],"timelimit":15},{"question":"放假","answers":["vacation","pocket","bad person","house"],"correct":[0],"timelimit":15},{"question":"我一吃饭就觉得很开心。","answers":["As soon as I eat food, I think well","When I eat one I think happy","As soon as I eat, I feel sad","as soon as I eat, I feel happy."],"correct":[3],"timelimit":15},{"question":"坏人","answers":["good person","find person","bad person","people"],"correct":[2],"timelimit":15},{"question":"last time","answers":["鞋子","上次","猪肉","毛衣"],"correct":[1],"timelimit":15},{"question":"毛衣","answers":["sweater","top hat","mountain","sunfish"],"correct":[0],"timelimit":15},{"question":"to steal","answers":["偷 (tōu)","新 (xīn)","重 (zhòng)","轻 (qīng)"],"correct":[0],"timelimit":15},{"question":"新 (xīn)","answers":["new","old","left","south"],"correct":[0],"timelimit":15},{"question":"王子 ( wángzǐ )","answers":["pocket","chopsticks","take","prince"],"correct":[3],"timelimit":15},{"question":"筷