Skip to content

Instantly share code, notes, and snippets.

@someguycrafting
someguycrafting / nexmon.sh
Last active May 19, 2022 06:27
Raspberry PI 3 / Zero Wi-Fi monitor mode setup
#!/bin/bash
# Thanks to all the nice folks @seemoo-lab for making this possible.
# See: https://github.com/seemoo-lab/nexmon
# This script should be run as root (i.e: sudo ./nexmon.sh) from the /home/pi/ directory!
function info {
tput bold;
tput setaf 3;
echo $1;
@someguycrafting
someguycrafting / app.js
Created November 6, 2014 12:57
Sample implementation of collapsable list view sections in Titanium (Common JS)
/*
* Sample implementation of collapsable list view sections in Titanium (Common JS)
* by Renato Costa (renato (dot) duino (at) gmail (dot) com)
*/
var indicatorOpened = '[-]';
var indicatorClosed = '[+]';
var exampleList;
//Simple window for demo purposes
@someguycrafting
someguycrafting / app.js
Last active March 15, 2017 16:28
Titanium ListView (CommonJS) with reponsive orientation changes layout
var countryData = [];
var countrySection;
var countryList;
var maxFetchRows = 20;
var currentListMarker = 0;
var testWin = Titanium.UI.createWindow({
top:20,