Skip to content

Instantly share code, notes, and snippets.

View anchoo2kewl's full-sized avatar

Anshuman Biswas anchoo2kewl

View GitHub Profile
# Controller configuration
[[local|localrc]]
DEST=/opt/stack
SERVICE_TOKEN=passwordToken
ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
SERVICE_PASSWORD=password
DATABASE_PASSWORD=password
@anchoo2kewl
anchoo2kewl / JavaEnum
Created August 17, 2016 16:29
Enum in Java for Error codes with descriptions
public enum test {
A(-1, "Text 1"),
B(-2, "Text 2");
private final int code;
private final String description;
private test(int code, String description) {
this.code = code;
this.description = description;
@anchoo2kewl
anchoo2kewl / devstack_setup.txt
Created October 5, 2016 03:49
setting up openstack on my bluemix machine
###################################################
# This is for running devstack on Ubuntu 16.04
# as of September 9, 2016, (near the end of Newton)
###################################################
# This was tested using VMWare Fusion 8.1.1 on OSX, an alternative is VirtualBox
# Download VirtualBox latest 4.xx https://www.virtualbox.org/wiki/Download_Old_Builds_4_3
# Download Ubuntu 16.04 http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso
# Create a Ubuntu VM, 64 bit. Give it 4-6 GB RAM, 25-40 GB HD, 2-3 processors
# Boot up the VM, install ubuntu, use the default settings.
@anchoo2kewl
anchoo2kewl / mateAutoLogin
Created October 16, 2016 14:30
Allow a user to autologin on Ubuntu Mate (useful for RPI)
#Create the directory:
sudo mkdir /etc/systemd/system/[email protected]
#Create file:
sudo vim /etc/systemd/system/[email protected]/autologin.conf
#Insert:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin YOURUSERNAMEHERE --noclear %I 38400 linux