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 / mc_server.sh
Created March 7, 2013 14:46
shell script for Minecraft server management
#!/bin/bash
#
# Minecraft Server Script
#
# Author: Simon Lepel
# Version: 0.1 alpha
# License: GNU GPL
# Requirements: screen
# Configuration
@simbo
simbo / gist:5643181
Created May 24, 2013 12:31
improved less gradient functions :)
/* =============================================================================
Gradients
========================================================================== */
.gradient( @gradient_type, @gradient_direction_w3c, @gradient... ) {
@gradient_direction_browser:
~`(function(dir_w3c){
switch(dir_w3c) {
case 'to bottom': return 'top';
case 'to right': return 'left';
@simbo
simbo / functions.less
Created May 29, 2013 20:38
useful LESS functions
/* =============================================================================
Box-Sizing
========================================================================== */
.box-sizing( @mode ) {
-webkit-box-sizing: @mode;
-moz-box-sizing: @mode;
-ms-box-sizing: @mode;
-o-box-sizing: @mode;
box-sizing: @mode;
/* =============================================================================
Gradients with unlimited color-stops (ready to use with Autoprefixer)
========================================================================== */
#gradient {
// Filter color-stop params
.color-stops(@color-stops-N...) {
@color-stops: ~`"@{arguments}".replace(/(^\[)|(\]$)/g,'')`;
}
/* =============================================================================
Media queries for different screen sizes
========================================================================== */
// xs only
.screen-xs(@rules) {
@media (max-width: @screen-xs-max) { @rules(); }
}
// sm and larger
/* =============================================================================
Gradients with unlimited color-stops
========================================================================== */
#gradient {
// Filter color-stop params
.color-stops(@color-stops-N...) {
@color-stops: ~`"@{arguments}".replace(/(^\[)|(\]$)/g,'')`;
@color-stops-webkit: ~`(function(c){
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: postgresql #changed this
encoding: utf8
database: hosted_development #changed this
username: alan #changed this
password: MlwhvC4R
# Warning: The database defined as "test" will be erased and
@simbo
simbo / provision-node.sh
Last active July 13, 2022 14:24
setup node.js with nvm within vagrant
##
# add this to your provision.sh
#
# [!] run as 'vagrant' like this:
# su vagrant -c "source ${PROVISION_DIR}/provision-node.sh"
#
# [!] please keep the echo messages. those actions could take some more time without any output, so let the user know.
##
# install latest nvm
@simbo
simbo / bp-setup-mac-for-frontend.md
Last active August 29, 2015 14:16
bp setup mac for frontend

OSX updaten

VirtualBox

Vagrant

Xcode (für BuildTools und iOS Simulator)

Homebrew

  • wget

nginx auf dem Uberspace

Installation

Lade die neueste "mainline"-Version (hier 1.7.9) von http://nginx.org/en/download.html herunter und entpacke sie:

$ wget http://nginx.org/download/nginx-1.7.9.tar.gz 
$ tar xf nginx-1.7.9.tar.gz