Skip to content

Instantly share code, notes, and snippets.

Simon Archer archy-bold

Block or report user

Report or block archy-bold

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
archy-bold /
Last active Apr 15, 2019
Script to find the access points for the given network SSID and set the BSSID for that network to the MAC of the access point with the highest strength
# Usage: ./ [network SSID] [network interface id = wlan0]
# Read in the arguements
# SSID is required
if [ -z "$ssid" ]; then
View Php_ExcelWriter.php
class Php_ExcelWriter implements ExcelWriterInterface
protected $spreadsheet;
protected $writer;
protected $templateSheet = -1;
public function __construct()
archy-bold /
Last active Feb 1, 2020
Install LibXL for PHP
# Ensure we've got libxml2
apt-get update
apt-get install libxml2-dev
# Make /src directory, if required
mkdir /src
cd /src
archy-bold / ExamplePassportTest.php
Last active May 17, 2019
Testing Passport Authenticated Controllers and Routes in Laravel
View ExamplePassportTest.php
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ExamplePassportTest extends \PassportTestCase
use DatabaseTransactions;
View ionSticky.js
m.directive('ionSticky', ['$ionicPosition', '$compile', '$timeout', function ($ionicPosition, $compile, $timeout) {
return {
restrict: 'A',
require: '^$ionicScroll',
link: function ($scope, $element, $attr, $ionicScroll) {
var scroll = angular.element($ionicScroll.element);
var clone;
// creates the sticky clone and adds it to DOM
var createStickyClone = function ($element) {
clone = $element.clone().css({
archy-bold /
Last active Sep 16, 2015
Script to clone a SliMVC instance and do some basic setup, including changing project name and setting up the git repositry.
# Input the project details
echo "Enter the project name:"
read name
echo "Enter a description for the project:"
read description
You can’t perform that action at this time.