Skip to content

Instantly share code, notes, and snippets.

View zarulizham's full-sized avatar
🏠
Working from home

Zarul Izham Zubir zarulizham

🏠
Working from home
  • Pro Office Solutions
  • Selangor, Malaysia
  • 21:25 (UTC +08:00)
View GitHub Profile
@jaywilliams
jaywilliams / csv_to_array.php
Created April 30, 2010 23:18
Convert a comma separated file into an associated array.
<?php
/**
* Convert a comma separated file into an associated array.
* The first row should contain the array keys.
*
* Example:
*
* @param string $filename Path to the CSV file
* @param string $delimiter The separator used in the file
* @return array
@cdjhlee
cdjhlee / zeromq_install.sh
Last active August 24, 2021 19:37
install zeromq in ubuntu 14.04
#!/usr/bin/bash
##############################################
#from http://zeromq.org/intro:get-the-software
##############################################
#get zeromq
wget http://download.zeromq.org/zeromq-4.0.5.tar.gz
#unpack tarball package
@aiscool
aiscool / waktu_solat.py
Last active January 6, 2017 17:49
Download all info about prayer time at www.e-solat.gov.my and store in database
#!/usr/bin/env python
"""
Original Script : https://gist.github.com/efaisal/4583986
Muat turun data waktu solat Jakim
Create database nama 'waktusolat' dalam MySQL
Lepas tu create table 'waktu_solat'
@askz
askz / add-user.sh
Last active July 4, 2018 02:59 — forked from floudet/ssh-chroot-jail.sh
Chroot Jail for SSH/SFTP Access toolkit
#!/bin/bash
# add "prisoner" in the jail you created before !!
# USAGE : ./add-user.sh <username> <password> <type>
# Type 1 : sftp jailed user ; Type 2 ssh jailed user
# A password will be auto-generated with pwgen (sudo apt install pwgen)
# Set your jail path wherever you want.
JAIL_PATH=/home/www/
@Alex-Werner
Alex-Werner / shell
Created July 14, 2017 21:09
Bitcore-node-dash install
sudo apt-get install -y -q \
build-essential \
curl \
git \
libzmq3-dev \
python2.7 \
apt-get update \
&& apt-get install -y -q software-properties-common \
&& add-apt-repository ppa:bitcoin/bitcoin \