This file contains hidden or 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 | |
sudo yum install -y gcc glibc-devel make ncurses-devel openssl-devel autoconf | |
curl -O https://raw.github.com/dreverri/kerl/master/kerl | |
chmod a+x kerl | |
KERL_CONFIGURE_OPTIONS="--enable-dynamic-ssl-libs" ./kerl build R13B04 r13b04 | |
./kerl install r13b04 |
This file contains hidden or 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 SocketServer | |
class Handler(SocketServer.BaseRequestHandler): | |
def handle(self): | |
data = self.request[0].strip() | |
print self.client_address[0], data | |
server = SocketServer.UDPServer(("0.0.0.0", 5140), Handler) |
This file contains hidden or 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
sudo apt-get install zlib1g-dev #ubuntu | |
git clone git://git.kernel.org/pub/scm/git/git.git | |
cd git | |
NO_EXPAT=yes NO_OPENSSL=yes NO_CURL=yes make -j4 prefix=~ | |
NO_EXPAT=yes NO_OPENSSL=yes NO_CURL=yes make -j4 prefix=~ install |
This file contains hidden or 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
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |
NewerOlder