Skip to content

Instantly share code, notes, and snippets.

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