Skip to content

Instantly share code, notes, and snippets.

View thekeele's full-sized avatar
🏄‍♂️
Keep Calm and Code

Mark Keele thekeele

🏄‍♂️
Keep Calm and Code
View GitHub Profile
@gdamjan
gdamjan / twitter.erl
Last active March 12, 2018 04:11
Erlang and Elixir: hackney, oauth, twitter stream
%#!/usr/bin/env escript
%% -*- erlang -*-
%%! -sasl errlog_type error
%%% Dependencies: hackney, erlang-oauth, jsx
%%% https://dev.twitter.com/docs/auth/authorizing-request
%%% https://dev.twitter.com/docs/api/1.1/post/statuses/filter
-module(twitter).
-author(gdamjan).
@soheilhy
soheilhy / nginxproxy.md
Last active April 11, 2025 06:29
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@altamic
altamic / bitdump.sh
Created January 25, 2011 22:20
dumps Bitcoin network traffic
#!/usr/bin/env sh
# bitdump.sh
#
# captures Bitcoin network traffic
SELF=`basename $0`
if [[ $1 = "" ]]; then
DEFAULT="en1"