Skip to content

Instantly share code, notes, and snippets.

View mkody's full-sized avatar
🍮
Wha-

Kody mkody

🍮
Wha-
View GitHub Profile

agnoster-kdy.zsh-theme

"Two line"-style by fcamblor
Some characters fix by ashebanow
Some edits by mkody

A ZSH theme optimized for people who use:

Keybase proof

I hereby claim:

  • I am MKody on github.
  • I am kdy (https://keybase.io/kdy) on keybase.
  • I have a public key whose fingerprint is CE11 0FAF 7F61 737F D213 7579 F325 DA80 4BC1 E1D8

To claim this, I am signing this object:

@mkody
mkody / dA-Pony--Readme.md
Last active April 6, 2016 21:00
My Little deviantART (ParallaxMLP)

The picture used is from ParallaxMLP on deviantArt, go visit him!

Updates are done with cloneddragon's help!
Available now on gist.


  • 6th April 2016: Added floating pony back, thanks cloneddragon! (See lines 11 and 12)
  • 17th November 2015: Now support new redesign, "Watch 2.0". Also, dropped support for old logo and floating pony.
  • 3rd May 2015: Fix display on error pages (like deactivated account) by cloneddragon
@mkody
mkody / HELLO.lol
Last active August 29, 2015 14:16
Just using some LOLCODE here
HAI 1.2
OBTW
- A LOLCODE test -
This is just a test with the LOLCODE language.
It's just fun to use and code. And it works!
Using bad coding-ideas here, just don't take care.
What's used here:
`HAI <lolcode version>` start a LOLCODE code made in/for a specified LOLCODE version
@mkody
mkody / watch.sh
Created November 9, 2015 13:43
Watch for a file change
#!/bin/bash
# Will check for remote file change. Be aware, it downloads the file.
# (Made at first to execute a php script to notify when a file was updated)
# USAGE: `./watch.sh "http://exemple.com/file"`
curl -s -o "temp-dl" "$1"
firsthash="$(md5sum 'temp-dl')"
counttime="0"
while :
<?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;
@mkody
mkody / js-logview-thingspeak.html
Created July 13, 2016 11:16
Display last X content you sent to thingspeak
<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'
@mkody
mkody / openpgp.txt
Created November 23, 2016 11:03
Identité reliée à OpenKeychain
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 / cleanup.js
Last active November 20, 2018 14:01
Only show highlighted runs from GDQ's schedule
// 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 / backup.sh
Last active May 13, 2022 11:50
im-in.space's backup script
#!/bin/bash
# Welcome to im-in.space's backup script!
PIDFILE="/tmp/backup.pid"
BUCKETNAME="[your bucket name here]"
if [ -f "$PIDFILE" ]; then
echo "Already running"
exit 1
fi