Skip to content

Instantly share code, notes, and snippets.

View AwwCookies's full-sized avatar
🏠
Working from home

AwwCookies AwwCookies

🏠
Working from home
View GitHub Profile
@AwwCookies
AwwCookies / seen.py
Last active December 20, 2015 07:29
This is a XChat/HexChat plugin. Seen database made with sqlite3 and python basic use: /seen <nick>
# THIS IS A XChat/HexChat PLUGIN #
# MAKE SURE TO NEVER LOAD MORE THAN ONE COPY #
##########################################
__module_author__ = 'Aww'
__module_name__ = 'Seen Database'
__module_version__ = '1.2.0'
__module_description__ = 'Seen Database made with sqlite3 and Python'
##########################################
import sqlite3, xchat, datetime, os, sys
class Seen:
@AwwCookies
AwwCookies / openweather.pl
Created August 4, 2013 13:42
"Soon" to be perl module for the openweather API
#!/usr/bin/perl -w
use strict;
use 5.018;
use LWP::Simple;
use JSON::PP;
my $api_url = 'http://api.openweathermap.org/data/2.5/weather?q=';
my $qurey = 'San Diego, CA';
my $json = JSON::PP->new();
@AwwCookies
AwwCookies / spotify.pl
Created August 4, 2013 22:47
Gives XChat/Hexchat access to spotify controls via DBus
#!/usr/bin/perl -w
use strict;
use 5.018;
use Net::DBus;
use Xchat qw(:all);
register('Spotify','0.0.1', 'Gives XChat/Hexchat access to spotify controls via DBus');
my $bus = Net::DBus->session;
my $spotify = $bus->get_service("com.spotify.qt")->
get_object("/org/mpris/MediaPlayer2", "org.mpris.MediaPlayer2.Player");
#!/usr/bin/perl -w
use 5.018;
use strict;
use JSON;
use String::IRC;
use constant true => 1;
use constant false => 0;
Xchat::register('Remind', '0.0.1', 'Reminds you about stuff.');
@AwwCookies
AwwCookies / reap.pl
Last active December 21, 2015 05:08
Download all files on a website perl script
#!/usr/bin/perl -w
use strict;
use Getopt::Std;
use HTML::Entities;
my @download_files = ();
my $error_log = '';
my %opts;
my @extensions;
@AwwCookies
AwwCookies / gizoogle.py
Created April 5, 2014 19:26
Translate your words into gangsta: http://www.gizoogle.net/
"""
Example:
import gizoogle
print(gizoogle.translate('Hey, How are you?'))
# Will print 'Yo, how tha fuck is yo slick ass?'
"""
from BeautifulSoup import BeautifulSoup
import requests
import json
URL = 'http://www.gizoogle.net/textilizer.php'
@AwwCookies
AwwCookies / hunting.py
Last active August 29, 2015 14:10
Hunting is a clone of Flashy's bloodsports (http://digdilem.org/) hunting.pl
#!/usr/bin/env python
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# *This is a Peppermint plugin.* #
# Author: Emma Jones (AwwCookies) #
# Last Update: Nov 29th 2014 #
# Version: 1.1 #
# Desc: hunting.py: Hunting is a clone of Flashy's bloodsports #
# (http://digdilem.org/) hunting.pl # # #
# Commands: ~hunt, ~fish, ~trophies # #
#!/usr/bin/env ruby
require "json"
require "./plugins/ruby/peppermint.rb"
data, config = Peppermint.get_dc(ARGV)
hosts = Peppermint.load("op")
# Admin Host
Aww = ["[email protected]", "[email protected]"]
import xchat
import os
__module_author__ = 'Lunatrius'
__module_name__ = 'HighlightLog'
__module_version__ = '0.1'
__module_description__ = 'Logs highlights to a window, per-server basis.'
def catch_highlight(word, word_eol, userdata):
@AwwCookies
AwwCookies / name2nick.py
Last active August 29, 2015 14:18
A hexchat plugin that puts the persons real name [if known] next to their nick
import hexchat
import json
import os
__module_author__ = 'Aww'
__module_name__ = 'Nick to name'
__module_version__ = '1.0'
__module_description__ = 'Puts the persons real name [if known] next to their nick'
# SETTINGS