Skip to content

Instantly share code, notes, and snippets.

define host {
host_name cdca06d5-8e9e-42f5-a0be-403941918358
address 127.0.0.1
max_check_attempts 1
check_period 24x7
contacts default
check_command dummy-host-check
check_interval 5
parents
This file has been truncated, but you can view the full file.
{
"data": [
{
"uuid": "7e73b8df-9b64-407c-8d92-75cd56ff1a18",
"interfaces": [
{
"uuid": "1cbcdad1-2de9-4694-a2e8-1ac5cc8d8efa",
"cmd": "dummy-host-check",
"services": [
{
# MYSQL
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password password #{ENV['DB_PASSWORD']}"
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password_again password #{ENV['DB_PASSWORD']}"
sudo apt-get install -y mysql-server
mysql -uroot -p"#{ENV['DB_PASSWORD']}" -e "create database #{ENV['DB_DATABASE']}"
mysql -uroot -p"#{ENV['DB_PASSWORD']}" -e "create user '#{ENV['DB_USERNAME']}'@'localhost' identified by '#{ENV['DB_PASSWORD']}'"
mysql -uroot -p"#{ENV['DB_PASSWORD']}" -e "grant all on #{ENV['DB_DATABASE']}.* to '#{ENV['DB_USERNAME']}'@'localhost'"
mysql -uroot -p"#{ENV['DB_PASSWORD']}" -e "flush privileges"
// Generated on 2016-01-31 using generator-angular 0.15.1
'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) {
#!/bin/bash
headPhones="alsa_output.usb-Turtle_Beach_Turtle_Beach_PX3__PC_-00-PX3PC.analog-stereo"
speakers="alsa_output.pci-0000_00_14.2.analog-stereo"
current=$(pactl list short sinks | grep "RUNNING" | cut -f2)
if [ $current = $headPhones ]; then
target=$speakers
else
@nmalacarne
nmalacarne / .vimrc
Last active December 12, 2015 21:24
A copy of my .vimrc file
set nocompatible " Disable vi-compatibility
filetype off " required
set t_Co=256
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'