Skip to content

Instantly share code, notes, and snippets.

@myano
myano / irc_games.md
Last active March 20, 2024 11:07
This is a list of games that are playable on IRC.

List of on-IRC games

AlphaChat

  • #multirpg

BakaShiMoe

@myano
myano / gist:5844270
Last active December 18, 2015 20:59

Rules for ##uno on freenode

  • No additional bots in the channel. Only ChanServ and jenni are allowed.
  • No automated scripts. (eg: No automatic /me's or messages when you go "away")
  • No personal insults.
  • No cheating.
  • Do not highlight nicks unless you are conversing with said person or persons.
  • Do not spam the channel with non-relevant commands to the current game.
  • Do not beg/insist the ops ban somebody.

My model for assessing trust with people.

  1. Random strangers
  2. Acquaintances
  3. Most friends that are more than acquaintances
  4. Close friends
  5. Only me
@sukharevd
sukharevd / wildfly-install.sh
Last active October 21, 2023 11:56
Script to install JBoss Wildfly 10.x as service in Linux
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final

Python 101

Introduction

Welcome to Python 101 at PyOhio 2013!

Python 2.x or Python 3.x?

@myano
myano / fake_data.py
Last active December 20, 2015 07:29
#!/usr/bin/env python
'''
This file contains fake data which may be useful in
demonstrating basic principles in Python.
'''
import random
colors = [
'red',

Recommended Firefox Addons

Updated: 2017-08-10 NO LONGER MAINTAINED

These are some addons I recommend for use in Firefox to make your browsing more secure and privacy-focused. The addons link titles that are in bold are what I consider to be "must-haves" and the ones without bolded title links should be considered optional.

The "easiness" ranking ranks the extensions on how "easy" it is to install and set up. It starts at 5 being the most easy and then decreases down to 1 in "easiness". 5 means you can use the addon without any configuring (it "just works" out of the box). 4 may require some configuring to enable some main features. 3 requires several options changed to utilize its features. 2 requires some technical knowledge on what the addon actually does and what implications come from changing various settings, these kind of addons might take some set up. 1 would take considerable knowledge on what a web browser does when a website is loaded in order to

@myano
myano / gist:7435249
Last active December 28, 2015 03:29

This demonstrates how different regular expression engines handle catastrophic expressions. Python's "re" module doesn't seem to have any type of backtracking timeout.

awk

awk 4.0.1

» awk --version
GNU Awk 4.0.1

» time echo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | awk '{ gsub("^(([a-z])+.)+A-Z+$", "test"); print}'

@myano
myano / goo.gl.py
Created November 13, 2013 21:05 — forked from ikks/goo.gl.py
#Given to the public domain
#No warranties
import urllib2
import simplejson
def shorturl(urltoshorten):
"""Compress the URL using goo.gl take a look at https://developers.google.com/url-shortener/v1/getting_started
>>> shorturl('http://igor.tamarapatino.org')
'http://goo.gl/FxHOn'
#!/usr/bin/env python
import sys
from PyQt4 import QtCore, QtGui, QtWebKit
from ui_mainwindow import Ui_MainWindow
class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
# Maintain the list of browser windows so that they do not get garbage
# collected.
_window_list = []