Skip to content

Instantly share code, notes, and snippets.

View jamesdube's full-sized avatar
🛰️
To the moon

James Dube jamesdube

🛰️
To the moon
View GitHub Profile
@jamesdube
jamesdube / coreos-virtualbox.md
Created June 25, 2018 10:45 — forked from noonat/coreos-virtualbox.md
Installing CoreOS on VirtualBox
  • Download and install VirtualBox.
  • Download the CoreOS ISO
  • Create a new VM in VirtualBox
    • For the OS, Other Linux, 64-bit should be fine
    • Give the VM 1gb of memory, like your physical hardware has.
    • Create a disk of whatever size you want. I made a VMDK file that could expand dynamically up to 8gb.
  • Mount the ISO in the VM
    • Right click on the VM and click settings
  • Go to the storage tab
@jamesdube
jamesdube / README.md
Created August 5, 2018 16:25 — forked from manics/README.md
Setup a single node Kubernetes cluster for development using kubeadm

kubeadm cloudinit

Setup a single node Kubernetes cluster for development using kubeadm: https://kubernetes.io/docs/setup/independent/install-kubeadm/

Create a CentOS 7 or Ubuntu Xenial (16.04) machine, and run kubeadm.sh as root.

You can pass this script as user-data to cloud-init so that it will be automatically run. For example, on openstack:

openstack server create NAME --flavor FLAVOR --key-name KEY --image 'Ubuntu Xenial' --network NET --security-group SECGROUP --user-data kubeadm.sh

@jamesdube
jamesdube / vmmon-fix.sh
Created September 18, 2018 08:15
VMware vmmon module fix
#!/bin/bash
sudo vmware-modconfig --console --install-all
echo "signing vmmon module"
sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon)
echo "signing vmnet module"
sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)
echo "importing MOK cert"
@jamesdube
jamesdube / git nah
Created September 26, 2018 12:38 — forked from benjcal/git nah
alias nah="git reset --hard && git clean -df"
@jamesdube
jamesdube / .bash_aliases
Created September 26, 2018 12:38 — forked from neoighodaro/.bash_aliases
Bash Aliases
# PHP
alias artisan="php artisan"
alias art="php artisan"
# Git
alias gc="git commit"
alias ga="git add"
alias gr="git rm"
alias gp="git push"
alias gs="git status"
@jamesdube
jamesdube / example .travis.yml
Created October 9, 2018 10:26 — forked from jay-johnson/example .travis.yml
example .travis.yml
sudo: required
language: ruby
services:
- docker
before_install:
- echo "Testing Docker Hub credentials"
- docker login -e=$DOCKER_EMAIL -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD
http://cronus.allowed.org works for me, 2018.1.6
@jamesdube
jamesdube / .gitconfig
Created November 13, 2018 13:32
Seperate git profiles for work and personal projects
[includeIf "gitdir:~/workspace/work/"]
path = .gitconfig-work
[includeIf "gitdir:~/workspace/personal/"]
path = .gitconfig-personal
private <T> T factory(Class<T> clazz ){
try {
return clazz.newInstance();
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
}
gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true