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
//Disable Timer | |
sv_cheats 1 | |
mp_tournament 1 | |
mp_tournament_restart | |
con_timestamp 0 | |
//Mimic real network latency | |
net_fakelag 25 | |
//Binds |
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 asyncio | |
class Echo(asyncio.Protocol): | |
def connection_made(self, transport): | |
print('connection made') | |
self.transport = transport | |
def connection_lost(self, exc): | |
print('connection lost:', exc) |
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 threading | |
import Queue | |
import time | |
# Thread manager | |
class ThreadPool(): | |
def __init__(self): | |
self.threads = [] | |
self.tasks = Queue.Queue(10) |
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/bash | |
IPTABLES=/sbin/iptables | |
LOG_LEVEL="notice" | |
# Flush Existing Rules | |
echo 'Flushing current ruleset...' | |
$IPTABLES -F | |
$IPTABLES -F INPUT |
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
#!/usr/bin/python | |
import os, sys | |
from django import urls | |
class MyClass(os.windows): | |
aVar = 'chicken' | |
__init__(self): | |
aVar = None |
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
#!/usr/bin/python | |
import random | |
def genId(length=10, charset="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"): | |
output = "" | |
for i in range(length): | |
output += random.choice(charset) |
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
var hov=false;setInterval(function(){if(hov){ $('#bigCookie').click();}}, 1);var cookieDiv=document.getElementById('bigCookie');cookieDiv.addEventListener('mouseenter',function(){hov = true});cookieDiv.addEventListener('mouseleave',function(){hov = false}); |
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
h1{ | |
background:-moz-linear-gradient(top, #f0f0f0 0%, #d4d4d4 100%); | |
font-family:Helvetica; | |
color:#303030; | |
text-shadow:0 1px 0 white; | |
width:300px; | |
margin-top:20px; | |
margin-left:-20px; | |
position:relative; |
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
Presentation 1 - Basic Unix Commands and Concepts | |
Cover | |
How to find help (man pages) | |
Navigation | |
pwd, ls, cd | |
File system structure | |
File creation / deletion | |
rm, rmdir, mkdir, touch | |
File viewing | |
cat, more/less, head/tail, column |