Inspired by "Parsing CSS with Parsec".
Just quick notes and code that you can play with in REPL.
By @kachayev
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): |
#!/bin/bash | |
# Script Name: Sync SVN folders | |
# Description: Use this script to sync changes from one SVN folder to another. A common use is syncing between prod and preprod repos. | |
# Tags: svn, sync | |
# Usage: ./sync-svn-folders.sh /path/to/from-repo /path/to/to-repo | |
FROM_REPO=$1 | |
TO_REPO=$2 | |
# Check that we don't have empty paths |
{ | |
"canon_url": "https:\/\/bitbucket.org", | |
"commits": [ | |
{ | |
"author": "mauris", | |
"branch": "master", | |
"files": [ | |
{ | |
"file": "test", | |
"type": "added" |
## within current branch, squashes all commits that are ahead of master down into one | |
## useful if you merged with upstream in the middle of your commits (rebase could get very ugly if this is the case) | |
## commit any working changes on branch "mybranchname", then... | |
git checkout master | |
git checkout -b mybranchname_temp | |
git merge --squash mybranchname | |
git commit -am "Message describing all squashed commits" | |
git branch -m mybranchname mybranchname_unsquashed | |
git branch -m mybranchname |
Inspired by "Parsing CSS with Parsec".
Just quick notes and code that you can play with in REPL.
By @kachayev
(def default-wait-death (time/seconds 5)) | |
(def default-wait-delay-ms 10) | |
(defn wait-until* | |
"wait until a function has become true" | |
([name fn] (wait-until* name fn default-wait-death)) | |
([name fn wait-death] | |
(let [die (time/plus (time/now) wait-death)] | |
(loop [] | |
(if-let [result (fn)] |
A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.
How to use:
Preferences | Appearance | Tabs | Theme > Dark
dstr > ttf
, install all font files by double clicking)Preferences | Profiles | Text
Font
to 14pt Fira code regular
and Check Use Ligatures
checkboxNon ASCII Font
to 14pt Fira mono
and Check Use Ligatures
checkboxPreferences | Profiles | Color Presets > Snazzy
The main point is to save the SSL/TLS keys those used by the web browser (SSLKEYLOGFILE=/tmp/tmp-google/.ssl-key.log
).
In the example below we run brand new instance of Google Chrome (--user-data-dir=/tmp/tmp-google
do the trick):
SSLKEYLOGFILE=/tmp/tmp-google/.ssl-key.log /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=/tmp/tmp-google
Then run the Wireshark and open the Preferences -> Protocols -> SSL, where we put the path to the SSL keys log file into the (Pre)-Master-Secret log filename
field.
Now all SSL/TLS traffic from this browser instance will be decrypted.