Skip to content

Instantly share code, notes, and snippets.

View rpip's full-sized avatar

Yao rpip

View GitHub Profile
@helderco
helderco / db-open
Created October 6, 2015 14:51
Script to open a mysql database in Sequel Pro from a service in docker-compose.
#!/bin/bash
set -e
show_help() {
cat << EOF
Usage: ${0##*/} [-u USER] [-p PASS] [-P PORT] [-H HOST] [DATABASE]
${0##*/} -h
Open a standard connection in Sequel PRO.
@matthieubulte
matthieubulte / p-a-t.md
Last active October 4, 2015 21:22
Propositions as Types

List of papers (with links to the PDF versions) mentioned in Philip Wadler's presentation on Propositions as Types at StrangeLoop 2015 (https://www.youtube.com/watch?v=IOiZatlZtGU)

@essen
essen / http_specs.md
Last active January 10, 2022 02:01
HTTP and related specifications
@dideler
dideler / upgrade-postgres-9.3-to-9.4.md
Last active June 8, 2020 03:24
Upgrading PostgreSQL from 9.3 to 9.4 when upgrading Ubuntu 14.04 to 14.10

TL;DR

Create a backup:

pg_dumpall > mybackup.sql

Perform the upgrade:

sudo pg_dropcluster 9.4 main --stop
@hawkw
hawkw / CMPSC420 Day 1.md
Last active April 17, 2018 08:51
CMPSC420 Notes

CMPSC420: Introduction to Compiler Design August 27th, 2014

Professor Jumadinova Email: jjumadinova@allegheny.edu Office: Alden 105 Office hours: Monday 10-12am and 4:30pm-5:30pm Wednesday 10-12am and 2:30-3:30pm

ECON100: Intro to Micro August 27th, 2014

Professor Steven 'Zurigbo Onyeiwu Office Hours: M 1-3 pm, WF 9-11 AM, and by appointment Office: Quigley 206 Email: sonyeiwu@allegheny.edu Phone: 332-3338

@hawkw
hawkw / CMPSC380 Day 1.md
Last active April 19, 2016 14:26
CMPSC380 Notes

CMPSC380: DATABASES August 26th, 2014

Data Management

  • How much data is there in the world today?
    • infinite amounts of data in an infinite universe
    • ~1 yottabyte stored by people
  • How much data is produced every day?
@cabo
cabo / elixir-charming.el
Created July 13, 2014 13:25
Emacs lisp snippet to turn Elixir into a charming language (during editing only)
(defconst elixir--cabo-prettify-symbols-alist
'(
("->" . ?➙) ; → ➜➽➤
("::" . ?∷)
("<-" . ?⬅) ; ←
("<<" . ?⟪ ) ; «≪
("=>" . ?⇒)
(">>" . ?⟫ ) ; »≫
("do" . ?⫷)
@staltz
staltz / introrx.md
Last active May 6, 2024 01:44
The introduction to Reactive Programming you've been missing
@koudelka
koudelka / gist:f4d07b9d998d723e55a0
Created June 6, 2014 20:52
Possible http status codes module for Elixir Phoenix Web Framework
#
# Would this be useful to Phoenix?
#
# In controllers, it'd be nice to be able to refer to status codes as atoms instead of integers.
#
defmodule Phoenix.Controller.StatusCodes do
@http_status_codes %{