Skip to content

Instantly share code, notes, and snippets.

ws.OnMessage += (sender, e) =>
{
// Scarlet WS API
// Words = (Browser/Updater)|(IP/*)|(Command)|(Perameters)
string[] words = e.Data.Split('|');
if (words[0] == "Updater")
{
if (words[1] == IP || words[1] == "*")
{
if (words[2] == "browserConnect")
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network "private_network", ip: "192.168.33.21", type: "dhcp", auto_config: false
@sifex
sifex / lamp.sh
Last active October 27, 2021 14:57 — forked from aamnah/lamp.sh
Bash script to install Apache and PHP and some tweaks. For Debian and Ubuntu. To run, copy the script to the server and run ``bash lamp.sh``
#!/bin/sh
#######################################
# Bash script to install an AMP stack and PHPMyAdmin plus tweaks. For Debian based systems.
# Written by @AamnahAkram from http://aamnah.com
# In case of any errors (e.g. MySQL) just re-run the script. Nothing will be re-installed except for the packages with errors.
#######################################
#COLORS
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "trusty64"
config.vm.box_url = "https://vagrantcloud.com/ubuntu/boxes/trusty64/versions/14.04/providers/virtualbox.box"
config.vm.network :private_network, ip: "192.168.33.21"
<VirtualHost *:80>
ServerName www-dev.australianarmedforces.org
DocumentRoot /var/www/australianarmedforces.org
ServerAdmin chess2ryme@gmail.com
<Directory "/var/www/australianarmedforces.org">
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride All
sudo apt-get update
sudo apt-get install -y vim curl python-software-properties
sudo add-apt-repository -y ppa:ondrej/php5-5.6
sudo apt-get update
sudo apt-get install -y php5 apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-readline mysql-server-5.5 php5-mysql git-core php5-xdebug
cat << EOF | sudo tee -a /etc/php5/mods-available/xdebug.ini
<?php
namespace League\Flysystem\Adapter;
use ErrorException;
use League\Flysystem\Adapter\Polyfill\StreamedCopyTrait;
use League\Flysystem\AdapterInterface;
use League\Flysystem\Config;
use League\Flysystem\Util;
use League\Flysystem\Util\MimeType;
packages: [
"atom-beautify"
"autoclose-html"
"code-peek"
"color-picker"
"double-tag"
"emmet"
"file-icons"
"git-plus"
"git-time-machine"
packages: [
"atom-beautify"
"autoclose-html"
"code-peek"
"color-picker"
"double-tag"
"emmet"
"file-icons"
"git-plus"
"git-time-machine"

Development Night

Windows

Xamarin + Visual Studio + Android SDK

  • Go grab the installer from https://www.xamarin.com/download

    If you don't already have Visual studio installed make sure to grab the version of the installer with Visual Studio Bundled

    Just accept all the options when you install it for windows make sure you have the Android SDK (We'll be using API 23, which should be installed by default)