Skip to content

Instantly share code, notes, and snippets.

Lauren Orsini laurenorsini

Block or report user

Report or block laurenorsini

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
@laurenorsini
laurenorsini / ebooks.py
Created Jun 23, 2014
Copy of OwenEbooks
View ebooks.py
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,
View template-tags.php
<?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' ) ) :
View gist:a2df337119ccde8337ba
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 / twiliotemp2.py
Last active May 23, 2019
Temperature Sensor That Texts With Twilio 2
View twiliotemp2.py
#Original code by Adafruit
import os
import glob
import time
from twilio.rest import TwilioRestClient
client = TwilioRestClient(account='abc', token='123')
@laurenorsini
laurenorsini / MakeOpenVPN.sh
Last active Aug 16, 2019
MakeOpenVPN.sh by Eric Jodoin
View MakeOpenVPN.sh
#!/bin/bash
# Default Variable Declarations
DEFAULT="Default.txt"
FILEEXT=".ovpn"
CRT=".crt"
KEY=".3des.key"
CA="ca.crt"
TA="ta.key"
View 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>
@laurenorsini
laurenorsini / server.conf
Last active Aug 16, 2019
OpenVPN configuration for /etc/openvpn/server.conf
View 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
You can’t perform that action at this time.