Skip to content

Instantly share code, notes, and snippets.

Zafar Siddiqi zsiddiqi

  • Canada
Block or report user

Report or block zsiddiqi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
basuke / gen-security.php
Created Apr 20, 2011
Generate CakePHP configuration value for security, Security.salt and Security.cipherSeed.
View gen-security.php
$salt = genrandom(40);
$seed = genrandom(29, "0123456789");
echo "\tConfigure::write('Security.salt', '$salt');\n";
echo "\tConfigure::write('Security.cipherSeed', '$seed');\n";
function genrandom($len, $salt = null) {
if (empty($salt)) {
wsargent / gist:1258640
Created Oct 3, 2011
Setting up a base vagrant box for Oracle
View gist:1258640
Install instructions for 10.2:
[Required files]
predominant /
Created Oct 5, 2011
Install Ubuntu 11.04 Nginx based web server with PHP-FPM, MySQL and MongoDB
# Copyright (c) 2011 Cake Development Corporation (
# Ubuntu 11.04 based web server installation script
# Run this by executing the following from a fresh install of Ubuntu 11.04 server:
# bash -c "$(curl -fsSL" <mysqlPassword>
mklabs / bootstrap-plugins.txt
Created Dec 2, 2011
h5bp + twitter bootstrap integration
View bootstrap-plugins.txt
btoone /
Last active Feb 23, 2020
A curl tutorial using GitHub's API


An introduction to curl using GitHub's API.

The Basics

Makes a basic GET request to the specifed URI

kwharrigan /
Created Apr 12, 2012
MKS fast-import script for git
#Copyright (c) 2012 Kyle Harrigan
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#copies of the Software, and to permit persons to whom the Software is
#furnished to do so, subject to the following conditions:
jbarber /
Created Jun 11, 2012
LDAP example for searching and simple binding (authentication)
* First create the keystore (to allow SSL protection) by importing the LDAP
* certificate (cert.pem) with:
* keytool -import -keystore keystore -storepass changeit -noprompt -file cert.pem
* You can get the certificate with OpenSSL:
* openssl s_client -connect </dev/null 2>/dev/null | sed -n '/^-----BEGIN/,/^-----END/ { p }' > cert.pem
* Then compile this class with:
* javac
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
dlaxar / a. Add the epel repo to yum
Created Jun 26, 2012
Installing Redmine AND GitLab on CentOS 6.2 (part 1)
View a. Add the epel repo to yum
rpm -Uvh
dlaxar / Install newer ruby version (>= 1.9)
Created Jun 26, 2012
Installing Redmine AND GitLab on CentOS 6.2 (part 2)
View Install newer ruby version (>= 1.9)
curl -O
tar xzvf ruby-1.9.3-p0.tar.gz
cd ruby-1.9.3-p0
./configure --enable-shared --disable-pthread --program-suffix n
make && make install
You can’t perform that action at this time.