Skip to content

Instantly share code, notes, and snippets.

View Chaphasilor's full-sized avatar
💬
This is madness but it is GLORIOUS madness!

Chaphasilor

💬
This is madness but it is GLORIOUS madness!
View GitHub Profile
@Chaphasilor
Chaphasilor / moodle-quiz-to-markdown.js
Last active July 31, 2022 17:13
Convert completed moodle quizzes to markdown for testing yourself again. Just open a quiz in "review" mode, copy the whole gist text and paste it into your browser's console.
(async () => {
const zeroWidthSpace = `​`;
async function convertQuizToMarkdown() {
const quizTitle = document.querySelector("#page-navbar > nav > ol > li:last-child > a").innerText;
const quizContent = (await Promise.all([...document.querySelectorAll(`.que`)].map(async (x, index) => {
@Chaphasilor
Chaphasilor / cloudflare-tunnels.md
Created January 22, 2022 19:04
A short guide on how to use Cloudflare Tunnels to securely expose your services to the internet in just a few minutes 🥳

How to create a Cloudflare (Argo) Tunnel

Cloudflare Tunnels are a great way to securely expose local services to the internet indefinitely, without releaving your IP address or poking holes in your firewall.
It's basically a reverse ssh tunnel on steroids, free, and offers a rock-solid connection.
Once set up (takes 10 mins tops), you can easily add another exposed service in just 30 seconds by editing a config file and restarting the tunnel.

Requirements:

  • Cloudflare account (free)
  • A domain added to your CF account
@Chaphasilor
Chaphasilor / README.md
Created November 25, 2020 21:07
fancyLog.js

fancyLog.js

This lets you use TailwindCSS to style your console.log.

You need to have Tailwind installed locally, CDN doesn't work :/ Also, unused Tailwind classes are purged by default, so make sure the classes you want to use for styling are included in the final build!

@Chaphasilor
Chaphasilor / proz-helper.js
Last active June 27, 2023 11:31
A Tampermonkey script for importing csv data into Proz
// ==UserScript==
// @name Proz Helper
// @author Chaphasilor
// @namespace https://github.com/Chaphasilor
// @source https://gist.githubusercontent.com/Chaphasilor/54bb6dd2b12825e8ad5b7c364c1f4479/
// @updateURL https://gist.githubusercontent.com/Chaphasilor/54bb6dd2b12825e8ad5b7c364c1f4479/raw/
// @downloadURL https://gist.githubusercontent.com/Chaphasilor/54bb6dd2b12825e8ad5b7c364c1f4479/raw/
// @version 1.1.5
// @description Lets you import .csv files into proz!
// @match https://proz.gsi.de/index.php*
@Chaphasilor
Chaphasilor / index.html
Created October 17, 2019 08:23
Some code for twelve70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="theme-color" content="#121212">
<title>Example Page for twelve70</title>

Hey guys, we have finally reached 1,000 subs, and as promised we are making this post to start crowdsourcing the knowledge base for our wiki as well as upcoming guides!

All you have to do in order to contribute is to comment down below all the (USB-C) hardware you either own or know well in the following format:

(just copy and paste the stuff between the horizontal lines for the editor you're using and edit the content)

"Fancy Pants Editor":

(default for the redesigned desktop version of reddit)