Skip to content

Instantly share code, notes, and snippets.

View maikdiepenbroek's full-sized avatar
🎧
Building

Maik Diepenbroek maikdiepenbroek

🎧
Building
View GitHub Profile
@cecilemuller
cecilemuller / letsencrypt_2020.md
Last active April 15, 2024 02:19
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@addyosmani
addyosmani / README.md
Last active April 2, 2024 20:18 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@Integralist
Integralist / Macros.md
Last active May 29, 2019 20:43
Clojure's "Thread First" and "Thread Last" macros

In Clojure macros are executed before code is evaluated. Macros allow us to manipulate the program being compiled. There are two macros in particular that I like to demonstrate why this is useful:

  • Thread First ->
  • Thread Last ->>

Note: in Clojure sequence data structures (lists & vectors) are usually the last item in an argument list; where as map data structures are usually the first argument in an argument list

Thread First

Our original program requires us to effectively read it "inside out":

@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2: