Skip to content

Instantly share code, notes, and snippets.

@g0ld3lux
g0ld3lux / installation.md
Created March 23, 2017 11:38
Kubernetes on Windows 10 Set Up

Kubernetes On Windows

Early in August 2016 Microsoft released the Windows 10 Anniversary Update. There were a number of changes, but the one that got me to actually take the time to install the update was "Bash on Ubuntu on Windows". This feature would install Ubuntu Linux without the kernel. It would run linux in user-mode. Linux would run the commands while Windows does all the work/processing.

For an upcoming project I needed to get Kubernetes running. Being as Kubernetes is not able to be run in Windows the normally accepted way to procees is to create a virtual Linux box and run it from there. I wanted to see if Kubernetes would run in Bash on Ubuntu on Windows.

This is how I got it to work:

Install the Windows 10 Anniversary Update

@g0ld3lux
g0ld3lux / App.Http.Controllers.HomeController.php
Last active December 13, 2019 14:36
Setting up vue material + laravel 5.4
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* Create a new controller instance.
@g0ld3lux
g0ld3lux / ReadME.md
Last active April 23, 2019 16:01
ZSH + Vim Production in Digital Ocean - Running With Docker

Note: change all instance of my name with yours... :)

Requirement: Windows 10 Windows WSL WSL Mintty Digital Ocean Account

Note if you are not using windows, you dont need the vim config for windows ....

@g0ld3lux
g0ld3lux / docker-compose.yml
Created November 27, 2016 07:37
Scaling Out Laravel with Docker
haproxy:
image: interaction/haproxy:master
links:
- letsencrypt
- web
ports:
- "80:80"
- "443:443"
volumes_from:
- letsencrypt
@g0ld3lux
g0ld3lux / .minttyrc
Last active January 8, 2024 01:45
WSL Laravel Dev Machine
Font=DejaVuSansMonoForPowerline NF
BoldAsFont=no
FontHeight=12
FontWeight=400
FontSmoothing=full
Locale=C
Charset=UTF-8
Term=xterm-256color
ForegroundColour=248,248,242
BackgroundColour=40,42,54
@g0ld3lux
g0ld3lux / git-aliases.md
Created November 14, 2016 08:57 — forked from mwhite/git-aliases.md
The Ultimate Git Alias Setup

The Ultimate Git Alias Setup

If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.

Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.

The simplest way to add an alias for a specific git command is to use a standard bash alias.

# .bashrc
@g0ld3lux
g0ld3lux / Install Docker.md
Created October 2, 2016 13:13 — forked from jsonfry/Install Docker.md
Docker Help

Install Docker

  1. Install Docker For Mac if you haven't already

  2. Start the Docker For Mac App

  3. Open a Terminal window - (iTerm2 is nicer than Mac's built in one)

  4. Login to Docker Hub if you haven't already. You'll need to create an account on their website if you don't already have one.

@g0ld3lux
g0ld3lux / domain.io.txt
Last active September 26, 2016 05:26 — forked from jeremyvaught/domain.io.txt
Laravel Forge wildcard domain with ssl
#/etc/nginx/sites-available/domain.io
server {
listen 80;
server_name domain.io *.domain.io;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name *.domain.io;
#!/usr/bin/env bash
while getopts ":s:" opt; do
case $opt in
s)
webserver_container=$OPTARG
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
@g0ld3lux
g0ld3lux / fix-wordpress-permissions.sh
Created September 17, 2016 13:10 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory