Skip to content

Instantly share code, notes, and snippets.

View samuraee's full-sized avatar
💭
Most likely coding...

Aboozar Ghaffari samuraee

💭
Most likely coding...
View GitHub Profile
@samuraee
samuraee / LT
Last active October 31, 2017 09:15
Nicehash
YOUR BTC MINING AND DEPOSIT ADDRESS:
Wallet: 3K3VYaiXtV2eMDi3rVanYhxsq1xvyYFVpV
Blockchain
Bitcoin: 1EJdALUCjrsDEQehtrE48vgm9aJD5q5Rss
Ethereum: 0xDA15e9682a3140C86e141F1CA1f7d7ED7Ae6A00B
Wallet id: b46e2ed2-5bc3-4759-8c65-208a4d0fca75
@samuraee
samuraee / banktest-mellat-bpSettleRequest-sample.php
Created May 8, 2017 12:50
Sample bpSettleRequest call for Mallat gateway in Banktest - (4th STEP)
<?php
$soapOptions = [
'stream_context' => stream_context_create(
[
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
],
]
)
@samuraee
samuraee / banktest-mellat-bpVerifyRequest-sample.php
Last active May 8, 2017 12:51
Sample bpVerifyRequest call for Mallat gateway in Banktest - (3rd STEP)
<?php
$soapOptions = [
'stream_context' => stream_context_create(
[
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
],
]
)
@samuraee
samuraee / banktest-mellat-gotoGateway-sample.php
Last active May 8, 2017 12:37
Sample bpPayRequest call for Mallat gateway in Banktest - (2th STEP)
<form id="goto_mellat_bank" class="form-horizontal goto-bank-form" method="POST" action="">
<input type="hidden" name="RefId" value="{{$refId}}" />
<div class="control-group">
<div class="controls">
<button type="submit" class="btn btn-success">Goto MEllat Gateway</button>
</div>
</div>
</form>
@samuraee
samuraee / banktest-mellat-bpPayRequest-sample.php
Last active May 8, 2017 12:44
Sample bpPayRequest call for Mallat gateway in Banktest - (1st STEP)
<?php
$soapOptions = [
'stream_context' => stream_context_create(
[
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
],
]
)
@samuraee
samuraee / ok-sp
Last active August 29, 2015 14:26
CREATE PROCEDURE sp_InsertCustomer
@CustomerId uniqueidentifier,
@CustomerName nvarchar(150),
@CardNo nvarchar(50),
@PhoneNo nvarchar(50),
@Province nvarchar(100),
@City nvarchar(100),
@Address nvarchar(200),
@Mobile nvarchar(30),
@Flag tinyint,
#!/bin/sh
# block torrent traffic by iptable/firewall for VPN/Proxy server
# [email protected]
# Delete all existing rules
iptables -F
# Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
@samuraee
samuraee / php-deamon
Created July 4, 2015 05:52
run PHP as a deamon
#! /bin/sh
# Installation
# - Move this to /etc/init.d/myservice
# - chmod +x this
#
# Starting and stopping
# - Start: `service myservice start` or `/etc/init.d/myservice start`
# - Stop: `service myservice stop` or `/etc/init.d/myservice stop`
<?php
function ago($tm, $lang = 'fa', $ashtml = true) {
$local = array('style' => array('fa' => 'style="<a href="http://direction:rtl">direction:rtl</a>;"',
'en' => 'style="<a href="http://direction:ltr">direction:ltr</a>"'),
'times' => array(
'fa' => array('ثانیه', 'دقیقه', 'ساعت', 'روز', 'هفته', 'ماه', 'سال', 'دهه'),
'en' => array('second', 'minute', 'hour', 'day', 'week', 'month', 'year', 'decade')),
'ago' => array('fa' => 'پیش', 'en' => 'ago'));
if (intval($tm) > 0) {
$cur_tm = time();
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# Maximum and minimum number of peers to connect to per torrent.
min_peers = 1
max_peers = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)