Skip to content

Instantly share code, notes, and snippets.

def input_type(jenni, input):
jenni.say(str(type(input)))
input_type.commands = ['input_type']
@myano
myano / irc_games.md
Last active March 24, 2025 00:45
This is a list of games that are playable on IRC.

List of on-IRC games

AlphaChat

  • #multirpg

BakaShiMoe

#!/usr/bin/env zsh
cd /home/yano/dev/adblockplus
wget https://adversity.googlecode.com/hg/Antisocial.txt -O Antisocial.txt
wget https://adversity.googlecode.com/hg/Adversity.txt -O Adversity.txt
wget https://easylist-downloads.adblockplus.org/easylist.txt -O easylist.txt
wget https://indonesianadblockrules.googlecode.com/hg/subscriptions/abpindo.txt -O abpindo.txt
wget https://easylist-downloads.adblockplus.org/easyprivacy.txt -O easyprivacy.txt
wget --no-check-certificate https://secure.fanboy.co.nz/fanboy-adblock.txt -O fanboy-adblock.txt
@myano
myano / gitio.md
Last active December 16, 2015 23:39

Create git.io Short URLs in Python

git.io is an awesome URL shortener provided by Github. It works when shortening URLs from *.github.com/* to a small https://git.io/ link.

requests

>>> import requests
MEETING NOTICE
==============
Central Ohio Linux Users Group
Date: Wednesday, May 15 2013 from 7 PM to 9 PM local
Meeting Presentation
==============
Red Hat's Arthur Enright will present Red Hat Cloud Forms.
Arthur will discuss how Open Source has been the primary driver in
@myano
myano / java.py
Created April 29, 2013 03:05
jenni module that pokes fun at Java
def java_exploit(jenni, input):
'''.javaexploit -- Show how long it has been since the last Java exploit'''
page = web.get('http://java-0day.com/')
matches = re.search('new Date\("(.*?)"\)', page)
t = matches.groups()
page2 = web.get('http://istherejava0day.com/')
matches2 = re.search('<a id="answer">\n(.*)', page2)
u = matches2.groups()
if t and u:
@myano
myano / money.md
Last active December 16, 2015 17:39

Disclaimer

I take no responsibility in the reliably nor the legitimacy of any of the following websites. I am just listing what is available on the websites listed as headers.

Contribute

You can contribute to this gist by forking it and making modifications and then posting in the comment section about it and I can merge the changes into this gist while preserving the history. Details on how to do this, https://gist.github.com/myano/5315439

#!/bin/bash
IPTABLES_TARGET="DROP"
IPTABLES_CHAINNAME="TOR"
WORKING_DIR="/tmp/"
# get IP address of eth0 network interface
IP_ADDRESS=$(ifconfig eth0 | awk '/inet addr/ {split ($2,A,":"); print A[2]}')
#!/usr/bin/env python
f = open('test.py', 'w')
f.write('Nothing to see here, move along now.')
f.close()