Skip to content

Instantly share code, notes, and snippets.

@brettalton
brettalton / ssid-sniffer-scapy-python.py
Created Aug 7, 2020 — forked from securitytube/ssid-sniffer-scapy-python.py
WLAN SSID Sniffer in Python using Scapy
View ssid-sniffer-scapy-python.py
#!/usr/bin/env python
from __future__ import print_function
from scapy.all import *
ap_list = []
def PacketHandler(pkt):
if pkt.haslayer(Dot11):
@brettalton
brettalton / install_composer_using_mamp_and_php7.sh
Last active Oct 12, 2017 — forked from kkirsche/Install Composer to use MAMP's PHP.md
How to install Composer globally using MAMP's PHP
View install_composer_using_mamp_and_php7.sh
# 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
@brettalton
brettalton / fix formatting for Bootstrap v4 anchor display
Last active Sep 5, 2017 — forked from lkhedlund/bootstrap-pagination.php
Bootstrap v4-alpha6 Pagination for WordPress
View fix formatting for Bootstrap v4 anchor display
/*
* 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(
@brettalton
brettalton / install-composer.sh
Last active Feb 25, 2016 — forked from matthewspencer/install-composer.sh
Install Composer on Webfaction
View install-composer.sh
# 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