Skip to content

Instantly share code, notes, and snippets.

Avatar
🍮
https://kdy.ch/r/oqe

Kody mkody

🍮
https://kdy.ch/r/oqe
View GitHub Profile
View openpgp.md
@mkody
mkody / backup.sh
Last active Apr 23, 2021
im-in.space's backup script
View backup.sh
#!/bin/bash
# Welcome to im-in.space's backup script!
# === Config
bucketname=[something here]
echo "STARTING BACKUP"
date
echo "=========="
# === Preping
@mkody
mkody / README.md
Last active Jan 29, 2020
Hide Scroll Bar
View README.md

This userscript hides the Scroll.com bar on partner websites.

CLICK HERE with Violentmonkey/Tampermonkey installed to import it.

View gist:794725cc99b875a2196d13f30c0ab269
Verifying my Blockstack ID is secured with the address 19joqG54aDk2aKTfNmGZASxxgP3uQ1G7N6 https://explorer.blockstack.org/address/19joqG54aDk2aKTfNmGZASxxgP3uQ1G7N6
@mkody
mkody / cleanup.js
Last active Nov 20, 2018
Only show highlighted runs from GDQ's schedule
View cleanup.js
// FOR USE WITH https://greasyfork.org/fr/scripts/31092-gdq-schedule-highlighter
// Hide all runs first
document.querySelectorAll('#runTable tbody tr:not(.day-split)').forEach(el => {
el.style.display = 'none'
})
// Show highlighted runs and remove background color
document.querySelectorAll('#runTable tbody tr.scheduled').forEach(el => {
el.style.display = null
el.style.backgroundColor = 'transparent'
})
@mkody
mkody / README.md
Last active May 4, 2018
Download videos from noco with puppeteer
View README.md

NocoDL

You'll need wget and a recent nodejs. Maybe Chrome too.
Also make sure you've disabled the flash player and set your prefered quality in your Noco settings.

  • Create a list.txt text file with every episode links (not a show page!)
  • Fill your logins on lines 3 and 4 in nocodl.js
  • Install puppeteer: npm install puppeteer (or yarn add puppeteer)
  • Run the script node nocodl.js
@mkody
mkody / openpgp.txt
Created Nov 23, 2016
Identité reliée à OpenKeychain
View openpgp.txt
Ce gist confirme l'identité reliée se trouvant dans ma clef OpenPGP et le relie à ce compte GitHub.
Jeton pour preuve :
[Verifying my OpenPGP key: openpgp4fpr:46e03856370035a4cb223730a0bbc25e7f92865b]
@mkody
mkody / miam.php
Last active Aug 11, 2016
Random value, change every day
View miam.php
<?php
$what = [
"McDo",
"Subway",
"Saucisse de veau + frites",
"Nuggets + frites",
"Pizza",
"Sandwich avec poulet panné + ketchup",
"Pâtes"
];
@mkody
mkody / js-logview-thingspeak.html
Created Jul 13, 2016
Display last X content you sent to thingspeak
View js-logview-thingspeak.html
<script>
// === Configure the variables here ===
// our channel id
var channel_id = 134049
// how many entries to load
var entries_count = 5
// api key (read)
var api_key = 'TNKUVEP15UGJ8HIK'
// select date locale ('en' or 'fr-ch')
var date_locale = 'fr-ch'
View getHTTPCode.php
<?php
function getHTTPCode($code) {
switch($code) {
// From https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml (2016-03-01)
case 100:
return '100 - Continue';
break;
case 101:
return '101 - Switching Protocols';
break;