Skip to content

Instantly share code, notes, and snippets.

View Siddhartha90's full-sized avatar

Siddhartha Siddhartha90

View GitHub Profile
@staltz
staltz / introrx.md
Last active May 15, 2025 10:37
The introduction to Reactive Programming you've been missing
@netpoetica
netpoetica / Setting up Nginx on Your Local System.md
Last active November 13, 2024 17:24
Setting up Nginx on Your Local System

#Setting up Nginx on Your Local System ###by Keith Rosenberg

##Step 1 - Homebrew The first thing to do, if you're on a Mac, is to install homebrew from http://mxcl.github.io/homebrew/

The command to type into terminal to install homebrew is:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@candera
candera / SlowInputStream.java
Last active June 30, 2020 12:46
A fairly naive implementation of a slow InputStream. Useful for simulating slow HTTP servers in Ring apps. Also shows how to proxy overloaded methods.
// A Java variation on the same theme
package user;
import java.io.InputStream;
import java.util.Random;
public class SlowInputStream extends InputStream {
private final long time;
private final long size;
@davisford
davisford / gist:5039064
Last active February 9, 2022 13:39
git clone into non-empty directory

Let's say you start a project locally, and do some editing.

$ mkdir -p ~/git/foo && cd ~/git/foo
$ touch NEWFILE

Now you decide you want to create a new github repo and track it, but the directory is non-empty so git won't let you clone into it. You can fix this, thusly: