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
private static class TreeNode | |
{ | |
//Customer information | |
int id; | |
String name; | |
TreeNode left; | |
TreeNode right; | |
//Our constructor takes the id and first and last name |
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
apt-get install aircrack-ng | |
apt-get install macchanger | |
ifconfig <interface> down | |
macchanger -s 00:00:13:37:00:00 <interface> | |
airmon-ng start <interface> | |
ifconfig <interface> up | |
airodump-ng <interface> | |
...let it populate | |
^c |
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
@echo off | |
cls | |
echo Python PIP | |
echo ---------- | |
cd C:\Python27\Lib\site-packages\pip\ | |
python __init__.py %1 | |
echo ---------- |
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 | |
#Get number of parameters | |
#if its 2 then continue | |
if [ "$#" -eq 2 ]; then | |
url="$1" | |
dir="$2" | |
mkdir -p $dir | |
domain="images.4chan.org" | |
user_agent="Mozilla" |
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
http://matt.might.net/articles/settling-into-unix/ | |
http://dotfiles.org/ | |
http://matt.might.net/articles/basic-unix/ | |
http://matt.might.net/articles/console-hacks-exploiting-frequency/ | |
http://matt.might.net/articles/how-to-read-and-create-microsoft-word-documents-excel-spreadsheets-powerpoint-presentations-without-microsoft-office/ |
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
#ZipFS | |
import zipfile | |
import os | |
class FileSystem: | |
def __init__(self,name="fs.zip"): | |
self.drive = name | |
self.apps = [] |
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
1. Open regedit | |
2. Navigate to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\" | |
3. Change IPEnableRouter to 1 | |
4. Run services->Routing and Remote->start | |
(reboot may be nessesary) |
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
from ctypes import * | |
from ctypes.wintypes import * | |
WNDPROCTYPE = WINFUNCTYPE(c_int, HWND, c_uint, WPARAM, LPARAM) | |
WS_EX_APPWINDOW = 0x40000 | |
WS_OVERLAPPEDWINDOW = 0xcf0000 | |
WS_CAPTION = 0xc00000 |
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 | |
app="load" | |
rm *.o | |
nasm -f elf $app.asm | |
gcc -o $app $app.o |
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
from optparse import OptionParser | |
def main(): | |
pass | |
if __name__ == "__main__": | |
usage = "Usage: %prog [Options] <params>" | |
desc = "Template" | |
parser = OptionParser(usage=usage,description=desc) |