Skip to content

Instantly share code, notes, and snippets.

View Xenthys's full-sized avatar
💻
Site Reliability Engineer

Dylan Ysmal Xenthys

💻
Site Reliability Engineer
View GitHub Profile
@Xenthys
Xenthys / img2irc.py
Created October 2, 2016 23:39 — forked from Polsaker/img2irc.py
Makes beautiful ART from regular, boring images.
#!/usr/bin/env python
# This script shall be distributed under the "who cares" license.
# Just leave this note here stating that Polsaker
# (https://github.com/Polsaker) created this.
# Usage: img2irc.py image.png [-rgb]
# With -rgb the script uses RGB to compare colors instead of L*A*B*.
# It is faster but it might lead to worse (or better ;D) image quality
@Xenthys
Xenthys / op.sh
Last active August 11, 2016 23:53
A shell script to generate an IRC command to op you in a channel
#!/bin/bash
if [[ -z "$1" ]]; then
printf "You need to specify a channel, dumbass.\n" >&2
exit
fi
printf "/join #%s,0\n" "$(echo "$1"|sha256sum|head -c12)"