Skip to content

Instantly share code, notes, and snippets.

View charliewilson's full-sized avatar

Charlie Wilson charliewilson

View GitHub Profile
@charliewilson
charliewilson / wsl2-ubuntu-lamp.md
Created January 4, 2022 10:37 — forked from abobija/wsl2-ubuntu-lamp.md
LAMP stack on WSL2 (Ubuntu 20.04) - Apache, MySQL, PHP, PhpMyAdmin

LAMP stack on WSL2 (Ubuntu 20.04) - Apache, MySQL, PHP, PhpMyAdmin

Apache

sudo apt-get update && sudo apt-get upgrade 
sudo apt-get install -y apache2

PHP

Keybase proof

I hereby claim:

  • I am charliewilson on github.
  • I am charliewilson (https://keybase.io/charliewilson) on keybase.
  • I have a public key ASC9d3gd2EpAKdiJtz2YSyCGWpCgBYaWHEc1nc6J9VcssAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am charliewilson on github.
  • I am charliewilson (https://keybase.io/charliewilson) on keybase.
  • I have a public key ASD9vzokyB-B2b0lOrflj8rSDy0kANdhoXtOdSfDy_jtkgo

To claim this, I am signing this object:

@charliewilson
charliewilson / spongememe.php
Last active March 3, 2019 14:22
Mocking Spongebob Meme Generator
<?php
if ($_POST['intext']!="") {
$instring = htmlentities($_POST['intext']);
} else {
$instring = "Type your text here.";
}
$firstpass = str_split($instring);
$outstring = "";
@charliewilson
charliewilson / jquery.mustache.js
Created April 17, 2012 18:27
A tiny jQuery plugin used in conjunction with mustache.js to interpret mustache code at runtime on specific elements.
// Usage:
//
// $("body").mustache(view);
//
// where 'view' is a mustache view object.
(function( $ ){
$.fn.mustache = function(viewobj) {
@charliewilson
charliewilson / kickpushlib.php
Created October 28, 2011 16:55
kickpushlib - A PHP library for the KickPush JSON API
<?
//kickpushlib version 1.0.1
//A PHP library for the KickPush JSON API
//by Charlie Wilson
//Gets spot data from it's ID
function kp_SpotByID($id)
{
//Reads the response from the JSON API