Skip to content

Instantly share code, notes, and snippets.

@Jinz0
Jinz0 / GenericDao.java
Created November 14, 2012 22:45 — forked from adilold/GenericDao.java
Generic DAO using Java generics! :D
/**
* Establishes the DAO pattern for use with other classes.
* @author Adil <adil.h@me.com>
*
*/
public class GenericDao<T> {
@SuppressWarnings("unchecked")
@Jinz0
Jinz0 / ListenerFactory.cs
Created August 15, 2012 22:26
Vortex Listener Factory
#region Usings
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
#endregion
@Jinz0
Jinz0 / ragedb.sql
Created July 12, 2012 20:04
Basic user table for RaGESERVER
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.5.16 - MySQL Community Server (GPL)
-- Server OS: Win32
-- HeidiSQL version: 7.0.0.4053
-- Date/time: 2012-07-12 21:16:32
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
@Jinz0
Jinz0 / nginx_conf.conf
Created June 26, 2012 19:38
My very simple nginx config file
#user nobody;
worker_processes 3;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid logs/nginx.pid;
@Jinz0
Jinz0 / nanotool.sh
Created May 12, 2012 20:12
Bash script for creating a new rails environment
#!/bin/bash
#Nanotool is a lightweight tool for deploying rails apps.
if [ $# = 0 ]; then
echo "Nothing has been defined..."
else
if [ $1 = -deploy ]; then
package net.adil.thunderstorm.cryptography;
public class RC4
{
int i = 0;
int j = 0;
int tmp;
@Jinz0
Jinz0 / mgist.rb
Created March 26, 2012 20:55
my first attempt at a ruby class
=begin
MGIST file for handling gist uploads
@Author: Adil
=end
class Mgist
attr_accessor :author,:syntax,:filename,:type
@Jinz0
Jinz0 / tea-lib.cpp
Created March 2, 2012 15:09
tea-lib usb functions
#include <iostream>
#include <libusb.h>
using namespace std;
void printdevices(libusb_device *dev); //prototype of the function
int main()
{
libusb_device **devices; //point to devices
package com.jemu.habbo.messages;
import com.jemu.util.*;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
/*
Credits:
Crowley ~ ServrMessage.java
*/
public class ServerMessage {
@Jinz0
Jinz0 / PrivKeyGEN.cpp
Created January 10, 2012 21:30
Simple private key generator
#include <math.h>
#include <iostream>
#include <string>
#include <time.h>
#include <algorithm>
using namespace std;
void GenerateKey(){
int randkey;