This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ***************************************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# -*- sh -*- | |
: << =cut | |
=head1 NAME | |
ssh_invalid - Plugin to measure invalid ssh user. | |
=head1 AUTHOR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
@asyncio.coroutine | |
def waiting(r): | |
print("hello from waiting -", r) | |
yield from asyncio.sleep(2) | |
print("bye from waiting -", r) | |
return r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# trinkup - TRivial INcremental bacKUP script | |
# | |
# Уж 200 раз твердили Сене: | |
# Хардлинк спасет от удаленья! | |
# А кто создать его поможет? | |
# Crontab и man, тупая рожа! | |
# | |
# (c) linux.org.ru, no-dashi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
OlderNewer