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
# Download latest Android image, "hammerhead" for Nexus 5 (GSM/LTE)
https://developers.google.com/android/nexus/images#hammerhead
# Download latest TWRP
https://dl.twrp.me/hammerhead/
# Download latest SuperSu
https://download.chainfire.eu/supersu
Enable USB debugging.
@samuraee
samuraee / dragon.md
Created March 4, 2018 19:53
dragon.md

Configure IPsec/L2TP VPN Clients

Read this in other languages: English, 简体中文.

Note: You may also connect using IPsec/XAuth mode, or set up IKEv2.

After setting up your own VPN server, follow these steps to configure your devices. IPsec/L2TP is natively supported by Android, iOS, OS X, and Windows. There is no additional software to install. Setup should only take a few minutes. In case you are unable to connect, first check to make sure the VPN credentials were entered correctly.

An alternative setup guide with images is available, written by Tony Tran.

@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
# me@tartan.pro
# 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`