This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# mk302 by Karim Vergnes <me@thesola.io> | |
# License: CC0 1.0 Universal | |
# Requires Jinja2 | |
'''<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="REFRESH" content="0;url={{ href }}"" /> | |
<script>window.location.href="{{ href }}"</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define vide void | |
#define si if | |
#define sinon else | |
#define retourner return | |
#define pour for | |
#define tantque while | |
#define faire do | |
#define booleen bool | |
#define entier int | |
#define caractere char |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# This script is designed to be installed in ~/.local/bin/bat or equivalent | |
from os import execvp | |
import sys | |
import subprocess | |
if __name__ == "__main__": | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GREEN := $(shell tput setaf 2 2>/dev/null) | |
YELLOW := $(shell tput setaf 3 2>/dev/null) | |
BOLD := $(shell tput bold 2>/dev/null) | |
RESET := $(shell tput sgr0 2>/dev/null) | |
define rich_echo | |
printf "${BOLD}$(1)${RESET}\t$(2)\n" | |
endef | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# key-gnat by Karim Vergnes <me@thesola.io> | |
# License: WTFPL 1.0 | |
# Requires evdev python to be installed | |
from evdev import UInput, ecodes as e | |
import random, time | |
ui = UInput(name="Unsuspicious keyboard™") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# WebRoulette by Karim Vergnes <me@thesola.io> | |
# License: WTFPL 1.0 | |
# Requires xdg-open and a web browser to work. | |
# Location of the sitefile | |
: ${LIST:="$HOME/.sitefile"} | |
# Time interval for sleep | |
: ${SLEEP_INT:="20-300"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# chroma by Karim Vergnes <me@thesola.io> | |
# License: WTFPL 1.0 | |
# Requires xrandr to work. | |
# Display to modify | |
: ${XRDISP:="eDP1"} | |
# Speed at which to alternate colors | |
: ${COEF:=1} | |
# Intensity of result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# make-sandwich by Karim Vergnes <me@thesola.io> | |
# XKCD/149-compliant wrapper for Make | |
# License: WTFPL 1.0 | |
# Requires make to work. To install, place in /usr/local/bin/ | |
if ! which /usr/bin/make > /dev/null 2>&1 | |
then | |
echo "make is not installed. See your distribution's info to install it." | |
exit 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Un pot de fleurs pour apprendre à coder :) | |
# © Karim Vergnes <me@thesola.io> | |
# Sous licence Creative Commons Attribution, NonCommercial, ShareAlike (CC BY,NC,SA) | |
# https://creativecommons.org/licenses/by-nc-sa/3.0/fr/ | |
class Potdefleur: | |
couleur = str() | |
fleurs = list() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Reboot-EFI (c) Karim Vergnes <me@thesola.io> | |
# Wrapper to reboot to a set UEFI entry | |
# Requires efibootmgr and fzy | |
rebootcmd="shutdown -r now" | |
trap _exit KILL INT TERM | |
_exit() { |
OlderNewer