$ ssh [email protected]
Last login: Tue Sep 29 14:10:28 2015 from 173.176.236.193
[root@gitlab-c7 ~]# su gitlab-psql
sh-4.2$ /opt/gitlab/embedded/bin/psql --list
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
----------------------+-------------+----------+---------+-------+---------------------------------
gitlab_ci_production | gitlab_ci | UTF8 | C | C |
gitlabhq_production | gitlab | UTF8 | C | C |
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 | |
# Supervisor Agent Easy install | |
# Execute like this: | |
# curl -k https://gist.githubusercontent.com/gabtastic/aac9cca2064ac518ef69/raw/e8b507b7bf29e2103e5408fc7e9b265eac803c07/bootstrap.sh -s | sh | |
hostname=`hostname` | |
function installpackage { | |
echo "Installing $1" |
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
<cacti> | |
<hash_0000246266d3e66ff09f8f20b43be312a1f468> | |
<name>Interface - Traffic WAN (max)</name> | |
<graph> | |
<t_title></t_title> | |
<title>|host_description| - Traffic WAN (max)</title> | |
<t_image_format_id></t_image_format_id> | |
<image_format_id>1</image_format_id> | |
<t_height></t_height> | |
<height>120</height> |
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/sh | |
grep -q "KAYAKO_API_KEY" test.txt | |
if [ $? == 1 ]; | |
then | |
echo "export KAYAKO_API_KEY='3115DAFE-3B3D-5B20-991C-A49V6518CAC9'" >> test.txt | |
fi |
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/sh | |
grep -q "KAYAKO_API_KEY" /etc/profile.d/panorama.sh | |
if [ $? == 1 ]; | |
then | |
echo "export KAYAKO_API_KEY='3115DAFE-3B3D-5B20-991C-A49V6518CAC9'" >> /etc/profile.d/panorama.sh | |
fi |
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 | |
# Supervisor Agent Easy install | |
# Execute like this: | |
# curl -k https://gist.githubusercontent.com/gabtastic/85a37efa80517c2d2a4b/raw/ef03bec3415324f256ea7fe2aec9004a041d169a/bootstrap.sh -s | sh | |
hostname=`hostname` | |
function installpackage { | |
echo "Installing $1" |
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 | |
# Supervisor Agent Easy install | |
# Execute like this: | |
# curl -k https://gist.githubusercontent.com/gabtastic/9bc87fc469e56f497795/raw/2e6b6d5c3879b70bf2022fc292a39cae74133268/bootstrap.sh -s | sh | |
hostname=`hostname` | |
function installpackage { | |
echo "Installing $1" |
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 ruby | |
# Example output | |
# {"system_timezone":"EDT","lookup_timezone":"EDT","issue_timezone":false,"db_city":"Montreal","db_province":""} | |
require 'json' | |
# Get approximate location | |
wan = JSON.parse(`curl -s ipinfo.io`.chomp, quirks_mode: true) | |
hostname = `hostname` |
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 ruby | |
require 'json' | |
hostname = `hostname` | |
# Lookup coordinates and determine timezone | |
alfred_info = JSON.parse(`curl -s "http://api.atlas.intello.com/ihotel/devices?key=123&hostname=#{hostname}"`, quirks_mode:true) | |
account = alfred_info[0]['account'] | |
province = alfred_info[0]['province'].downcase |
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 | |
# Supervisor Agent Easy install | |
# Execute like this: | |
# curl -k https://gist.githubusercontent.com/gabtastic/bcb3891472056d747af3/raw/0730de896f82f4e530cd2001ee3f59fb1950929c/bootstrap.sh -s | sh | |
hostname=`hostname` | |
function installpackage { | |
echo "Installing $1" |