Skip to content

Instantly share code, notes, and snippets.

View Techman's full-sized avatar
🔨

Michael Hazell Techman

🔨
  • irc.techtronix.net
View GitHub Profile

Keybase proof

I hereby claim:

  • I am Techman on github.
  • I am techman (https://keybase.io/techman) on keybase.
  • I have a public key whose fingerprint is B346 C211 4AC0 8E75 7348 AFC6 FE75 457D 86B2 0A0D

To claim this, I am signing this object:

@Techman
Techman / img2irc.py
Created October 3, 2016 02:27 — forked from Polsaker/img2irc.py
Makes beautiful ART from regular, boring images.
#!/usr/bin/env python3
# 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
@Techman
Techman / gpg-import-and-export-instructions.md
Created August 13, 2016 03:47 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

#---------------------------------------------------------------------#
# TechJoose:SexDice v1.0a #
# #
# Rolls the sex dice on a random or chosen person #
# #
# Usage: #
# !sexdice [nick] #
# #
# ChangeLog: #
# 1.0a - First public alpha release #
var inputbox = $('#bufferInputView' + cb().bid());
var msg = inputbox.val();
inputbox.val("");
var cc = "\u0003";
var bold = "\u0002";
var reset = "\u000f";
var italic = "\u0016";
var underline = "\u001f";
cb().say(msg.replace(/&b/g,bold).replace(/&r/g,reset).replace(/&i/g,italic).replace(/&u/g,underline).replace(/&/g,cc));
"""
HE-2-4 Copyright (C) 2014 Liam Stanley
License: Eiffel Forum License, version 2
- https://links.ml/FFa1
Website: https://liamstanley.io
NOTE: THIS IS FOR KVM BASED SERVERS ONLY.
I'M NOT ADDING CUSTOM CHECKS TO SEE IF
YOU'RE USING KVM.
"""