Skip to content

Instantly share code, notes, and snippets.

@febeling
febeling / how-to-set-up-stress-free-ssl-on-os-x.md
Last active August 29, 2015 14:27 — forked from jed/how-to-set-up-stress-free-ssl-on-os-x.md
How to set up stress-free SSL on an OS X development machine

How to set up stress-free SSL on an OS X development machine

One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.

Most workflows make the following compromises:

  • Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the secure flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection.

  • Use production SSL certificates locally. This is annoying

[alias]
di = diff
co = checkout
br = branch
ci = commit
st = status
lg = log -p
unstage = reset HEAD --
last = log -1 HEAD
l = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
Sampling process 84396 for 1 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Adium (pid 84396) every 1 millisecond
Process: Adium [84396]
Path: /Applications/Adium.app/Contents/MacOS/Adium
Load Address: 0x100000000
Identifier: com.adiumX.adiumX
Version: 1.5.10 (1.5.10)
Code Type: X86-64
Parent Process: ??? [1]
Build target ReacTable
Write auxiliary files
write-file /Users/febeling/Library/Developer/Xcode/DerivedData/ReacTable-fxcxpivtkwfimyftbtdccdyhjjvy/Build/Intermediates/ReacTable.build/Debug-iphonesimulator/ReacTable.build/Script-5080C9EF1A522958007F0EC9.sh
chmod 0755 /Users/febeling/Library/Developer/Xcode/DerivedData/ReacTable-fxcxpivtkwfimyftbtdccdyhjjvy/Build/Intermediates/ReacTable.build/Debug-iphonesimulator/ReacTable.build/Script-5080C9EF1A522958007F0EC9.sh
CompileC /Users/febeling/Library/Developer/Xcode/DerivedData/ReacTable-fxcxpivtkwfimyftbtdccdyhjjvy/Build/Intermediates/ReacTable.build/Debug-iphonesimulator/ReacTable.build/Objects-normal/x86_64/AppDelegate.o ReacTable/AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/febeling/dev/ReacTable
@febeling
febeling / introrx.md
Last active August 29, 2015 14:10 — forked from staltz/introrx.md

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

Ruby example

This is a text part.

def name
  "Org"
end
puts name

Keybase proof

I hereby claim:

  • I am febeling on github.
  • I am febeling (https://keybase.io/febeling) on keybase.
  • I have a public key whose fingerprint is 59D8 F767 ADC8 3398 B3A4 674A 6AE4 5AD5 3E46 E4ED

To claim this, I am signing this object:

Elisp debugger cheat sheet

ccontinue
dstep-in
bflag frame for debugging when leaving frame again
uunflag frame for debugging when leaving
jflag frame and disable function-entry breakpoints
eeval expression in minibuffer
qquit
reval expression and set it as value of frame, continue
@febeling
febeling / 0working.png
Last active August 29, 2015 13:57
org-capture intro
0working.png
febeling@flomac ~/t/jasmine> echo $NODE_PATH
/usr/local/lib/node_modules
febeling@flomac ~/t/jasmine>
febeling@flomac ~/t/jasmine> npm uninstall -g yo
unbuild yo@1.0.6
febeling@flomac ~/t/jasmine> echo $NODE_PATH
/usr/local/lib/node_modules
febeling@flomac ~/t/jasmine> yo -v
1.0.7-pre.1
febeling@flomac ~/t/jasmine> which yo