Skip to content

Instantly share code, notes, and snippets.

View iacchus's full-sized avatar

Iacchus Mercurius iacchus

View GitHub Profile
@LorbusChris
LorbusChris / MatrixIRC.md
Last active December 30, 2022 19:27
Matrix libera.chat IRC Bridge Setup

Matrix libera.chat IRC Bridge Setup

Change libera.chat IRC Nick

This is optional, in case you prefer your nick to be shown as something other than <matrix_nick>[m] on IRC, e.g. just <matrix_nick> (without the [m] suffix) or <libera_nick>.

Open a private chat with @appservice:libera.chat:

!nick <new_libera_nick>

Note: This does not change your Matrix nick!

@LukeSmithxyz
LukeSmithxyz / colors.muttrc
Created April 17, 2019 13:19
Mutt example colors
# vim: filetype=neomuttrc
# Default index colors:
color index yellow default '.*'
color index_author red default '.*'
color index_number blue default
color index_subject cyan default '.*'
# For new mail:
color index brightyellow black "~N"
color index_author brightred black "~N"
@Integralist
Integralist / .muttrc
Last active April 12, 2024 19:26
Mutt configuration and usage
# http://www.mutt.org/doc/manual/
# decrypt passwords
source "gpg -d ~/.mutt/passwords.gpg |"
# Change the following six lines to match your Gmail account details
set imap_user = "mark.mcdx@gmail.com"
set smtp_url = "smtp://mark.mcdx@gmail.com@smtp.gmail.com:587/"
set smtp_authenticators = "gssapi:login"
set from = "mark.mcdx@gmail.com"
@cschwede
cschwede / sample_ssh_server.py
Last active March 27, 2024 02:18
Sample paramiko SSH server to receive commands
#!/usr/bin/env python
import logging
import socket
import sys
import threading
import paramiko
logging.basicConfig()
logger = logging.getLogger()
@robbyrussell
robbyrussell / mary-had-a-little-lamb.rb
Created December 4, 2015 23:20
Playing around with SoX
#!env ruby
#
# brew install sox
#
def play(note, octave=1)
"play -q -n synth sq #{note}#{octave} remix - fade 0 .6 .1 norm; "
end
song_notes = %w(B A G A B B B A A A G D D B A G A B B B B A A B A G)
@IanHopkinson
IanHopkinson / lxml_examples.py
Created November 24, 2015 19:42
Examples of xpath queries using lxml in python
#!/usr/bin/env python
# encoding: utf-8
import lxml.etree
import lxml.html
import requests
xml_sample = """<?xml version="1.0" encoding="UTF-8"?>
<foo:Results xmlns:foo="http://www.foo.com" xmlns="http://www.bah.com">
<foo:Recordset setCount="2">
@eliasdorneles
eliasdorneles / play_notes.py
Last active May 14, 2020 01:55
Playing notes with sox
import subprocess
import time
def wait(seconds):
time.sleep(seconds)
def play_note(note='C', duration=4, delay=0):
# requires sox to be installed

Setting up a Persistent, Unified Chat Proxy & Shell Client

Overview

This guide provides a steps for setting up a unified shell chat proxy & client running in a persistent screen session. The following steps are covered:

  • Server operating system & packages will be updated.
  • Timezone will be updated.
@iacchus
iacchus / sandwich.md
Last active January 5, 2017 04:35
Things that i need to remember when making a sandwich

Sandwich

  • Bread (just in case)
  • Oregano
  • Garlic
  • Tomato
  • Olives
  • Olive oil
  • Chipotle
  • Onion
@pascalpoitras
pascalpoitras / config.md
Last active April 28, 2024 23:12
My WeeChat configuration

WeeChat Screenshot

Mouse


enable