Skip to content

Instantly share code, notes, and snippets.

View winny-'s full-sized avatar
👋
***status goes here***

Winston (Winny) Weinert winny-

👋
***status goes here***
View GitHub Profile
@belak
belak / mc-query.php
Last active August 29, 2015 14:00
Minecraft Stats Query
<?php
// Settings
$hostname = "66.240.202.11";
$port = 25565;
// Based off of https://github.com/winny-/mcstat/blob/master/mcstat.php
// with updated reading of the key-value and username portions.
$sess_id = rand(1, 0xFFFFFFFF) & 0x0F0F0F0F;
@jedisct1
jedisct1 / a.com.txt
Created September 1, 2014 08:31
a.com
34+ million DNS queries for "a.com" (a domain that doesn't resolve to anything), sent to OpenDNS resolvers daily.
% sd -o a.com
344527633 ****************************************
342736136 ****************************************
343953188 ****************************************
344902752 *****************************************
345502874 *****************************************
351528210 *****************************************
@cabrinha
cabrinha / perl-build.sh
Created July 31, 2015 17:01
Let's build perl-5.22.0 from source!
wget -qO - https://raw.github.com/tokuhirom/Perl-Build/master/perl-build | perl - 5.22.0 ~/perl-5.22.0
echo export PATH="~/perl-5.22.0/bin:$PATH" >> ~/.bashrc; source ~/.bashrc
wget -qO - https://cpanmin.us | perl - App::cpanminus
@mikelikespie
mikelikespie / installation.sh
Created August 23, 2012 01:52
Launchctl for ipython notebook (and installation instructions)
# how to set up the virtualenv used in this
# First move org.lolrus.ipython-notebook.plist to ~/Library/LaunchAgents
NOTEBOOK_DIR=${HOME}/notebook
brew install zmq
which virtualenv > /dev/null || sudo easy_install virtualenv # easiest to install virtualenv this way if you dont have it
@hogelog
hogelog / ssh_invalid
Created July 12, 2013 03:28
Munin plugin for measure ssh invalid user
#!/bin/sh
# -*- sh -*-
: << =cut
=head1 NAME
ssh_invalid - Plugin to measure invalid ssh user.
=head1 AUTHOR
@keis
keis / coro.py
Created April 14, 2014 08:27
asyncio examples
import asyncio
@asyncio.coroutine
def waiting(r):
print("hello from waiting -", r)
yield from asyncio.sleep(2)
print("bye from waiting -", r)
return r
@Emiel45
Emiel45 / ping_mc_1_7.php
Last active March 3, 2018 18:16
Minecraft 1.7 server list pinged (hacked together in 20 minutes)
<?php
// Info used: http://wiki.vg/Server_List_Ping
// (Original varint parsing: https://gist.github.com/thinkofname/e975ddee04e9c87faf22)
// Reads a varint from the socket
function read_varint($socket) {
$i = 0; $j = 0;
while(true) {
socket_recv($socket, $buf, 1, null);
$k = ord($buf[0]);
@greghendershott
greghendershott / pkgs.md
Created November 11, 2015 20:05
Some interesting Racket packages

Sound and Vision

identikon

rsound

Testing and Coverage

rackunit-chk

@ei-grad
ei-grad / trinkup
Last active August 5, 2018 23:26
TRivial INcremental bacKUP script (MOVED TO REPOSITORY)
#!/bin/bash
#
# trinkup - TRivial INcremental bacKUP script
#
# Уж 200 раз твердили Сене:
# Хардлинк спасет от удаленья!
# А кто создать его поможет?
# Crontab и man, тупая рожа!
#
# (c) linux.org.ru, no-dashi
@pspeter3
pspeter3 / minecraft.xboxdrv
Created July 31, 2011 08:37
Use with xboxdrv -c minecraft.xboxdrv
# Supports the default controls in the way I thought was logical.
#
# A is jump
# B is sneak
# X is drop
# Y is chat
# Scroll with the DPAD
# RT is left click
# LT is right click
# Left joystick is WASD