Skip to content

Instantly share code, notes, and snippets.

View shoaibjdev's full-sized avatar

Shoaib R Khan shoaibjdev

View GitHub Profile
@shoaibjdev
shoaibjdev / PinblockTool.java
Created August 5, 2020 07:36 — forked from Gilmor/PinblockTool.java
Pinblock ISO 9564 format 0
package cz.monetplus.mnsp.tools.misc;
import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Hex;
import org.apache.commons.lang.StringUtils;
/**
* Tools for encoding a decoding pinblock
*
* @author Tomas Jacko <tomas.jacko [at] monetplus.cz>
@shoaibjdev
shoaibjdev / nginx_client_cn_auth.conf
Created March 19, 2020 11:47 — forked from schtobia/nginx_client_cn_auth.conf
CN-based client authentification with nginx. This emulates Apache's SSLRequire (%{SSL_CLIENT_S_DN_CN} in {"Really Me"})
map $ssl_client_s_dn $ssl_client_s_dn_cn {
default "";
~/CN=(?<CN>[^/]+) $CN;
}
server {
listen 80;
listen [::]:80;
listen 443 ssl;
@shoaibjdev
shoaibjdev / tcpproxy.js
Created July 29, 2019 12:26 — forked from kfox/tcpproxy.js
A basic TCP proxy written in node.js
var net = require("net");
process.on("uncaughtException", function(error) {
console.error(error);
});
if (process.argv.length != 5) {
console.log("usage: %s <localport> <remotehost> <remoteport>", process.argv[1]);
process.exit();
}
@shoaibjdev
shoaibjdev / install_logstalgic_on_mac.sh
Created July 9, 2019 15:55 — forked from sahilsk/install_logstalgia_on_mac.sh
Logstalgia on mac: Install & Usage
#Download and extract logstalgia
brew install wget
wget https://github.com/acaudwell/Logstalgia/releases/download/logstalgia-1.0.7/logstalgia-1.0.7.tar.gz
tar -zxvf logstalgia*.gz
cd logstalgia*
# Install logstlagia dependencies
#brew install ttfautohint --with-qt
brew install pkg-config glew sdl2 SDL2_image sdl SDL_image boost GLM freetype pcre
@shoaibjdev
shoaibjdev / gist:b9f8595096668c0159c144f32e6c96e1
Created April 8, 2019 19:49 — forked from antonym/gist:f43a967fac0f1c2bcf00f976295cba0f
openstack_user_config.yml for openstack-ansible blog
---
# container networks, safe to leave these as defaults
cidr_networks:
container: 172.29.236.0/22
tunnel: 172.29.240.0/22
storage: 172.29.244.0/22
# IPs from your tunnel and container networks that you want to reserve for the hosts
used_ips:
- 172.29.236.1
@shoaibjdev
shoaibjdev / rdo_rhelosp.md
Created March 30, 2019 18:30 — forked from rbowen/rdo_rhelosp.md
RDO vs RHEL OSP

Community vs Commercial

When I talk about Red Hat's involvement in RDO (http://openstack.redhat.com/) the question I often get is, "doesn't that undermine sales of RHEL OSP (Red Hat's paid OpenStack offering)?"

Well, it's complicated.

What's RDO?

@shoaibjdev
shoaibjdev / how-to-install-wkhtmltox-on-centos.md
Created March 6, 2019 11:37
How to install `wkhtmltopdf` & `wkhtmltoimage` on Centos

Install wkhtmltopdf & wkhtmltoimage

wkhtmltopdf and wkhtmltoimage are open source (LGPLv3) command line tools to render HTML into PDF and various image formats using the Qt WebKit rendering engine.

  1. Get the latest version of the RPM directly from the homepage.
    wget https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm
  2. Install RPM.
@shoaibjdev
shoaibjdev / bigdashboard_output.pdf
Created February 13, 2019 20:49 — forked from svet-b/bigdashboard_output.pdf
PDF export of Grafana dashboard using puppeteer
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shoaibjdev
shoaibjdev / openssl.md
Created April 28, 2018 17:14 — forked from NoMan2000/openssl.md
Common OpenSSL Commands with Keys and Certificates

Common OpenSSL Commands with Keys and Certificates

SSL Info

Generate RSA private key with certificate in a single command

openssl req -x509 -newkey rsa:4096 -sha256 -keyout example.key -out example.crt -subj "/CN=example.com" -days 3650 -passout pass:foobar

Generate Certificate Signing Request (CSR) from private key with passphrase

openssl x509 -x509toreq -in example.crt -out example.csr -signkey example.key -passin pass:foobar

[etcd]
10.42.10.206
[kube-master]
10.42.10.206
[kube-node]
10.42.10.221
10.42.10.223