Skip to content

Instantly share code, notes, and snippets.

View anselmh's full-sized avatar

Anselm Hannemann anselmh

View GitHub Profile
@anselmh
anselmh / sshd_config.sh
Last active January 4, 2017 14:46
Digital Ocean Droplet sshd_config
# /etc/ssh/sshd_config
KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256
Ciphers [email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr
MACs [email protected],[email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,[email protected]
PasswordAuthentication no
PubkeyAuthentication yes
Protocol 2
HostKey /etc/ssh/ssh_host_ed25519_key
@anselmh
anselmh / hosts
Last active July 26, 2016 09:14
block newrelic tracker from sending data
##
# Enter this into your /etc/hosts file to re-route traffic to newrelic hostnames to null
##
0.0.0.0 beacon-1.newrelic.com
0.0.0.0 beacon-2.newrelic.com
0.0.0.0 beacon-3.newrelic.com
0.0.0.0 beacon-4.newrelic.com
0.0.0.0 beacon-5.newrelic.com
0.0.0.0 beacon-6.newrelic.com

Make your own crunchy muesli

Buy some nice oat flakes (you can use fine or coarse, whatever you prefer).

  1. Take 250g (~9 Ounces [oz]) oat flakes
  2. Take about 100-150ml (5 [fl oz]) of honey or agave syrup
  3. Mix the oat flakes and the honey well
  4. You can add some cinnamon now if you want
  5. Roast the mixed flakes in a pan now for a short time (so that the honey is soaked by the flakes, about 2-5 minutes)
  6. Prepare a baking tray and put some baking paper on it.

Conference User Stories

====================================

As an Organizer

  • As an organiser I want to create an event where everyone feels safe and welcome.
  • As an organiser I want attendees to show a level of personal responsibility. That means ensuring that they arrive in time for all sessions, don't consume food or drink that they know will have adverse personal results and respect the speakers by listening to them and not being heads down on their laptops.
  • As a conference treasurer I want a ticketing system that pays straight away (like tito and not like eventbrite) so I have nice cash-flow management.
@anselmh
anselmh / what-forces-layout.md
Last active September 20, 2015 09:42 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout. This is also called reflow or layout thrashing, and is common performance bottleneck.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()

Keybase proof

I hereby claim:

  • I am anselmh on github.
  • I am anselm (https://keybase.io/anselm) on keybase.
  • I have a public key whose fingerprint is F691 9E8A 88F0 4543 BC79 BF5B D1A2 F21F 1BE7 4300

To claim this, I am signing this object:

Headline

Headline 2n level

This is a test markdown file with a link and some strong and italic text.

@anselmh
anselmh / package.json
Last active August 29, 2015 14:22
Clean directory and Copy files from one to another location (similar to grunt-contrib-copy)
{
"devDependencies": {
"del": "^1.2.0",
"recursive-copy": "^1.0.10"
},
"scripts": {
"copy": "node task.copy.js",
}
}
@anselmh
anselmh / useful-meta-tags.html
Created January 29, 2015 07:03
List of some (useful) meta tags that aren’t that common.
<!-- Telephone number detection on iOS -->
<meta name="format-detection" content="telephone=yes"> (default on Safari in iOS)
<meta name="format-detection" content="telephone=no">
@anselmh
anselmh / SassMeister-input-HTML.html
Created September 9, 2014 14:39
Generated by SassMeister.com.
<div class="selector">
Hello World. Should be black
<p class="test">
This should be black.
</p>
</div>
<div class="selector test">