Skip to content

Instantly share code, notes, and snippets.

James JamesDaniel

View GitHub Profile
# Instructions on how to install virtual
# Confirmed this works on Linux Mint 18.1 Serena 64bit. Desktop environment Cinnamon. Ubuntu codename xenial.
# First uninstall any current versions of virtual box
sudo apt autoremove --purge virtualbox*
## check if removal was successful
dpkg -l virtualbox* | grep ^i
## if not successful uninstall/purge by name listed
sudo dpkg --purge virtualbox=5.0.40-dfsg-0ubuntu1.16.04.1
JamesDaniel /
Created Jan 14, 2017
usefull ubuntu commands used before
# if failure to detect wifi network in desktop.
sudo service network-manager restart

How to install mysql on ubuntu (which works)

first delete it in case a root password was previously created:

sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.5 mysql-client-core-5.5
sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get autoremove
sudo apt-get autoclean

then install it:

JamesDaniel / p4merge install
Last active Nov 8, 2017 — forked from AaronGhent/p4merge install
Installs p4merge on a linux based machine
View p4merge install
tar zxvf p4v.tgz
sudo cp -r p4v-* /usr/local/p4v/
sudo ln -s /usr/local/p4v/bin/p4merge /usr/local/bin/p4merge
// For spring-boot projects.
ClassLoader classLoader = getClass().getClassLoader();
File file = new File(classLoader.getResource("csv/predefined_countries.csv").getFile());
JamesDaniel / app.groovy
Last active Jun 24, 2017
View app.groovy
class ThisWillActuallyRun {
String home() {
return "Hello World!"
JamesDaniel /
Last active Jan 15, 2017
OS setup commands

Boot to terminal

Raspberry Pi 3

sudo raspi-config

ubuntu 16

Stops the ubuntu purple screen

JamesDaniel / file.rb
Last active Jan 10, 2017
node REST end point with ID
View file.rb
app.get('/user/:uid/files/*', function(req, res){
var uid = req.params.uid,
path = req.params[0] ? req.params[0] : 'index.html';
res.sendfile(path, {root: './public'});
View gist:39229859d5c3d6e0086ec6a5159d9862
mint 18 installations
Installation steps taken for this VM:
Install Curl:
sudo apt-get install curl
Install nodejs:
curl -sL | sudo -E bash -
sudo apt-get install -y nodejs
Install build tools for npm:
sudo apt-get install -y build-essential
You can’t perform that action at this time.