Skip to content

Instantly share code, notes, and snippets.

Avatar
👋
***status goes here***

Winston (Winny) Weinert winny-

👋
***status goes here***
View GitHub Profile
@belak
belak / mc-query.php
Last active Aug 29, 2015
Minecraft Stats Query
View mc-query.php
<?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;
View a.com.txt
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 Jul 31, 2015
Let's build perl-5.22.0 from source!
View perl-build.sh
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 Aug 23, 2012
Launchctl for ipython notebook (and installation instructions)
View installation.sh
# 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 Jul 12, 2013
Munin plugin for measure ssh invalid user
View ssh_invalid
#!/bin/sh
# -*- sh -*-
: << =cut
=head1 NAME
ssh_invalid - Plugin to measure invalid ssh user.
=head1 AUTHOR
@keis
keis / coro.py
Created Apr 14, 2014
asyncio examples
View coro.py
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 Mar 3, 2018
Minecraft 1.7 server list pinged (hacked together in 20 minutes)
View ping_mc_1_7.php
<?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 Nov 11, 2015
Some interesting Racket packages
View pkgs.md

Sound and Vision

identikon

rsound

Testing and Coverage

rackunit-chk

@ei-grad
ei-grad / trinkup
Last active Aug 5, 2018
TRivial INcremental bacKUP script (MOVED TO REPOSITORY)
View trinkup
#!/bin/bash
#
# trinkup - TRivial INcremental bacKUP script
#
# Уж 200 раз твердили Сене:
# Хардлинк спасет от удаленья!
# А кто создать его поможет?
# Crontab и man, тупая рожа!
#
# (c) linux.org.ru, no-dashi
@pspeter3
pspeter3 / minecraft.xboxdrv
Created Jul 31, 2011
Use with xboxdrv -c minecraft.xboxdrv
View 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