Skip to content

Instantly share code, notes, and snippets.

View allanice001's full-sized avatar

Allan allanice001

View GitHub Profile
@allanice001
allanice001 / setup.sh
Last active May 16, 2024 09:58 — forked from QueuingKoala/setup.sh
Sub-CA example
# Assumptions: easyrsa3 available in current dir, and functional openssl.
# This basic example puts the "offline" and "sub" PKI dirs on the same system.
# A real-world setup would use different systems and transport the public components.
# Build root CA:
EASYRSA_PKI=offline ./easyrsa init-pki
EASYRSA_PKI=offline ./easyrsa build-ca nopass
# Build sub-CA request:
EASYRSA_PKI=sub ./easyrsa init-pki
[![](https://mermaid.ink/img/pako:eNptksFu2zAQRH9loJODJvChNx0C2I4duEBRN0yQQxwUNLWWCEukSi7rCkH-vSvJjoEiOkiUtDv7OMO3zPiCsjyL9DuRM3RndRl0s3WQ6ylSuLm9_aK0jjkeqLSRKWAKZUuHtfusSrEOPFXs2-kDxeFlEUgzYeEda-tEQH74FAyN_X3fuX-lcpzKp_iuW6xsTRHsYT668TLX5kAFdh3U19fPINZOOPfaEI6WKzzTbn23FMXJN-JdEJmIe5lx1B24awnhBCQl95ax8QWWjFl9dSGEqJ8Jn9ra6wJR_yEUmjX2PoD-kklsvcNkFjtncIPGlhXDkbA-K4WKAl3hBY8V4TFYc-gwt_x6mbFS_RagOrG5-ZkoUY7hgf1gQz-mDd5QjNaVosSjyo6MTlE2KzhiE45abuLZiESwzvimrUmW--RMDxkHmvPsy8ABYNNx5d2v-TLHZhx3wtCuQEkSQh-QT9wmxoRtQ-DKRtnbLMnYRU3apfYk_iEm0jc4W_hjbB7jLYmRBk_FqXGTFEny7kn_s2dIOkd2nTUUGm0LObxvfc0244oa2ma5LAsdDtts696lLrWSES0Lyz5k-V7Xka4zLaBKUspyDonORafTP358_wdMzw18)](https://mermaid.live/edit#pako:eNptksFu2zAQRH9loJODJvChNx0C2I4duEBRN0yQQxwUNLWWCEukSi7rCkH-vSvJjoEiOkiUtDv7OMO3zPiCsjyL9DuRM3RndRl0s3WQ6ylSuLm9_aK0jjkeqLSRKWAKZUuHtfusSrEOPFXs2-kDxeFlEUgzYeEda-tEQH74FAyN_X3fuX-lcpzKp_iuW6xsTRHsYT668TLX5kAFdh3U19fPINZOOPfaEI6WKzzTbn23FMXJN-JdEJmIe5lx1B24awnhBCQl95ax8QWWjFl9dSGEqJ8Jn9ra6wJR_yEUmjX2PoD-kklsvcNkFjtncIPGlhXDkbA-K4WK
import React from 'react';
import { AuthContext, AppNav, Header, HoverNav, Button } from 'components/lib';
import ClassNames from 'classnames';
import '../layout.scss';
import './app.scss';
export class AppLayout extends React.Component {
constructor() {
super();

Keybase proof

I hereby claim:

  • I am allanice001 on github.
  • I am dragonmaster (https://keybase.io/dragonmaster) on keybase.
  • I have a public key ASDS9B7IxVQiACYNL4YxfCl0aTHlgk2A1KBcIpjX5ZX-1wo

To claim this, I am signing this object:

@allanice001
allanice001 / upgrade.yml
Created June 19, 2017 09:41
Upgrade playbook for RedHat and Debian type hosts
---
- hosts: all
become: yes
tasks:
- name: Update packages list (apt)
apt: update_cache=yes
when: ansible_os_family == 'Debian'
- name: Update package list (yum)
@allanice001
allanice001 / devops-materials-online.txt
Created February 16, 2017 07:26
DevOps Materials Online
======
Videos
======
DevOps
What is DevOps? by Rackspace - Really great introduction to DevOps
https://www.youtube.com/watch?v=_I94-tJlovg
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept)
@allanice001
allanice001 / ansible-git.md
Last active February 11, 2017 14:57 — forked from sivel/ansible-git.md
Ansible Contributors Guide for working with git/GitHub

Ansible Contributors Guide for working with git/GitHub

First Note

Never, ever, modify or commit things to devel, always do work in a feature branch

Setting up the ansible and modules repos from forks

export GITHUB_USER=sivel
@allanice001
allanice001 / apache-vhost-template.yml
Created January 7, 2017 11:04
Testing configuration files before they go live - with Ansible
---
# create vhost for site
- name: Apache | Create vhost for site
template:
src: vhost.conf.j2
dest: "{{ apache_vhost_available }}/{{ vhost_name }}.conf"
mode: 0644
owner: root
group: root
@allanice001
allanice001 / config.json
Created May 18, 2016 20:36
Nginx Ajenti Working reverse proxy
=== /etc/ajenti/config.json ===
{
"users": {
"root": {
"configs": {
"ajenti.plugins.notepad.notepad.Notepad": "{\"bookmarks\": [], \"root\": \"/\"}",
"ajenti.plugins.terminal.main.Terminals": "{\"shell\": \"sh -c $SHELL || bash\"}",
"ajenti.plugins.logs.main.Logs": "{\"root\": \"/var/log\"}",
"ajenti.plugins.dashboard.dash.Dash": "{\"widgets\": [{\"index\": 0, \"config\": null, \"container\": \"1\", \"class\": \"ajenti.plugins.sensors.memory.MemoryWidget\"}, {\"index\": 1, \"config\": null, \"container\": \"1\", \"class\": \"ajenti.plugins.sensors.memory.SwapWidget\"}, {\"index\": 2, \"config\": null, \"container\": \"1\", \"class\": \"ajenti.plugins.dashboard.welcome.WelcomeWidget\"}, {\"index\": 0, \"config\": null, \"container\": \"0\", \"class\": \"ajenti.plugins.sensors.uptime.UptimeWidget\"}, {\"index\": 1, \"config\": null, \"container\": \"0\", \"class\": \"ajenti.plugins.power.power.PowerWidget\"}, {\"index\":