Skip to content

Instantly share code, notes, and snippets.

View stackprogramer's full-sized avatar
🎯
Focusing

SP stackprogramer

🎯
Focusing
View GitHub Profile
@stackprogramer
stackprogramer / ConvertIntArrayToBinary
Created January 13, 2017 18:35
convert int8_t array to binary file, you can see binary file with wxHexEditor,C++
#include <iostream>
#include <fstream>
#include <string>
#include <iostream>
#include"sajad_Math_lab"
#include <stdint.h>
#include <stdio.h>
using namespace std;
@stackprogramer
stackprogramer / CPPFLAGSLDFLAGS
Created May 7, 2018 02:43
specify some inlcude and lib directory for compiler and linker
env CPPFLAGS='-I/home/sp/Downloads/psiphon-master/openssh-5.9p1/dependency/usr/local/include' LDFLAGS='-L/home/sp/Downloads/psiphon-master/openssh-5.9p1/dependency/usr/local/lib' ../configure
--with-openssl-includes=/home/sp/Downloads/psiphon-master/openssh-5.9p1/dependency/usr/local/include --with-openssl-libraries=/home/sp/Downloads/psiphon-master/openssh-5.9p1/dependency/usr/local/lib
@stackprogramer
stackprogramer / Soroush_RUN
Created May 7, 2018 11:14
a script for configure deps of soroush messenger
LD_LIBRARY_PATH=/home/sp/Downloads/soroush-linux-0.13.3/usr/local/lib
export LD_LIBRARY_PATH
echo $LD_LIBRARY_PATH
exec ./Soroush-X86-64-0.13.3.run
@stackprogramer
stackprogramer / ADDPATH
Created May 8, 2018 09:21
add new directory to path
if [ -d "$HOME/bin" ] ; then
PATH="$PATH:$HOME/bin"
fi
@stackprogramer
stackprogramer / DESTDIR
Created May 17, 2018 13:06
Make install, but not to default directories
export DESTDIR="/home/sp/Downloads/soroush-linux-0.13.3" && make install
/*Three_post_date*/
/*Persian date*/
echo date_i18n( get_option( 'date_format' ), strtotime( '11/15-1976' ) ).'<span> </span>,';
/*Arabic date*/
echo arabicDate('hj:j F Y ',time()).'<span> </span>,';
/*English date*/
echo date('l F j Y');