Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
lite xl is epick

Cukmekerb vincens2005

💭
lite xl is epick
View GitHub Profile
View a_cool_kaboot.json
[{"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 / virtualcam.sh
Created Aug 1, 2021
creates a virtual webcam with ffmpeg and v4l2loopback
View virtualcam.sh
#!/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
View cors-binary.js
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]);
}
View podcast.xml
<?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>
View cloudSettings
{"lastUpload":"2021-03-24T17:42:58.750Z","extensionVersion":"v3.4.3"}
@vincens2005
vincens2005 / rebrandly_custom_slashtag.html
Created Feb 12, 2021
Use the rebrandly API with custom slashtags (also old)
View rebrandly_custom_slashtag.html
<!doctype html>
URL:
<input id="box">
Slashtag:
<input id="slashtag">
<button onclick="makelink(document.getElementById('box').value, document.getElementById('slashtag').value);">Make link</button>
@vincens2005
vincens2005 / rebrandly.html
Created Feb 11, 2021
an exapmple of the rebrandly API ising jQuery (ancient)
View rebrandly.html
<!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>