This file contains hidden or 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
| echo "deb http://apt.puppetlabs.com wheezy main" >>/etc/apt/sources.list | |
| apt-get update | |
| apt-get install foreman unicorn | |
| /etc/init.d/foreman stop | |
| #disable /etc/init.d/foreman | |
| rcconf |
This file contains hidden or 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
| [base] | |
| name=CentOS-$releasever - Base | |
| mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra | |
| #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ | |
| gpgcheck=1 | |
| gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 | |
| #released updates | |
| [updates] | |
| name=CentOS-$releasever - Updates |
This file contains hidden or 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
| vagrant ALL=NOPASSWD: ALL |
This file contains hidden or 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 | |
| # 2014, Mahyuddin Susanto <[email protected]> | |
| set -x | |
| SQLPASS=WHATEVER | |
| ARGS="-u root -h 202.154.57.61 -p$SQLPASS" | |
| SAVE="$HOME/mysql-backup/$(hostname -f)/$(date +%Y%m%d%H%M)" | |
| # remove database backup older that 90 days | |
| find $HOME/mysql-backup -mtime +90 | xargs rm -rf |
This file contains hidden or 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
| /interface bridge | |
| add name=loopback0 | |
| /port | |
| set 0 name=serial0 | |
| /routing bgp instance | |
| set default as=33 router-id=192.168.0.3 | |
| /ip address | |
| add address=192.168.0.3/32 interface=loopback0 network=192.168.0.3 | |
| add address=192.168.2.3/24 interface=ether1 network=192.168.2.0 | |
| /ip route |
This file contains hidden or 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
| ! | |
| ! Last configuration change at 15:37:08 UTC Fri Oct 31 2014 | |
| ! | |
| version 15.2 | |
| service timestamps debug datetime msec | |
| service timestamps log datetime msec | |
| ! | |
| hostname Cisco | |
| ! | |
| boot-start-marker |
This file contains hidden or 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
| vyatta@vyatta# show | |
| interfaces { | |
| ethernet eth0 { | |
| address 192.168.1.1/24 | |
| hw-id 52:54:00:12:34:56 | |
| } | |
| loopback lo { | |
| address 192.168.0.1/32 | |
| } | |
| } |
This file contains hidden or 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 | |
| host=localhost | |
| passwd=17agustus | |
| db=pdns | |
| user=pdns | |
| list=/tmp/blacklists/porn/domains | |
| sqlin="mysql -u $user -p$passwd -h $host $db" | |
| sql_new_domain () { |
This file contains hidden or 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
| ## APT source for Ubuntu Trusty 14.04 LTS | |
| deb http://buaya.klas.or.id/ubuntu/ trusty main restricted universe multiverse | |
| deb-src http://buaya.klas.or.id/ubuntu/ trusty main restricted universe multiverse | |
| deb http://buaya.klas.or.id/ubuntu/ trusty-updates main restricted universe multiverse | |
| deb-src http://buaya.klas.or.id/ubuntu/ trusty-updates main restricted universe multiverse | |
| deb http://buaya.klas.or.id/ubuntu/ trusty-security main restricted universe multiverse | |
| deb-src http://buaya.klas.or.id/ubuntu/ trusty-security main restricted universe multiverse |
This file contains hidden or 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 | |
| . `dirname $0`/../lib/init.sh | |
| . $BASE/lib/common.sh | |
| set -e | |
| EXCLUDE= | |
| INCLUDE= |