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 | |
# 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
#!/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
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 | |
# -*- 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
#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 | |
# 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> |
NewerOlder