Skip to content

Instantly share code, notes, and snippets.

View maksudc's full-sized avatar

Md. Maksud Alam Chowdhury maksudc

  • Dhaka , Bangladesh
View GitHub Profile
@maksudc
maksudc / P12toPEM.txt
Last active March 7, 2019 08:32 — forked from shahdhiren/P12toPEM.txt
Convert P12 file for Push Notification to PEM format
Development Phase:
Step 1: Create Certificate .pem from Certificate .p12
Command: openssl pkcs12 -clcerts -nokeys -nodes -out apns-dev-cert.pem -in apns-dev-cert.p12
Step 2: Create Key .pem from Key .p12
Command : openssl pkcs12 -nocerts -nodes -out apns-dev-key.pem -in apns-dev-key.p12
Step 3: Optional (If you want to remove pass phrase asked in second step)
Command : openssl rsa -in apns-dev-key.pem -out apns-dev-key-noenc.pem
@maksudc
maksudc / note.md
Last active August 29, 2015 14:15 — forked from fyears/note.md

if you are using linux, unix, os x:

pip install -U setuptools
pip install -U pip

pip install numpy
pip install scipy
pip install matplotlib
#pip install PySide
cd ~
sudo rm -Rf /usr/local/share/elasticsearch
sudo /usr/local/share/elasticsearch/bin/service/elasticsearch remove
sudo rm /usr/local/bin/rcelasticsearch
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.3.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
sudo mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share
@maksudc
maksudc / Bus Sql
Created September 23, 2012 17:04 — forked from anonymous/Bus Sql
DELIMETER |
CREATE EVENT history_generator
ON SCHEDULE EVERY 1 DAY
DO
BEGIN
DECLARE scount INT DEFAULT 0;
DECLARE tschedule INT DEFAULT 0;
DECLARE schedule_1_id INT DEFAULT 0;
DECLARE schedule_2_id INT DEFAULT 0;
DECLARE counter INT DEFAULT 0;