Skip to content

Instantly share code, notes, and snippets.

View VincentRbbmnd's full-sized avatar

Vincent Robbemond VincentRbbmnd

  • Rotterdam, The Netherlands
View GitHub Profile
@VincentRbbmnd
VincentRbbmnd / LOC
Last active December 4, 2018 22:20
Count LOC with Sublime Text
// find->find in files with RegEx enabled
^.*\S+.*$
// Where:
c:\your_folder\,*.php,*.phtml,*.js,*.inc,*.html, -*/folder_to_exclude/*
@VincentRbbmnd
VincentRbbmnd / Git config
Last active September 29, 2016 05:01
Useful git config
# Default all new branches to fetch and rebase - not merge
git config --global branch.autosetuprebase always
# Record any merge conflict resolutions and reuse them automatically
git config --global rerere.enabled true
# Aliases
# Status
git config --global alias.st "status"
# Silent status
@VincentRbbmnd
VincentRbbmnd / server_security.md
Last active June 7, 2016 07:33
My First 5 Minutes On A Server; Or, Essential Security for Linux Servers

Let’s Get Started

Our box is freshly hatched, virgin pixels at the prompt. I favor Ubuntu; if you use another version of linux, your commands may vary. Five minutes to go:

passwd

Change the root password to something long and complex. You won’t need to remember it, just store it somewhere secure - this password will only be needed if you lose the ability to log in over ssh or lose your sudo password.

apt-get update
@VincentRbbmnd
VincentRbbmnd / ember-cli-bootstrap-sass.md
Last active June 29, 2016 08:56
Adding Bootstrap sass files to ember-cli project

Bootstap SASS in Ember-cli

When you have an existing ember-cli project and want to add bootstrapp-sass

Install ember-cli-sass

ember install ember-cli-sass

Install Bootstrap wiith SASS

bower install bootstrap-sass --save

@VincentRbbmnd
VincentRbbmnd / Rename git branch.md
Last active February 15, 2017 11:23
Rename git branch locally and remotely

Move to the branch you want to rename.

git branch -m new-branch or git branch -m old-branch new-branch

Set upstream for new branch.

git push --set-upstream origin new-branch

Delete old branch.

@VincentRbbmnd
VincentRbbmnd / ubuntu-rubymine.md
Last active June 8, 2018 12:15
Ubuntu (tested on 17.10 & 18.04) RubyMine installation steps

Ubuntu RubyMine installation steps

  1. Install RubyMine
sudo tar xf RubyMine-X.Y.Z.tar.gz -C /opt/
cd /opt/RubyMine-X.Y.Z/bin
./rubymine.sh
@VincentRbbmnd
VincentRbbmnd / index.html
Created November 28, 2018 13:04
NS API Spoortkaart JSON demo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Data Visualization</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>