Skip to content

Instantly share code, notes, and snippets.

Anselm Hannemann anselmh

Block or report user

Report or block anselmh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@anselmh
anselmh / sshd_config.sh
Last active Jan 4, 2017
Digital Ocean Droplet sshd_config
View sshd_config.sh
# /etc/ssh/sshd_config
KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-ripemd160-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,umac-128@openssh.com
PasswordAuthentication no
PubkeyAuthentication yes
Protocol 2
HostKey /etc/ssh/ssh_host_ed25519_key
@anselmh
anselmh / hosts
Last active Jul 26, 2016
block newrelic tracker from sending data
View hosts
##
# 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
View recipe--muesli-granola-cereals.md

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.
View conference-userstories.md

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 Sep 20, 2015 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.
View what-forces-layout.md

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()
View keybase.md

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:

View markdown.md

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 Aug 29, 2015
Clean directory and Copy files from one to another location (similar to grunt-contrib-copy)
View package.json
{
"devDependencies": {
"del": "^1.2.0",
"recursive-copy": "^1.0.10"
},
"scripts": {
"copy": "node task.copy.js",
}
}
@anselmh
anselmh / useful-meta-tags.html
Created Jan 29, 2015
List of some (useful) meta tags that aren’t that common.
View useful-meta-tags.html
<!-- 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 Sep 9, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="selector">
Hello World. Should be black
<p class="test">
This should be black.
</p>
</div>
<div class="selector test">
You can’t perform that action at this time.