Skip to content

Instantly share code, notes, and snippets.

View PaulCapestany's full-sized avatar

Paul Capestany PaulCapestany

View GitHub Profile
@PaulCapestany
PaulCapestany / bitcoin_startups
Created December 12, 2014 16:50
All bitcoin startups that have been added to AngelList, sorted by date
2011-10-06T08:09:18Z — Seventh Continent
2011-10-17T18:23:08Z — Bitcoin-2
2011-11-09T22:25:00Z — ZipZap
2011-12-14T20:44:52Z — SecondMarket
2011-12-26T03:44:39Z — Mirror
2012-01-18T03:02:01Z — Swarm
2012-02-19T05:12:56Z — Giftbit
2012-03-20T11:08:06Z — PAYMIUM
2012-05-15T05:39:16Z — MtGox
2012-05-22T22:46:44Z — Tradefor
@PaulCapestany
PaulCapestany / gitcheats.txt
Created February 3, 2016 02:17 — forked from chrismccoy/gitcheats.txt
git cheats
# shortform git commands
alias g='git'
# cherry pick range of commits, starting from the tip of 'master', into 'preview' branch
git rev-list --reverse --topo-order master... | while read rev; do git checkout preview; git cherry-pick $rev || break; done
# create tracking branches for all remote branches
git branch -a | grep -v HEAD | perl -ne 'chomp($_); s|^\*?\s*||; if (m|(.+)/(.+)| && not $d{$2}) {print qq(git branch --track $2 $1/$2\n)} else {$d{$_}=1}' | csh -xfs;
# git reset newly added files
@PaulCapestany
PaulCapestany / issue.md
Last active February 18, 2016 05:59
Unexpected `isDocumentPending`/CBL behaviour

Setup to reproduce

Follow these instructions in order to use Apple's "Network Link Conditioner" to test different connectivity qualities on both the simulator and on actual physical iOS devices.

In the ToDoLite-iOS project, change the kSyncGatewayUrl in AppDelegate.m if need be. Also, make sure that the FacebookAppID and URL Scheme in Info.plist is usable/accurate as well.

Keybase proof

I hereby claim:

  • I am paulcapestany on github.
  • I am paulcapestany (https://keybase.io/paulcapestany) on keybase.
  • I have a public key ASDGp4LnUdxcfV_Wr9AzeTnFMg3y2xlA0mFHCdL_gdkfGQo

To claim this, I am signing this object:

@PaulCapestany
PaulCapestany / main.go
Created October 24, 2016 20:06
s3 log parsing
package main
import (
"bufio"
"flag"
"fmt"
"io"
"log"
"os"
"regexp"
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDMZVkQgmH/RIIDkUhDq0nbVQg2xHdWAyjAvYEJ1CcNPn5F7LAkPYP6/ZqYy5QfxhLedfvS1KFOOIryhibNICQMA5LTkXVNEDZ3HHysDVEdom8VHFAfwIpMlKvXavSxToknh5mLm+Kbqloga8jzQJdDFDHwgrmlDzeB3fBwp13N9u3GJYwe16p7YNRL9AO5g2Hi7KuVPWbaY93pQOQDbDCId1avYk+qxKYB5bD6RYVtogNaY73SYCnCD0hZK/z2pMH9Tl3zq0lmqyKPhjXRLXT9vHTmEjez2lpPQCpOHSj5YUR1otcDPS17+KtHQVTLXd9UxQWeR9uOW9Y6hqDuQDMf
import graphviz as gv
import sys
import json
graph = gv.Graph(format='svg')
lngraph = json.load(sys.stdin)
for node in lngraph['nodes']:
nodename = node['pub_key'][-6:]
@PaulCapestany
PaulCapestany / ripgrep-in-emacs.md
Created March 8, 2018 19:19 — forked from pesterhazy/ripgrep-in-emacs.md
Using ripgrep in Emacs using helm-ag (Spacemacs)

Why

Ripgrep is a fast search tool like grep. It's mostly a drop-in replacement for ag, also know as the Silver Searcher.

helm-ag is a fantastic package for Emacs that allows you to display search results in a buffer. You can also jump to locations of matches. Despite the name, helm-ag works with ripgrep (rg) as well as with ag.

How

iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment

This post by a security researcher who prefers to remain anonymous will elucidate concerns about certain problematic decisions Apple has made and caution about future decisions made in the name of “security” while potentially hiding questionable motives. The content of this article represents only the opinion of the researcher. The researcher apologises if any content is seen to be inaccurate, and is open to comments or questions through PGP-encrypted mail.



TL;DR