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 | |
from __future__ import print_function | |
from scapy.all import * | |
ap_list = [] | |
def PacketHandler(pkt): | |
if pkt.haslayer(Dot11): |
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
/* | |
* custom pagination with bootstrap .pagination class | |
* source: http://www.ordinarycoder.com/paginate_links-class-ul-li-bootstrap/ | |
*/ | |
function bootstrap_pagination( $echo = true ) { | |
global $wp_query; | |
$big = 999999999; // need an unlikely integer | |
$pages = paginate_links( array( |
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
# Tested with Mac OS X 10.11.2 El Capitan & MAMP 3.5 | |
# Jan 17, 2016 | |
# original gist: https://gist.github.com/kkirsche/5710272 | |
########################################### | |
# Composer & MAMP's installation of PHP 7 # | |
########################################### | |
echo "alias phpmamp='/Applications/MAMP/bin/php/php7.0.0/bin/php'" >> ~/.bash_profile | |
source ~/.bash_profile |
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
# Updated for Webfaction in December 2015 when PHP 5.4-5.6 are available and PHP 5.6 is the default 'php' executable | |
cd $HOME | |
curl -sS https://getcomposer.org/installer | php | |
echo -e "\n# Composer\nalias composer=\"php \$HOME/composer.phar\"" >> $HOME/.bash_profile | |
source $HOME/.bash_profile |