Skip to content

Instantly share code, notes, and snippets.

View laurenorsini's full-sized avatar

Lauren Orsini laurenorsini

View GitHub Profile
@laurenorsini
laurenorsini / MakeOpenVPN.sh
Last active September 14, 2023 19:58
MakeOpenVPN.sh by Eric Jodoin
#!/bin/bash
# Default Variable Declarations
DEFAULT="Default.txt"
FILEEXT=".ovpn"
CRT=".crt"
KEY=".3des.key"
CA="ca.crt"
TA="ta.key"
@laurenorsini
laurenorsini / server.conf
Last active June 2, 2023 15:45
OpenVPN configuration for /etc/openvpn/server.conf
local 192.168.2.0 # SWAP THIS NUMBER WITH YOUR RASPBERRY PI IP ADDRESS
dev tun
proto udp #Some people prefer to use tcp. Don't change it if you don't know.
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/Server.crt # SWAP WITH YOUR CRT NAME
key /etc/openvpn/easy-rsa/keys/Server.key # SWAP WITH YOUR KEY NAME
dh /etc/openvpn/easy-rsa/keys/dh1024.pem # If you changed to 2048, change that here!
server 10.8.0.0 255.255.255.0
# server and remote endpoints
@laurenorsini
laurenorsini / twiliotemp2.py
Last active May 23, 2019 16:58
Temperature Sensor That Texts With Twilio 2
#Original code by Adafruit
import os
import glob
import time
from twilio.rest import TwilioRestClient
client = TwilioRestClient(account='abc', token='123')
@laurenorsini
laurenorsini / ebooks.py
Created June 23, 2014 01:14
Copy of OwenEbooks
import random
import re
import sys
import twitter
import markov
from htmlentitydefs import name2codepoint as n2c
from local_settings import *
def connect():
api = twitter.Api(consumer_key=MY_CONSUMER_KEY,
@laurenorsini
laurenorsini / template-tags.php
Created June 3, 2014 14:56
Expound Coauthors
<?php
/**
* Custom template tags for this theme.
*
* Eventually, some of the functionality here could be replaced by core features
*
* @package Expound
*/
if ( ! function_exists( 'expound_content_nav' ) ) :
THE HUNGRY DC
Stories of the hungry and the people who serve them
ARRAY(1) { [0]=> STRING(1) "0" } ["_EDIT_LAST"]=> ARRAY(1) { [0]=> STRING(1) "1" } ["_WP_PAGE_TEMPLATE"]=> ARRAY(1) { [0]=> STRING(7) "DEFAULT" } ["PAGE_LAYOUT"]=> ARRAY(1) { [0]=> STRING(12) "CONTENT-LEFT" } ["HERO_ALIGNMENT"]=> ARRAY(1) { [0]=> STRING(11) "CENTER-TEXT" } ["HERO_TITLE_COLOR"]=> ARRAY(1) { [0]=> STRING(7) "#FFFFFF" } ["HERO_TEXT_COLOR"]=> ARRAY(1) { [0]=> STRING(7) "#FFFFFF" } ["HERO_BUTTON_TEXT_COLOR"]=> ARRAY(1) { [0]=> STRING(7) "#FFFFFF" } ["HERO_BUTTON_BACKGROUND"]=> ARRAY(1) { [0]=> STRING(7) "#000000" } ["HERO_BUTTON_TEXT_HOVER"]=> ARRAY(1) { [0]=> STRING(7) "#DD1C1C" } ["HERO_BUTTON_BACKGROUND_HOVER"]=> ARRAY(1) { [0]=> STRING(1) "#" } ["SLIDE_GROUP_SELECT"]=> ARRAY(2) { [0]=> STRING(18) "A:1:{I:0;S:1:"6";}" [1]=> STRING(18) "A:1:{I:0;S:1:"6";}" } ["_EDIT_LOCK"]=> ARRAY(1) { [0]=> STRING(12) "1399058876:5" } ["HERO_TITLE"]=> ARRAY(1) { [0]=> STRING(13) "THE HUNGRY DC" } ["HERO_CAPTION"]=> ARRAY(1) { [0]=> STRING(51) "ST
@laurenorsini
laurenorsini / Index.html
Created April 4, 2014 14:26
Index.html
<html>
<head>
<link rel="stylesheet" href="scrabble.css" type="text/css" />
<link rel="stylesheet" href="css/ui-dark.css" type="text/css" />
<script type="text/javascript" src="js/base.js" ></script>
<script type="text/javascript" src="js/ui.js" ></script>
<script type="text/javascript" src="scrabble.js" ></script>