Skip to content

Instantly share code, notes, and snippets.

View ayunami2000's full-sized avatar
👌
No u

ayunami2000

👌
No u
View GitHub Profile
@caleywoods
caleywoods / tatoo.bat
Created June 29, 2011 15:09
Sets IE settings for Siebel CRM
@ECHO OFF
REM IE Configuration for INKS (Siebel)
REM december 3rd, 2010 v1
REM Most of this information can be found here http://support.microsoft.com/kb/182569
REM The IE settings are stored in HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones path
REM the folders named 0-4 indicate security zones, they are as follows:
@UniIsland
UniIsland / SimpleHTTPServerWithUpload.py
Created August 14, 2012 04:01
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@shmert
shmert / ASCII.java
Created October 9, 2012 14:31
Convert images to ASCII text
package ascii;
import javax.imageio.ImageIO;
import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
/*Copyright (c) 2011 Aravind Rao
@iwek
iwek / typo.js
Created November 20, 2012 22:20
Typo Generator in JavaScript
function getTypos(str) {
//http://stackoverflow.com/questions/1431094/how-do-i-replace-a-character-at-a-particular-index-in-javascript
String.prototype.replaceAt=function(index, char) {
return this.substr(0, index) + char + this.substr(index+char.length);
}
//define proximity arrays
var array_prox = [];
@andrewrk
andrewrk / test.js
Created January 1, 2013 08:02
how to generate minecraft hex digests
var crypto = require('crypto');
var assert = require('assert');
function mcHexDigest(str) {
var hash = new Buffer(crypto.createHash('sha1').update(str).digest(), 'binary');
// check for negative hashes
var negative = hash.readInt8(0) < 0;
if (negative) performTwosCompliment(hash);
var digest = hash.toString('hex');
// trim leading zeroes
@MOZGIII
MOZGIII / mcpinger
Last active June 17, 2023 22:14
Minecraft Server Pinger for server hang detection written on Bash
#!/bin/bash
# Minecraft Server Pinger
#
# If the server is pining successfully exits with 1,
# else (if server hangs) exits with 0.
HOST=$1
PORT=$2
if [[ "x$HOST" == "x" || "x$PORT" == "x" ]]; then
@MichaelBeeu
MichaelBeeu / EndianDataInputStream.java
Created September 12, 2013 23:19
Simple class to add endian support to DataInputStream.
package github.MichaelBeeu.util;
import java.io.DataInput;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
/**
@nucular
nucular / omegle.md
Last active June 4, 2024 14:33
Omegle protocol reverse-engineering

Let's reverse-engineer Omegle. PROPERLY!

I could not find a proper, detailed (and up-to-date) reverse-engineerment of Omegle's text chat protocol on the internet, so here, have one made by analyzing the web app (web requests and source code).
The responses are beautified and the query strings split up and URI-decoded for readability.
Note that "query string" refers to parameters encoded into the URL and "form data" to parameters in the POST body which do not have to be URI-encoded.

TODO:

@adamjakab
adamjakab / l2chroot.sh
Last active February 6, 2024 21:34
Chroot - copy binaries and their shared dynamic libraries to chrooted envirnoment
#!/bin/bash
# Use this script to copy shared (libs) files to Apache/Lighttpd chrooted
# jail server.
# ----------------------------------------------------------------------------
# Written by nixCraft <http://www.cyberciti.biz/tips/>
# (c) 2006 nixCraft under GNU GPL v2.0+
# + Added ld-linux support
# + Added error checking support
# ------------------------------------------------------------------------------
# See url for usage:
@talwai
talwai / servefile.sh
Created January 23, 2015 19:57
One-shot HTTP webserver to serve file contents using netcat
{ echo -ne "HTTP/1.0 200 OK\r\nContent-Length: $(wc -c <some.file)\r\n\r\n"; cat some.file; } | nc -l 8080