Skip to content

Instantly share code, notes, and snippets.

View shoaibjdev's full-sized avatar

Shoaib R Khan shoaibjdev

View GitHub Profile
@sahilsk
sahilsk / install_logstalgia_on_mac.sh
Last active May 10, 2022 11:47
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
@schtobia
schtobia / nginx_client_cn_auth.conf
Last active October 17, 2025 19:39
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;
@rbowen
rbowen / rdo_rhelosp.md
Created January 20, 2015 17:07
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?

@taomaree
taomaree / chknfs.sh
Last active December 16, 2019 12:49
nfs ha keepalived configure file
#!/bin/bash
###filename: chknfs.sh
###usage: crontab */1 * * * * root /root/chknfs.sh > /dev/null 2>&1
keep="/data/.keep"
if [ ! -f $keep ]; then
umount -f /data && mount /data
fi
@kfox
kfox / tcpproxy.js
Created April 5, 2012 20:03
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();
}