Skip to content

Instantly share code, notes, and snippets.

View lennysh's full-sized avatar
💭
I never Lose. I either Win or Learn.

Lenny Shirley lennysh

💭
I never Lose. I either Win or Learn.
View GitHub Profile
#!/bin/bash
# Script to install the virtual packages for Hyper-V in Debian
echo "Installing the needed packages..."
apt install hyperv-daemons
echo ""
echo "Making the needed changes to '/etc/initramfs-tools/modules' ..."
echo "" >> /etc/initramfs-tools/modules
#!/bin/bash
# Script to install ownCloud in Ubuntu
. /etc/lsb-release
#DISTRIB_ID=Ubuntu
#DISTRIB_RELEASE=12.04
#DISTRIB_CODENAME=precise
#DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
OS=$DISTRIB_ID
#!/bin/bash
# Script to install the virtual packages for Hyper-V in Ubuntu
. /etc/lsb-release
#DISTRIB_ID=Ubuntu
#DISTRIB_RELEASE=12.04
#DISTRIB_CODENAME=precise
#DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
OS=$DISTRIB_ID
#!/bin/bash
# Webmin Install
. /etc/lsb-release
#DISTRIB_ID=Ubuntu
#DISTRIB_RELEASE=12.04
#DISTRIB_CODENAME=precise
#DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
OS=$DISTRIB_ID
@lennysh
lennysh / main.cpp
Last active April 6, 2016 17:37
Vehicles Class (C++)
#include <iostream>
#include <iomanip> // will be used
using namespace std;
#define SIZE 3 // Number of Vehicles to store
class Vehicles{
private:
string vBrand[SIZE];
string vModel[SIZE];
@lennysh
lennysh / patch_pi_openhab_bluetooth.sh
Last active February 13, 2016 18:28 — forked from richbeales/patch_openhab_bluetooth.sh
BASH Script to Patch OpenHAB Bluetooth Binding For Raspbian
#!/bin/sh
# Patch OpenHAB Bluetooth Binding For Raspbian (by building the BlueCove GPL on the target machine)
#
# Description: Patches the bluetooth binding compiled for OpenHAB with the
# libraries needed to run on Raspbian. You should change the path to Java below
# in the JAVA_BIN environmental variable.
#
# PLACE THIS SCRIPT IN AN EMPTY DIRECTORY WITH THE OPENHAB BLUETOOTH BINDING!
#