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
#command to spoof mac en1 address | |
sudo ifconfig en0 lladdr 00:e2:e3:e4:e5:e6 |
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
#!/usr/bin/ruby | |
puts 'hello mikey' |
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
% cat users.dupes | |
rocci | |
mikey | |
jamie | |
diana | |
rocci | |
glen | |
jesse | |
% ipython |
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 | |
# | |
# ReadFromFileWriteToArray.sh | |
# | |
# pass a file as a param to this command | |
declare -a listOfThings | |
i=0 | |
while read line ; do |
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
\ls *-jpg | awk '{print "mv", $1, $1".jpg"}' | |
\ls *-jpg | awk '{print "mv", $1, $1".jpg"}' | sh |
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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int i = 10; | |
cout << "i: " << i << endl; | |
cout << "i++: " << i++ << endl; |
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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int i = 10; | |
cout << "i: " << i << endl; | |
cout << "++i: " << ++i << endl; |
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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int TOTAL = 9; | |
for ( int i = 0 ; i < TOTAL ; i++ ) | |
{ | |
cout << "i: " << i << endl; |
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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int TOTAL = 9; | |
for ( int i = 0 ; i < TOTAL ; ++i ) | |
{ | |
cout << "i: " << i << endl; |
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
#!/usr/bin/env python | |
# | |
# SequentialNumGen.py | |
# | |
# accepts exactly two integers as arguments, | |
# and prints the range between them to terminal | |
from sys import exit | |
import optparse |
OlderNewer