This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |