Skip to content

Instantly share code, notes, and snippets.

View dmptrluke's full-sized avatar

Luke Rogers dmptrluke

View GitHub Profile
Step One - Browse to your .minecraft folder:
Open the minecraft launcher and click 'options'
Click the link to the .minecraft folder in the options menu
Step Two - Add the files to minecraft.jar
Open the 'bin' folder
Open 'minecraft.jar' with an archive program (WinRAR, 7Zip, Archive Manager)
Drag the files in the 'Add to minecraft.jar' folder into minecraft.jar
[inf]
Town Names By _frozen, tweaked by Lukeroge
[first]
City
Town
Township
Hamlet
[mid]
of
of
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 02:00:00:1a:5f:9b brd ff:ff:ff:ff:ff:ff
inet 178.33.68.195/24 scope global eth0
inet6 fe80::ff:fe1a:5f9b/64 scope link
valid_lft forever preferred_lft forever
# Code by Luke from CloudBot! (https://www.github.com/CloudBot/)
import urllib2
from django.utils import simplejson as json
from urllib import quote_plus
api_url = "http://www.fishbans.com/api/stats/%s/force/"
if len(args) == 1 and args[0] == "":
print "This factoid requires input."
user = args[0]
request = urllib2.urlopen(api_url % quote_plus(user)).read()
j = json.loads(request)
@dmptrluke
dmptrluke / gist:5903370
Created July 1, 2013 18:35
stick this at the end of mctools.py
@hook.command(autohelp=False)
def status(inp):
return mcping("hub.keinett.us")
import time
import logging
import config
class Bot(object):
def __init__(self, name):
# basic variables
self.name = name
self.start_time = time.time()
{
"connections":
[
{
"name": "esper",
"connection": {
"server": "irc.esper.net",
"port": 6667
"ssl": false,
"ignore_cert": true
DESCRIPTION
EON17-SLX
Details
Laptop Platform: EON17-SLX
The ORIGIN Difference: ORIGIN delivers the best gaming experience period. Exceptional performance, quality, service and support.
Display Type: 1920 x 1080 17.3" SLX FHD LED Backlit Matte Display
Keyboard and Touchpad: Customizable Backlit Keyboard and Touchpad w/ Three Lighting Zones and Seven Color options
Graphic Cards: Single 4GB NVIDIA GTX 780M
Processors: Intel Core i7 4800MQ Quad-Core 2.70GHz (3.70GHz TurboBoost), 6MB Cache
Memory: 16GB Corsair Vengeance 1600MHz (4 X 4GB)
@dmptrluke
dmptrluke / piglatin.py
Last active August 29, 2015 14:15
Pig Latin translator command for CloudBot
import string
import nltk
from cloudbot import hook
pronunciations = None
# Translate functions by J.F. Sebastian
# <https://stackoverflow.com/questions/22773826/pig-latin-translator>
### Keybase proof
I hereby claim:
* I am lukeroge on github.
* I am dmptr (https://keybase.io/dmptr) on keybase.
* I have a public key whose fingerprint is F771 3F1F 1333 B783 B032 173C 003A F34B D59B 1BFB
To claim this, I am signing this object: