Skip to content

Instantly share code, notes, and snippets.

View froseph's full-sized avatar

Joseph Liu froseph

View GitHub Profile
@froseph
froseph / private_fork.md
Created August 18, 2020 19:31 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@froseph
froseph / how-to-set-up-stress-free-ssl-on-os-x.md
Created September 26, 2016 16:38 — forked from jed/how-to-set-up-stress-free-ssl-on-os-x.md
How to set up stress-free SSL on an OS X development machine

How to set up stress-free SSL on an OS X development machine

One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.

Most workflows make the following compromises:

  • Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the secure flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection.

  • Use production SSL certificates locally. This is annoying

@froseph
froseph / librets_install.txt
Created October 7, 2015 21:04 — forked from dmpeters/librets_install.txt
librets installations with python bindings only
# Debian 7 x64, Ubuntu 14.04 x64, Ubuntu 12.04.4 x64
*NOTE (tested on Digital Ocean VM's w/ > 512MB of RAM - gcc runs out of memory on VM's <= 512 MB)
apt-get update
aptitude safe-upgrade
apt-get install build-essential libboost-all-dev libcurl4-gnutls-dev autoconf antlr swig python-dev
*NOTE (for python 3 support add 'python3-dev' to the end of line 5)
cd /tmp
wget https://github.com/NationalAssociationOfRealtors/libRETS/archive/1.6.1.tar.gz

Keybase proof

I hereby claim:

  • I am froseph on github.
  • I am froseph (https://keybase.io/froseph) on keybase.
  • I have a public key whose fingerprint is E289 E834 76D4 65C9 59F5 C0F8 E3BC 8EB0 52AB D3B9

To claim this, I am signing this object:

@froseph
froseph / ums.md
Created August 25, 2014 14:16 — forked from dreamcat4/ums.md

UMS How-To

How to install Universal Media Server. Most of these commands can just be copy-pasted.

Update Finch

Update finch to version 1.25 or newer.

# Finch users should first update to get the latest fixes

[ "$(echo "$(finch --shortver) >= 1.25" | bc)" = 1 ] || sudo finch update -y

@froseph
froseph / gist:5627939
Created May 22, 2013 14:26
Southwest Pinging
(localenv)(git)-[tags] froseph@airpanda:~/work/whitetruffle/src % ping google.com
PING google.com (74.125.239.3): 56 data bytes
64 bytes from 74.125.239.3: icmp_seq=0 ttl=47 time=838.442 ms
64 bytes from 74.125.239.3: icmp_seq=1 ttl=47 time=762.767 ms
64 bytes from 74.125.239.3: icmp_seq=2 ttl=47 time=808.893 ms
64 bytes from 74.125.239.3: icmp_seq=3 ttl=47 time=705.881 ms
^C
--- google.com ping statistics ---
5 packets transmitted, 4 packets received, 20.0% packet loss
round-trip min/avg/max/stddev = 705.881/778.996/838.442/50.092 ms
@froseph
froseph / gist:5399551
Created April 16, 2013 20:52
TROLOLOLOLO
THIS IS A TEST OF THE EMERGENCY BROADCAST SYSTEM> THIS IS ONLY A TEST>
import logging
try:
import json
except ImportError:
import simplejson as json
log = logging.getLogger(__name__)
@froseph
froseph / munic_tumblr_theme.html
Created November 10, 2012 05:50
Munic Theme for tumbler
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>{Title}{block:PostTitle} / {PostTitle}{/block:PostTitle}</title>
<link rel="alternate" type="application/rss+xml" title="RSS" href="{RSS}"/>
<link rel="Shortcut Icon" type="image/png" href="{Favicon}" />
<style type="text/css">
a img, img a {border:none;}