We are using a simple git flow based on git flow and github flow. We have two branches develop and master.
develop is a representation of staging
master is a representation of production
// Generated on 2014-02-11 using generator-webapp 0.4.7 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
// ==UserScript== | |
// @name Next Step for Trello cards | |
// @version 0.4.7 | |
// @homepage http://bit.ly/next-for-trello | |
// @description Appends the first unchecked checklist item to the title of each card, when visiting a Trello board. | |
// @match https://trello.com/b/* | |
// @match http://trello.com/b/* | |
// @run-at document-start | |
// ==/UserScript== |
desc "creates database & database user" | |
task :create_database do | |
set :root_password, Capistrano::CLI.password_prompt("MySQL root password: ") | |
set :db_user, Capistrano::CLI.ui.ask("Application database user: ") | |
set :db_pass, Capistrano::CLI.password_prompt("Password: ") | |
set :db_name, Capistrano::CLI.ui.ask("Database name: ") | |
run "mysql --user=root --password=#{root_password} -e \"CREATE DATABASE IF NOT EXISTS #{db_name}\"" | |
run "mysql --user=root --password=#{root_password} -e \"GRANT ALL PRIVILEGES ON #{db_name}.* TO '#{db_user}'@'localhost' IDENTIFIED BY '#{db_pass}' WITH GRANT OPTION\"" |
web: node server |
export CHROME_BIN=/usr/bin/google-chrome | |
export DISPLAY=:99.0 | |
sh -e /etc/init.d/xvfb start | |
sudo apt-get update | |
sudo apt-get install -y libappindicator1 fonts-liberation | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome*.deb |
voila! now your terminal will always start with these colors
Simple Uptime Robot Dashing widget
Dashing widget to display a short list of Uptime Robot monitors.
##Usage
Add this to your Gemfile and run bundle install
:
These instructions are based on this article: https://www.alexruf.net/2016/05/23/setup-gogs-git-service.html.
Setup Raspberry Pi with minimal Raspbian image. You need to connect to the HDMI port and set the following:
sudo raspi-config
There you need to enable the SSH server and you should change the hostname.
sudo su postgres | |
psql | |
update pg_database set datistemplate=false where datname='template1'; | |
drop database Template1; | |
create database template1 with owner=postgres encoding='UTF-8' | |
lc_collate='en_US.utf8' lc_ctype='en_US.utf8' template template0; | |
update pg_database set datistemplate=true where datname='template1'; |