Skip to content

Instantly share code, notes, and snippets.

View simbo's full-sized avatar
:octocat:

Simon Lepel simbo

:octocat:
View GitHub Profile
@simbo
simbo / nvm-sync-global-packages.sh
Last active November 12, 2015 12:55
sync globally installed packages of two node versions installed via nvm
#!/bin/bash
#
# nvm-sync-global-packages (nsgp)
source ~/.nvm/nvm.sh
function change_node_version() {
nvm use $1 &> /dev/null
}
/**
* Content spacing
* =============================================================================
*/
$content-spacing_first-level
margin-top: content-spacing.first-level
margin-bottom: content-spacing.first-level
$content-spacing_second-level
@simbo
simbo / simbo.ninja-user-examples.js
Last active March 28, 2016 23:40
Examples for interacting with User class in project simbo.ninja
var Q = require('q');
var User = require('app/modules/user');
// create a new user
Q(new User())
.then(User.q.setUsername('foo'))
.then(User.q.setPassword('1234567890'))
.then(User.q.save())
@simbo
simbo / responsive-images-solution.md
Last active November 22, 2017 05:35
Responsive images solution

Responsive Images Solution

When uploading an image via the cms, multiple versions should be generated using defined ratios and sizes.

To use a specific image source in the frontend, a key like 2_1_1920 is used, which would in this case deliver a version of the image with a ratio of 2:1 and a width of 1920px.

Here's an example of an image, that should keep the ratio 2:1 in all viewports. Within the <picture> element there are 4 <source> elements and 1 <img> element as fallback.

'use strict';
var path = require('path');
var autoprefixer = require('autoprefixer'),
csswring = require('csswring'),
glob = require('glob'),
lost = require('lost'),
mqpacker = require('css-mqpacker');
@simbo
simbo / captains.json
Created October 24, 2017 00:27
Captains Data Mock
[
{
"id": "6137138c-6322-4285-9aa2-76cd787e02b3",
"firstname": "James",
"middlename": "Tiberius",
"lastname": "Kirk"
},
{
"id": "055ae2b5-2ac5-4841-963e-2e8d9d8ffb40",
"firstname": "Jean-Luc",
@simbo
simbo / vort3x.md
Created April 26, 2018 17:53 — forked from cam8001/vort3x.md
Vortex / IKBC Pok3r keyboard guide for Mac OS
@simbo
simbo / rcc-debug-bookmarklets.md
Last active June 11, 2018 17:41
RCC Debug Bookmarklets

RCC Bookmarklets

Paste them in your browser bookmark bar.


RCC Business Session Debug Info

@simbo
simbo / uberspace-wildcard-letsencrypt.md
Last active June 12, 2023 01:12
Let's Encrypt Wildcard Certificates at Uberspace using acme.sh

Let's Encrypt Wildcard Certificates at Uberspace using acme.sh

About

This documents how i've set up wildcard SSL support for my private websites (because once things are done, i tend to forget about their details).

@simbo
simbo / uberspace-matomo.md
Last active February 12, 2021 19:10
Setup Matomo on Uberspace with GDPR Compliance