Skip to content

Instantly share code, notes, and snippets.

View RobertLidberg's full-sized avatar
💭
I may be slow to respond.

Robert Lidberg RobertLidberg

💭
I may be slow to respond.
View GitHub Profile
Verifying that "lidberg.id" is my Blockstack ID. https://onename.com/lidberg

Keybase proof

I hereby claim:

  • I am RobertLidberg on github.
  • I am lidberg (https://keybase.io/lidberg) on keybase.
  • I have a public key whose fingerprint is 47FE B314 0F53 8284 B687 BE7A A396 313C DC8C 506C

To claim this, I am signing this object:

docker run --name="redis" --restart=always -d redis
syntax on
set number
//OOCSS, BEM, SMACSS, whatever...
.block {background-color: green;
&-content {color: red;
&--lighten {opacity: 0.6;}
}
}
@RobertLidberg
RobertLidberg / rem
Created November 18, 2014 20:15
Typography
$base-font-size: 1.36rem;
$base-line-height: 3.2rem;
html {font-size: 62.5%;} //Yep, from 16 to 10
h1 {font-size: $base-font-size; line-height: $base-line-height;}
.navigation--link {line-height: $base-line-height/2;}
@RobertLidberg
RobertLidberg / biolerplate.html
Last active December 28, 2015 18:19
lidkoping.se framework
<!DOCTYPE html>
<!--[if lt IE 7]><html class="lt-ie9 lt-ie8 lt-ie7" lang="sv"><![endif]--><!--[if IE 7]><html class="lt-ie9 lt-ie8 ie7" lang="sv"><![endif]--><!--[if IE 8]><html class="lt-ie9 ie8" lang="sv"><![endif]--><!--[if gt IE 8]><!--><html lang="sv"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>%input%</title>
<meta name="viewport" content="width=device-width">
<meta name="description" content="%input%">
<meta name="keywords" content="">
<meta name="author" content="%input%">
<meta property="og:description" content="%input%">
@RobertLidberg
RobertLidberg / Useful Varnish monitoring
Last active December 27, 2015 13:49
Some day to day Varnish stuff
varnishtop -i rxurl (Most requested pages)
varnishtop -i TxURL (Cache miss URLs)
varnishlog -D -a -w varnish.log (Write logfile)
varnishreplay -a localhost:80 -r varnish.log (Replay logfile, warming alternative)