Skip to content

Instantly share code, notes, and snippets.

View mauricerenck's full-sized avatar

Maurice Renck mauricerenck

View GitHub Profile
@mauricerenck
mauricerenck / npm-file-limit
Created November 14, 2014 09:16
Set max open files up for npm
launchctl limit maxfiles 16384 16384 && ulimit -n 16384
@mauricerenck
mauricerenck / [scss] font pixel rem setup
Created January 3, 2015 19:08
[scss] font pixel rem setup
@mixin font-size($sizeValue: 16) {
font-size: $sizeValue + px;
font-size: ($sizeValue / 10 ) + rem;
}
html {
font-size: 62.5%;
}
body {
#!/bin/bash
## Install ISPConfig3 on Ubuntu 14.04 64Bits
## Author: Nilton OS blog.linuxpro.com.br
## http://blog.linuxpro.com.br/posts/instalando-ispconfig3-no-ubuntu-1404.html
## http://www.howtoforge.com/the-perfect-server-ubuntu-14.04-nginx-bind-mysql-php-postfix-dovecot-and-ispconfig3-p2
dpkg-reconfigure dash
service apparmor stop
/* background : linear-gradient(to right, white 30px, transparent 0);
background-position : bottom left;
background-size : 60px 2px;
background-repeat : repeat-x; */
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>App Redirection</title>
</head>
<body>
<!-- iframe used for attempting to load a custom protocol -->
<iframe style="display:none" height="0" width="0" id="loader"></iframe>
@mauricerenck
mauricerenck / gist:8ec2f7e4a178f581926e
Created June 5, 2015 07:51
[git] checkout certain branch
git clone <url> --branch <branch> --single-branch <folder>
@mauricerenck
mauricerenck / gist:e7c0bed477ce8a9ebd6c
Created June 17, 2015 14:49
[js] Prevent Page-Scrolling when in Lightbox
$(document).bind('cbox_open', function() {
$('html').css({ overflow: 'hidden' });
}).bind('cbox_closed', function() {
$('html').css({ overflow: '' });
});
@mauricerenck
mauricerenck / submodules.sh
Created November 27, 2015 10:28
[sh] init all submodules recursive
git submodule update --init --recursive
@mauricerenck
mauricerenck / git-https sh
Created December 1, 2015 09:39
all urls from git:// to https://
git config --global url."https://".insteadOf git://
@mauricerenck
mauricerenck / git-clean.sh
Created December 10, 2015 09:40
[git] Clean wp-admin und wp-include
cd wp-admin
git clean -di
git checkout ./*
cd wp-includes
git clean -di
git checkout ./*