Skip to content

Instantly share code, notes, and snippets.

View vnys's full-sized avatar

Victor Nystad vnys

View GitHub Profile
@vnys
vnys / c9-github-integration.md
Created May 1, 2018 17:54 — forked from juemura/c9-github-integration.md
Tutorial: How to connect your Cloud9 and GitHub accounts via ssh

#Tutorial: How to connect your Cloud9 and GitHub accounts via ssh

To avoid having to enter your username and password EVERY-SINGLE-TIME you push, follow these step-by-step instructions.


#####1. Copy your C9 ssh key. Go to https://c9.io/account/ssh and copy the key below *"Connect to your private git repository"*. It's a very long string that starts with ssh-rsa and ends with your email.

#####2. Paste your C9 ssh key into your GitHub account

@vnys
vnys / bash-colors.md
Created March 30, 2018 19:36 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@vnys
vnys / docker-windows.md
Created March 27, 2018 07:23
docker windows local directory
docker build -t vnys/foo .

Then run it on Linux:

docker run -it -v $(pwd):/source vnys/foo bash
@vnys
vnys / footer.html
Created March 20, 2018 21:35
stacc insight workshop
@vnys
vnys / molokai.vim
Last active March 19, 2018 12:51
molokai vim with modified comments colour
" Vim color file
"
" Author: Tomas Restrepo <[email protected]>
"
" Note: Based on the monokai theme for textmate
" by Wimer Hazenberg and its darker variant
" by Hamish Stuart Macpherson
"
hi clear
@vnys
vnys / win10colors.cmd
Created March 10, 2018 21:54 — forked from mlocati/win10colors.cmd
ANSI Colors in standard Windows 10 shell
@echo off
cls
echo  STYLES 
echo ^<ESC^>[0m Reset
echo ^<ESC^>[1m Bold
echo ^<ESC^>[4m Underline
echo ^<ESC^>[7m Inverse
echo.
echo  NORMAL FOREGROUND COLORS 
echo ^<ESC^>[30m Black (black)
@vnys
vnys / git-checkout-pr-locally.md
Last active December 11, 2018 12:44 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@vnys
vnys / .eslintrc.js
Created February 27, 2018 11:15 — forked from molily/.eslintrc.js
Eslint config based on eslint-config-airbnb 14.0.0, eslint-plugin-import 2.2.0, eslint-plugin-jsx-a11y 3.0.2
module.exports = {
parserOptions: {
ecmaVersion: 7,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true
}
},

in terminal

apt-get install pygments

in case the 'binary' pygmentize is not found

  • Download the most recent tarball from the here
  • Unpack the tarball
  • sudo python setup.py install
@vnys
vnys / mpg.md
Last active February 14, 2018 18:39
MGP facebook / mail

Det nærmer seg årets høydepunkt, nemlig MGP 🎉🎈🎶

For å få gjennomført et såpass stort arrangement krever det at vi foreldre stiller opp.

Det er 3 kjøkkenvaktøkter, 2 parkeringsvaktøkter og en nedriggingsøkt å velge mellom. Tidspunktene til vaktene er slik at alle skal kunne få med seg en av forestillingene. Er man f.eks. parkeringsvakt slutter vakten fem minutter før forestillingen begynner.

Tidspunktene kan komme til å bli skjøvet litt på, men i utgangspunktet blir de slik vi har satt opp i skjemaet.

Så da er det bare til å melde seg 😊