Skip to content

Instantly share code, notes, and snippets.

View Kilobyte22's full-sized avatar

Stephan Henrichs Kilobyte22

View GitHub Profile
user:
someone: NOPE
group:
somegroup: YOU GUYS ALL SUCK
#default: uncomment this to set a default message
=begin
Script to upload screenshots one a press of a button
warning: for this script you need the 'ruby-dbus' gem, also, this will most likely never work on Windows or OSX. Its written for linux after all. By default it utilizes KDE tools. i'll happily add more if requested.
LICENSE: GPL
=end
CFGNAME = "#{Dir.home}/.uploadscreenshot.yml"
require 'dbus'
jakimfett | (I do admit, the first time I plugged my Microsoft keyboard into my Mac which is running linux, I sorta expected *something* to esplode horribly)
@Kilobyte22
Kilobyte22 / tinychat.rb
Last active December 25, 2015 19:09
My Tinychat weechat script
def weechat_init
Weechat.register('tinychat', 'Kilobyte', '1.0', 'GPL3', 'Adds small chat windows for channels. Intended mainly ad widget for small split screen windows', 'gtfo', '')
Weechat.hook_command("tinychat", "manages tinychat windows", "[make] || [setmainwindow]", '', "make %(irc_channels)", "cmd_tinychat", '')
Weechat.hook_print("", "", "", 0, "hook_print", "")
Weechat::WEECHAT_RC_OK
end
def gtfo
#!/bin/bash
# Preparation:
# create folder addbuildfiles. put your recources (like mcmod.info, images) here
# create folder out. Heres your build output
# create file VERSION. put version here. replace dots with spaces. This version number is 3 parts big (like 1 2 3 (which is 1.2.3), not 1 2 3 4 or 1 2)
# done.
MODNAME="<put your mod name here>"
echo "Reading version file..."
/*
Note that i am quite a groovy noob (this is pretty much my first project). So don't be harsh with me :) tell me what i can improve instead
*/
class Server {
private ServerSocket server;
String tarip;
int tarport;
def Server(int port, String tarip, int tarport) {