Skip to content

Instantly share code, notes, and snippets.

View vnys's full-sized avatar

Victor Nystad vnys

View GitHub Profile
@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 / footer.html
Created March 20, 2018 21:35
stacc insight workshop
@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 / 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 / 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 / install-tmux
Created May 16, 2018 07:12 — forked from philipsd6/install-tmux
Install tmux 2.3 on rhel/centos 7
# Install tmux on rhel/centos 7
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
tar -xvzf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure --prefix=/usr/local
@vnys
vnys / DIR_COLORS
Created May 21, 2018 16:00
dir colors
# Executables og directories endret, ble for mørk med gotham
# Configuration file for dircolors, a utility to help you set the
# LS_COLORS environment variable used by GNU ls with the --color option.
# This file goes in the /etc directory, and must be world readable.
# You can copy this file to .dir_colors in your $HOME directory to override
# the system defaults.
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
# Copying and distribution of this file, with or without modification,
@vnys
vnys / details.md
Last active July 9, 2018 07:12
details github flavored markdown

Using details and summary

When you have a very long list or stack trace in a comment or issue on github, you can use the details and summary elements to make a collapsible block

Here be dragons!

Zero indents if you want to use markdown

  • Dusan hates
@vnys
vnys / index.html
Created September 29, 2018 09:19
AFK 2012 Hetlevik
<iframe src="https://calendar.google.com/calendar/embed?showNav=0&amp;showDate=0&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;showTz=0&amp;mode=AGENDA&amp;height=600&amp;wkst=2&amp;bgcolor=%23FFFFFF&amp;src=vouajpiu4g0phsgj14slibgjt0%40group.calendar.google.com&amp;color=%23AB8B00&amp;ctz=Europe%2FOslo" frameborder="0" scrolling="no" style="width: 100vw; height: 100vh; border: none"></iframe>
@vnys
vnys / Powerline.md
Created October 24, 2018 20:39 — forked from mrkara/Powerline.md
Install Powerline on Debian 9 Stretch
  1. Install pip sudo apt-get install python-pip
  2. Install powerline sudo pip install powerline-status
  3. Install fonts sudo apt-get install fonts-powerline
  4. Add these lines to respective files:

.vimrc > set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/