docker-compose up # Starts multiple containers from docker-compose.yaml in same dir
docker-compose exec <service> <cmd> # Execute command in running container
docker-compose down # Removes associated containers, networks and volumes
$ docker-compose up -d # start containers in background
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
#' Install/update necessary packages from CRAN, GitHub | |
#' | |
#' @param packages a vector of strings with names of packages from CRAN, Bioconductor, GitHub | |
#' @param file a file with packages; overrides packages parameter | |
#' @param update_packages whether to update existing packages (Default: FALSE) | |
#' @param repos the CRAN repository to use | |
#' @param dry_run whether to test for missing packages (Default: FALSE) | |
#' | |
#' @example | |
#' \dontrun { |
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
{% comment %} | |
# | |
# I modified the original code from http://anjesh.github.io/2015/01/25/collection-pagination-working-github-pages/ | |
# | |
# Make a collection in _config.yml and create the folder _your_collection in your root. | |
# | |
# collections: | |
# your_collection: | |
# output: true | |
# permalink: /:collection/:title/ |
The basic flow is this:
- When you want to update a feature branch you're working on, rebase on to it.
- When you're ready to integrate the work you've been doing into the master branch, merge it.
Given the name of your feature branch is registration-page:
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
# -*- coding: utf-8 -*- | |
from sqlalchemy import create_engine | |
from sqlalchemy.types import SchemaType | |
from sqlalchemy.engine import reflection | |
from sqlalchemy.schema import ( | |
MetaData, | |
Table, | |
DropTable, | |
ForeignKeyConstraint, |
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/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import requests | |
import json | |
import time | |
import csv | |
__version__ = "1.0" |
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/env bash | |
################################################################ | |
# Script_Name : install-xrdp-1.9.2.sh | |
# Description : Perform an automated custom installation of xrdp | |
# on ubuntu 16.04.4 | |
# Date : March 2018 | |
# written by : Griffon | |
# Web Site :http://www.c-nergy.be - http://www.c-nergy.be/blog | |
# Version : 1.9.2 |
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
@echo off | |
:: http://weblogs.asp.net/jgalloway/archive/2006/11/20/top-10-dos-batch-tips-yes-dos-batch.aspx | |
echo %%~1 = %~1 | |
echo %%~f1 = %~f1 | |
echo %%~d1 = %~d1 | |
echo %%~p1 = %~p1 | |
echo %%~n1 = %~n1 | |
echo %%~x1 = %~x1 | |
echo %%~s1 = %~s1 | |
echo %%~a1 = %~a1 |