Skip to content

Instantly share code, notes, and snippets.

View petonic's full-sized avatar

Mike Petonic petonic

  • NY, NY USA
View GitHub Profile
@petonic
petonic / OZWCP-Install-instructionsl.md
Last active June 9, 2021 12:27 — forked from chriskacerguis/install.md
Install OZWCP on Ubuntu

First, install some (probably) important libraries:

apt-get update
apt-get install libgnutls28-dev libgnutlsxx28

Download, build and install libmicrohttpd

@petonic
petonic / README.md
Last active May 5, 2018 17:21 — forked from atenni/README.md
How to permalink to a gist's raw file

Problem: When linking to the raw version of a gist, the link changes with each revision.

Solution:

To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/

To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]

@petonic
petonic / gist:5e3d4d923137728885f13af86d656011
Created April 15, 2018 18:49 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream