Skip to content

Instantly share code, notes, and snippets.

View fobbyal's full-sized avatar

Alex Liang fobbyal

View GitHub Profile
@fobbyal
fobbyal / rabbitmq-autocluster_k8s_persistent.bash
Created June 11, 2020 20:41 — forked from gmr/rabbitmq-autocluster_k8s_persistent.bash
Deploy rabbitmq-autocluster on k8s with persistent storage (EBS)
#!/bin/bash
set -eo pipefail
export KUBE_NAMESPACE=test
export REPLICA_COUNT=3
cat <<EOF | kubectl apply -f -
apiVersion: apps/v1beta1
kind: StatefulSet
@fobbyal
fobbyal / github-pandoc.css
Created May 1, 2020 04:15 — forked from dashed/github-pandoc.css
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@fobbyal
fobbyal / zfs-on-oracle-linux-7.md
Created January 9, 2020 20:41 — forked from jaytaylor/zfs-on-oracle-linux-7.md
Installing ZFS on Linux on Oracle Linux 7

Installing ZFS on Linux on Oracle Linux 7

We're going to add ZFS support to our Oracle Linux installation. We'll just add the ZFS on Linux Repo, verify the binary signature from GitHub, install the files, ensure the driver loads properly, and verify that it's functional. We'll save things like array creation for another document.

This is mostly a transcription of the process from the CentOS/RHEL ZoL installation manual.

Install the repo file

Add the ZFSonLinux repo and verify the fingerprint.

Note — manual fingerprint verification is atypical but we'll do it anyway just for kicks.

@fobbyal
fobbyal / Generate TransactionalImmutables.groovy
Created May 9, 2019 06:37
Generate TransactionalImmutables.groovy
import com.intellij.database.model.DasTable
import com.intellij.database.util.Case
import com.intellij.database.util.DasUtil
/*
* Available context bindings:
* SELECTION Iterable<DasObject>
* PROJECT project
* FILES files helper
*/
@fobbyal
fobbyal / Generate Immutabless.groovy
Last active May 9, 2019 06:36
Generate Immutable groovy
import com.intellij.database.model.DasTable
import com.intellij.database.util.Case
import com.intellij.database.util.DasUtil
/*
* Available context bindings:
* SELECTION Iterable<DasObject>
* PROJECT project
* FILES files helper
*/
@fobbyal
fobbyal / nginx.conf
Created February 3, 2019 13:46
nginx configuration for ui and api
user fobbyal power;
worker_processes auto;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@fobbyal
fobbyal / checkbox.svg
Created January 22, 2019 03:01
check box svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fobbyal
fobbyal / README.md
Created January 21, 2019 17:00 — forked from phillipgreenii/README.md
Running NPM Scripts through maven

I am in the process of introducing single page applications to where I work. For development, using node based build tools is much easier for the single page applications. However, the build process for our organization is based upon maven. Our solution started with the maven plugin frontend-maven-plugin. It worked great at first, but then we ran into a situation that I couldn't make work with it.

As stated before, at our organization, we have the older ecosystem which is maven and the newer ecosystem which is node. Our goal was to keep the hacking to a minimum. We did this by putting all of the hacks into a single super node based build file. This is what maven calls and the reason frontend-maven-plugin wasn't sufficient. The super node based build script calls all of the other build scripts by spawning npm run. Try as I might, I could not figure out how to make the spawn work. front-end-maven-plugin downloads npm

@fobbyal
fobbyal / gist:21ce4d3be57321cf4ee5151c6c3998b7
Created December 5, 2018 00:44 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
@fobbyal
fobbyal / gist:f96f2f111cc253a77d557ff2f9beef52
Last active August 25, 2021 19:56
choco-win10-install
choco install jdk8 intellijidea-community putty slack filezilla baretail vscode sublimetext4 git tortoisesvn nvm maven winrar 7zip -y
-- use nvm to install node8 and node11
choco install yarn jdk11