1 maak een migratie met de naam van je nieuwe column.. in dit geval test_number in tabel Article die al test heeft
rails g migration AddTestNumberToArticle test_number:integer
rails g migration ChangeArticle
# Search strftime on google to find time formats and default day month etc annotation | |
en: | |
# (or sv: whatever) | |
time: | |
formats: | |
short: "%A %e %B" | |
time: "%H:%M" | |
default: "%d/%m/%Y %H:%M" | |
small: '%a %d %B' | |
date: |
{ | |
"atomic_save": false, | |
"caret_extra_width": 1, | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/SublimeLinter/predawn (SL).tmTheme", | |
"copy_with_empty_selection": false, | |
"drag_text": false, | |
"enable_tab_scrolling": false, | |
"ensure_newline_at_eof_on_save": true, | |
"font_options": |
kleine calendar app boven in je scherm die google calendar laat zien.
sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install calendar-indicator
calendar-indicator
Zeker de life earth is mooi, maar zowieso meer controle op shuffelende wallpapers is goed (plus de awesome auto-download natuurlijk)
#!/bin/bash | |
# -*- Mode: sh; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- | |
# | |
# Authors: | |
# Sam Hewitt <[email protected]> | |
# Peter van der Meulen <[email protected]> | |
# | |
# Description: | |
# A post-installation bash script for Ubuntu (14.04) | |
# |
#Setup Your own Gitlab server from the on-click install image
##Create the server image
Login to Digital Ocean and create click the "New Droplet" button.
In the page fill out the details for your new droplet. The best thing is to choose $10.- server
since this server has the necessary RAM of 1GB. You can however choose for the $5.- server
to but this will require setting up Swap once your server is deployed.
Now when selecting your image choose "Application" and select GitLab.
Create the droplet and wait for your ssh keys to come in.
##Modify the Ubuntu environment. ###Change login details Log in to your root account using your version of the command below
#Intro Sometimes it can happen that you need a subdomain on your website were you test new features of the site. If this subdomain points to the same server you feel that you wasted time by going trough all those DNS stuff. guess what.. you are. many websites (including Wordpress) have this neat function that when you misstype a subdomain it points to a page 404. Are they making more domains while you are visiting that broken link, or did they in fact register all possible names? no. Meet "wildcard DNS" a system that let's your server create the subdomains and not DNS.
#The steps This guide will help you setup wildcard DNS on your Rails server with Passenger and Nginx.
##1. Domain settings First of all, let's go to the DNS settings within your domain settings on the website were you bought your Domain.
Is your digitalocean server getting overheated on memory when more and more visitors visit your site while cpu usage stays somehow normal? Chances are that you are not using a swap partition or file on your server. Swap is linux's way of pagefiling. When the server runs out of RAM it will start saving things to a swap partition.
In this small guide I will describe the creation of a swap partition under Linux.
You could create a disk image file (like a daemontools virtual disk) that is filled with zeros. 1GB of zero's in this case:
dd if=/dev/zero of=/mnt/swap.img bs=1M count=1024
But don't do this, keep reading ;)
set :rbenv_ruby, "2.0.0-p353" | |
set :application, 'vivorbi' | |
set :repo_url, 'github ssh repo' | |
# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp } | |
set :scm, :git | |
set :format, :pretty | |
set :log_level, :info |