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
archy-bold / set-access-point.sh
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
View set-access-point.sh
#!/bin/bash
# Usage: ./set-access-points.sh [network SSID] [network interface id = wlan0]
# Read in the arguements
ssid=$1;
interface=$2;
# SSID is required
if [ -z "$ssid" ]; then
View Php_ExcelWriter.php
<?php
class Php_ExcelWriter implements ExcelWriterInterface
{
protected $spreadsheet;
protected $writer;
protected $templateSheet = -1;
public function __construct()
{
@archy-bold
archy-bold / libxl-php-install.sh
Last active Feb 1, 2020
Install LibXL for PHP
View libxl-php-install.sh
#!/bin/sh
# Ensure we've got libxml2
apt-get update
apt-get install libxml2-dev
# Make /src directory, if required
mkdir /src
cd /src
@archy-bold
archy-bold / ExamplePassportTest.php
Last active May 17, 2019
Testing Passport Authenticated Controllers and Routes in Laravel
View ExamplePassportTest.php
<?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
archy-bold / create-slimvc.sh
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.
View create-slimvc.sh
#!/bin/bash
# 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.