Skip to content

Instantly share code, notes, and snippets.

@vhajdari
vhajdari / mpaa_ratings_sample.csv
Created November 11, 2019 03:36
CSV file with sample of movies and MPAA rating
Film Year MPAA_Rating Violence Sex Language Drugs
28 Days Later... 2002 R True False True False
American Pie 1999 R False True True False
Babe 1995 G False False False False
Crash 1996 NC-17 True True True False
Death at a Funeral 2007 R False False True True
Ender's Game 2013 PG-13 True False False False
Finding Nemo 2003 G False False False False
Gangs of New York 2002 R True True True False
Harry Potter and the Chamber of Secrets 2002 PG True False True False
@vhajdari
vhajdari / lxdui-install.sh
Last active March 22, 2019 19:45
lxdui installer
#!/bin/bash
# LXDUI Installer
GITREPO=https://github.com/AdaptiveScale/lxdui.git
APP=lxdui
# Check if the OS is ubuntu 14, 16, or 18.
# Exit with an error message if not!
prerequisites(){
@vhajdari
vhajdari / golang_stuff.txt
Last active July 11, 2017 22:03
Go lang stuff
A simple, fast, and fun package for building command line apps in Go
--> https://github.com/urfave/cli
Writing Web Applications
--> https://golang.org/doc/articles/wiki/
Building a simple web app in Go Dart and Angular 2
--> http://www.sanarias.com/blog/615BuildingasimplewebappinGoDartandAngular2
golang to JDBC bridge
How to restore forgotten password: http://www.raspberrypi-spy.co.uk/2014/08/how-to-reset-a-forgotten-raspberry-pi-password/
-- add init=/bin/sh to `cmdline.txt`
-- `mount -rw -o remount /`
-- `passwd pi`
-- `sync`
-- `exec /sbin/init`
OpenVPN on RPi with PiVPN (http://www.pivpn.io/)
-- Run `curl -L https://install.pivpn.io | bash` and follow along
-> http://kamilslab.com/2017/01/22/how-to-turn-your-raspberry-pi-into-a-home-vpn-server-using-pivpn/
Install and setup OpenVPN
apt-get update; apt-get install openvpn easy-rsa
gunzip -c /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz /etc/openvpn/server.conf
nano /etc/openvpn/server.conf
replace dh1024.pem with dh2048.pem
#uncomment-start