Skip to content

Instantly share code, notes, and snippets.

View lidox's full-sized avatar

Artur Schäfer lidox

View GitHub Profile
@lidox
lidox / 1und1 install node and npm without having to sudo
Last active October 1, 2015 08:17
Install node without having to sudo. (used for 1und1 server)
# take ownership of the folders that npm/node use
# please don't do this if you don't know what it does!
sudo mkdir -p /usr/local/{share/man,bin,lib/node,include/node}
sudo chown -R $USER /usr/local/{share/man,bin,lib/node,include/node}
# now just a pretty vanilla node install
# let it use the default paths, but don't use sudo, since there's no need
export PREFIX=
mkdir node-install
curl http://nodejs.org/dist/node-v0.4.3.tar.gz | tar -xzf - -C node-install
@lidox
lidox / install-elasticsearch-debian
Last active October 1, 2015 08:15 — forked from mystix/install-elasticsearch-debian
Install ElasticSearch on Debian
VERSION=0.20.7
sudo apt-get update
sudo apt-get install openjdk-7-jdk
# 1.10.2015 $VERSION = 1.6.0
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$VERSION.deb
sudo dpkg -i elasticsearch-$VERSION.deb
# be sure you add "action.disable_delete_all_indices" : true to the config!!
@lidox
lidox / Postfix Mail-Relay Installation.md
Last active October 14, 2015 12:18
Installationsanleitung für Postfix zur Nutzung als "Mail-Relay, SMTP-Relay-Server, Smarthost" (Linux Debian)

#####################################################################

Mail Relay aufsetzten mit Postfix

Autor: Artur Schäfer

#####################################################################

  1. Voreinstellungen: $ sudo apt-get update $ sudo apt-get install libsasl2-modules

  2. Instaliere Postfix:

@lidox
lidox / responsive webdesign tips and tricks.md
Last active October 30, 2015 09:44
Tips und Tricks zum Thema Responsive Webdesign

#Responsive Web Design

Einleitung

Dies ist eine Sammlung nützlicher Tips und Tricks zur Entwicklung Responsiver Webseiten. 👌☺️

Viewport und (Normalize)

<!-- Damit wird die spezifische Skalierung der Smartphones ausgestellt --> 
<meta name="viewport" content="width=device-width, initial-scale=1.0">

 
@lidox
lidox / server_commands.md
Last active November 2, 2015 20:56
how to work with node.js on serverside and use git to deploy changes on server

Server Commands

start and stop node server

# find node process
ps aux | grep node

# kill node process
kill -9 PROCESS_ID
@lidox
lidox / VirtualBox-dynamic-size.txt
Last active May 17, 2016 11:47
VirtualBox increase size
### Change VM to dynatic size
cd C:\virtualbox\Portable-VirtualBox\app64
VBoxManage clonehd "C:\virtualbox\Portable-VirtualBox\data\.VirtualBox\Machines\win7\win7.vhd" "dynamic_win7.vhd" --variant Standard
### Resize
1. use vmBoxManage
VBoxManage modifyhd "C:\virtualbox\Portable-VirtualBox\data\.VirtualBox\Machines\win7\dynamic_win7.vhd" -resize 40000
2. go on vm and add space
https://www.youtube.com/watch?v=SfU24IFQ3x8
@lidox
lidox / jwplayer-preview-thumbnails.md
Last active June 1, 2016 18:23
A simple but effective instruction doc which shows how to generate preview thumbnails of a video, and corresponding VTT file.

Description

A simple but effective instruction doc which shows how to generate preview thumbnails of a video, and corresponding VTT file, for use within JW Player to allow for toolbar video preview (described in following article. First it shows how to create an image of images (sprite) and then how to create a VTT file belonging to the sprite via Javascript.

A simple but effective command-line tool for generating thumbnails of a video, and corresponding VTT file, for use within JW Player to allow for toolbar video preview.

Demo

Alternatively check the Online Demo animation