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
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix | |
];/ | |
# Bootloader. | |
boot.loader.grub.enable = true; |
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 | |
# https://gist.github.com/nekwebdev/906521db55aaa05fcbb6cfa31d7a624e | |
# @nekwebdev | |
# LICENSE: GPLv3 | |
# | |
# chocodots.sh | |
# | |
# script to create a local gitbare repository and pull from a bare github repository. | |
# | |
set -e |
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/bash | |
############################################################################ | |
## ██╗ ██████╗ █████╗ ███████╗███████╗ ███████╗███████╗██╗ ██╗ ## | |
## ██║ ██╔══██╗██╔══██╗██╔════╝██╔════╝ ██╔════╝██╔════╝██║ ██║ ## | |
## ██║ ██████╔╝███████║███████╗███████╗█████╗███████╗███████╗███████║ ## | |
## ██║ ██╔═══╝ ██╔══██║╚════██║╚════██║╚════╝╚════██║╚════██║██╔══██║ ## | |
## ███████╗██║ ██║ ██║███████║███████║ ███████║███████║██║ ██║ ## | |
## ╚══════╝╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝ ╚══════╝╚══════╝╚═╝ ╚═╝ ## | |
############################################################################ | |
## Preparation: |
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
color() { | |
color-usage() { | |
cat <<"USAGE" | |
Usage: color [OPTIONS] <color> | |
-b|--bold for bold text | |
-i|--italic for italic text | |
-u|--underline for underlined text | |
-f|--flash for blinking text, not possible together with --bg | |
-r|--reverse to switch fg and bg colors | |
-/--bg <color> for background color |
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
color() { | |
color-usage() { | |
cat <<"USAGE" | |
Usage: color [OPTIONS] <color> | |
-b|--bold for bold text | |
-i|--italic for italic text | |
-u|--underline for underlined text | |
-f|--flash for blinking text, not possible together with --bg | |
-r|--reverse to switch fg and bg colors | |
-/--bg <color> for background color |
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/bash | |
# This script is to create users for a web server setup using this guide: | |
# https://coderwall.com/p/zxffsg | |
# The script will prompt for information as it goes. | |
source ${ZDOTDIR-$HOME}/.bash/color.bash | |
# Get the server's IP | |
ip=$(hostname -i) | |
info="$(color -b blue)*$(color)" |
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 | |
# Configurable variables | |
database='vagrant' | |
username='vagrant' | |
password='vagrant' | |
echo '' | |
echo ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' | |
echo ' Bootstrapping Ubuntu Precise 32bit for Laravel 4' |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Configure your Laravel 4 project for this virtual machine | |
# | |
# 1- Add this environment in your project's start.php file: | |
# | |
# bootstrap/start.php: | |
# $env = $app->detectEnvironment(array( | |
# 'vagrant' => array('vagrant-laravel4') |