Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nilsding's full-sized avatar
🐾
fox paws

Georg Gadinger nilsding

🐾
fox paws
View GitHub Profile
@nilsding
nilsding / gist:9573182
Last active August 29, 2015 13:57
whois
nilsding@FurBSD:~ % whois microsoft.com
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
MICROSOFT.COM.ZZZZZZZZZZZZZZZZZZZZZZ.IS.A.GREAT.COMPANY.ITREBAL.COM
MICROSOFT.COM.ZZZZZZZZZZZZZZZZZZZ.GET.ONE.MILLION.DOLLARS.AT.WWW.UNIMUNDI.COM
@nilsding
nilsding / static_controller.rb
Last active August 29, 2015 14:00
Twoffein Sourcecode
# Copyright (c) 2014 Twoffein.com
# Do not copy or redistribute
class StaticController < ApplicationController
def index
end
def imprint
end
@nilsding
nilsding / tweetdeckemoji.js
Created June 15, 2014 08:54
Enable Emoji graphics on TweetDeck
// How to enable Emoji graphics on TweetDeck™
//
// right-click somewhere on TweetDeck™ and click on "Inspect Element"
// go to the JavaScript console
// copy and paste these four lines into the console:
window.TD.util.cleanOld = window.TD.util.clean;
window.TD.util.clean = function(e) {
return window.TD.emoji.parse(window.TD.util.cleanOld(e));
};
@nilsding
nilsding / checkapikey.cs
Created July 3, 2014 16:57
checks if a Twoffein3 API key is valid
using System;
using System.Text.RegularExpressions;
namespace Twoffein
{
class Helpers
{
public static bool checkApiKey (string apiKey)
{
Regex r = new Regex (@"^[A-GI-MP-RT-VX-Z]{3}\d{2}[A-GI-MP-RT-VX-Z]{7}\d{2}[A-GI-MP-RT-VX-Z]{2}$");
@nilsding
nilsding / fizzbuzz.rb
Created August 8, 2014 15:24
Schreibe ein Programm, das die Zahlen von 12 bis 144 ausgibt, wobei alle durch 3 teilbaren Zahlen durch „Fizz“, alle durch 5 teilbaren Zahlen durch „Buzz“ und alle sowohl durch 3 als auch durch 5 teilbaren Zahlen durch „FizzBuzz“ ersetzt werden.
#!/usr/bin/env ruby
def fizzbuzz number
if number % 3 == 0 and number % 5 == 0
"FizzBuzz"
elsif number % 3 == 0
"Fizz"
elsif number % 5 == 0
"Buzz"
else
import java.awt.Color;
import java.awt.Component;
import javax.swing.JList;
import javax.swing.ListCellRenderer;
import javax.swing.border.LineBorder;
/**
*
* @author nilsding
@nilsding
nilsding / issues_exporter.rb
Created April 4, 2015 00:37
export issues for a GitHub repo
#!/usr/bin/env ruby
#
# Usage:
# ruby issues_exporter.rb > exported_repo.yml
# Settings:
user = 'retrospring'
repo = 'bugs'
username = 'your-oauth-token-here' # see https://github.com/settings/applications#personal-access-tokens
@nilsding
nilsding / random_cardcast.rb
Last active August 29, 2015 14:21
random_cardcast -- A Twittbot (https://github.com/nilsding/twittbot) botpart which tweets random cards from a Cardcast pack.
# random_cardcast.rb
# (c) 2015 nilsding
# License: MIT (http://opensource.org/licenses/MIT)
#
# echo "gem 'httparty'" >> ../Gemfile && bundle install
require 'httparty'
require 'json'
Twittbot::BotPart.new :random_cardcast do
@nilsding
nilsding / wasps.css
Created August 8, 2015 17:29
Oh no! The wasps have invaded Retrospring! Quick, smile at answers to wave them away!
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("retrospring.net") {
@keyframes wasp{
0%{margin-left:0px}
20%{ margin-left:100px; transform:scale(1.0)rotate(90deg); }
40%{ margin-left:100px; margin-top:100px; transform:scale(1.0) rotate(20deg); }
60%{ margin-top:100px }
100%{ }
--- src/arch/ArchHooks/ArchHooks.h.orig
+++ src/arch/ArchHooks/ArchHooks.h
@@ -1,6 +1,8 @@
#ifndef ARCH_HOOKS_H
#define ARCH_HOOKS_H
+#include <ctime>
+
struct lua_State;
class ArchHooks