Skip to content

Instantly share code, notes, and snippets.

View rppf's full-sized avatar
😏
Addicted to automation.

Raymond P. Florendo rppf

😏
Addicted to automation.
  • Philippines
View GitHub Profile
@rppf
rppf / gist:afb5ce2b0e29bd04e817d0d963703b50
Last active September 14, 2018 07:34
Readers Digest
http://linuxmanage.com/master-slave-powerdns-managed-by-poweradmin.html
https://www.vpsserver.com/community/tutorials/9/setup-a-master-to-master-replication-between-two-mariadb-servers/
http://msutic.blogspot.com/2015/02/mariadbmysql-master-master-replication.html
https://www.digitalocean.com/community/tutorials/how-to-configure-dns-replication-on-a-slave-powerdns-server-on-ubuntu-14-04
https://www.tecmint.com/mariadb-master-slave-replication-on-centos-rhel-debian/
https://www.techrepublic.com/article/how-to-set-up-database-replication-with-mariadb/
https://www.digitalocean.com/community/tutorials/how-to-import-and-export-databases-in-mysql-or-mariadb
name: orbeon
deployments:
- containers:
- image: bitnami/tomcat:9.0-master
env:
- name: TOMCAT_USERNAME
value: admin
- name: TOMCAT_PASSWORD
value: thisisnotapassword
@rppf
rppf / run.sh
Last active June 4, 2018 02:54
#!/bin/bash
echo -e " \e[1mSetting up Project ID"
gcloud config set project hello-k8s-205801
if [ $? -eq 0 ]; then
echo -e " \e[1mSetting up zone"
gcloud config set compute/zone us-central1-b
echo -e " \e[1mSetting up clusters"
gcloud container clusters create hello-cluster --num-nodes=5
# config file for ansible -- https://ansible.com/
# ===============================================
# nearly all parameters can be overridden in ansible-playbook
# or with command line flags. ansible will read ANSIBLE_CONFIG,
# ansible.cfg in the current working directory, .ansible.cfg in
# the home directory or /etc/ansible/ansible.cfg, whichever it
# finds first
[defaults]
[webserver]
localhost
---
- hosts: localhost
become: true
roles:
- ansible-role-php7
@rppf
rppf / ansible-role-test.sh
Created March 27, 2018 18:27 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - role_dir: the directory where the role exists (default = $PWD)
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)
<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>@yield('title', config('app.name'))</title>
<link rel="stylesheet" href="{{ mix('/assets/app.css') }}" type="text/stylesheet"/>
</head>
<body>
const utils = require('./utils');
const mix = require('laravel-mix');
/*
|------------------------------------------------------------------------------
|
|------------------------------------------------------------------------------
|
|
|
@charset "utf-8";
/*
|------------------------------------------------------------------------------
| Import The Preferred CSS Framework
|------------------------------------------------------------------------------
|
| Firstly, we need to import the CSS framework that will serve
| as the foundation of our styles. By default, we will use
| the Bulma CSS framework which is great for starter.