This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Console; | |
namespace ConsoleApplication2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Write("Yo"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
let g:ctrlp_custom_ignore = '\v[\/](node_modules|jspm_packages|target|dist|vendor)|(\.(swp|ico|git|svn))$' | |
let g:airline#extensions#tabline#enabled = 1 | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "TODO", | |
"version": "0.0.1", | |
"description": "TODO", | |
"author": "TODO", | |
"license": "MIT", | |
"main": "dist/index.js", | |
"scripts": { | |
"build": "babel lib/ -d dist/ --source-maps", | |
"eslint": "eslint src", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
# Debug symbols setup for Ubuntu 16.x | |
sudo -i | |
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse | |
deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse | |
deb http://ddebs.ubuntu.com $(lsb_release -cs)-security main restricted universe multiverse | |
deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" | \ | |
tee -a /etc/apt/sources.list.d/ddebs.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find linux distro details | |
## This info is generally available in os-release or lsb-release files. | |
cat /etc/*-release | |
## Alternatively we can use the lab_release command | |
lsb_release -a | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.fontFamily": "Menlo", | |
"editor.fontSize": 15, | |
"javascript.validate.enable": false, | |
"window.reopenFolders": "none", | |
"editor.renderWhitespace": "none", | |
"editor.renderIndentGuides": true, | |
"editor.rulers": [ | |
80, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos | |
ENV DOWNLOADS /home/downloads | |
ENV TOOLS /home/tools | |
ENV GOROOT $TOOLS/go | |
ENV GOPATH /home/go | |
ENV PATH $GOROOT/bin:$PATH | |
ENV APP [APP-NAME] | |
ADD . /home/go/src/$APP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Container with go toolchain. | |
# Create a directory in host and map it to /go volume to persist data between | |
# multiple commands. | |
# Usage: | |
# docker build -t go | |
# docker run --rm -v [dir-in-host]:/go -v $GOPATH/src/app:/go/src/app go get app | |
# docker run --rm -v [dir-in-host]:/go -v $GOPATH/src/app:/go/src/app go test app | |
# docker run --rm -v [dir-in-host]:/go -v $GOPATH/src/app:/go/src/app go build -o app/build/out app | |
# | |
FROM centos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
DIR=$(dirname "$0") | |
if [[ $(git status -s) ]] | |
then | |
echo "The working directory is dirty. Please commit any pending changes." | |
exit 1; |
OlderNewer