Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

Joseph viper25

🌴
On vacation
Block or report user

Report or block viper25

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Mounting VirtualBox shared folders on Ubuntu.md

Mounting VirtualBox shared folders on ubuntu-18.10-desktop-amd64

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on ubuntu-18.10-desktop-amd64

Steps:

  1. Open VirtualBox
  2. Right-click your VM, then click Settings
  3. Go to Shared Folders section
  4. Add a new shared folder
  5. On Add Share prompt, select the Folder Path in your host that you want to be accessible inside your VM.
View gist:9f529067681e1dc77a76372a9c71f6ff

Ubuntu 16.04

$ sudo apt-get update
$ sudo apt-get install ruby ruby-dev make gcc
$ sudo gem install jekyll bundler

see source

How to Start Jekyll

@viper25
viper25 / Openvpn.sh
Created Apr 22, 2017
Using OPENVPN on Ubuntu
View Openvpn.sh
sudo apt-get install openvpn
sudo openvpn --config /path/to/config.ovpn
@viper25
viper25 / Command Line Parser.java
Last active Apr 22, 2017
Java command line parser
View Command Line Parser.java
CommandLineParser parser = new BasicParser();
Options options = new Options();
options.addOption("b", "batch-size", true, "Set the batch size of Bulk mongo Import");
options.addOption("p", "JSONs path", true, "Set the path to JSONs");
options.addOption("c", "collection", true, "Set mongoDB collection to import JSONs to");
CommandLine line = parser.parse(options, args);
if (!line.hasOption("b") || !line.hasOption("p") || !line.hasOption("c")) {
HelpFormatter f = new HelpFormatter();
f.printHelp("Supported Commandline Arguments", options);
return;
You can’t perform that action at this time.