Skip to content

Instantly share code, notes, and snippets.

View shoaibjdev's full-sized avatar

Shoaib R Khan shoaibjdev

View GitHub Profile
@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 / 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 / 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 / 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 / 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 / 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>