Skip to content

Instantly share code, notes, and snippets.

View alibo's full-sized avatar
💭
🤦‍♂️

Ali Borhani alibo

💭
🤦‍♂️
View GitHub Profile
@alibo
alibo / bazaar_diff.sh
Last active August 18, 2016 09:36
Check sms receiver in multiple versions of cafebazaar. How to run: sh bazaar_diff.sh 7.5.0 7.5.1
#!/bin/bash
oldVersion=$1;
newVersion=$2;
smsReceiverPath="com/farsitel/bazaar/receiver/SmsAuthenticationReceiver.java";
echo "Downloading ...";
wget "https://cafebazaar.ir/static/download/Bazaar-$oldVersion.apk";
wget "https://cafebazaar.ir/static/download/Bazaar-$newVersion.apk";
echo "Decompiling ...";
@alibo
alibo / composer.json
Created August 16, 2016 20:42
Persian wordpress using bedrock, composer, wp-languages and wpackagist-plugin/wp-jalali
{
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "A modern WordPress stack",
"homepage": "https://roots.io/bedrock/",
"authors": [
{
"name": "Scott Walkinshaw",
"email": "scott.walkinshaw@gmail.com",
@alibo
alibo / CustomApplication.php
Last active June 19, 2016 17:26
Adjust Laravel public directory for cPanel and DirectAdmin
<?php
namespace App;
use Illuminate\Foundation\Application;
class CustomApplication extends Application
{
/**
* Get the path to the public / web directory.
*
@alibo
alibo / gitignore-android-studio-list
Last active July 17, 2017 21:02 — forked from vtanathip/gitignore-android-studio-list
Git Ignore files list that should use in Android Studio Projects
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
@alibo
alibo / iran-sanctions_blocker-sites.csv
Last active April 24, 2024 10:04
List of sites which block IPs come from Iran [UPDATING... (July 16, 2020)] #SANCTIONS
Title URI
Flurry by Yahoo https://dev.flurry.com/secure/signup.do
Google NikCollection https://dl.google.com/edgedl/photos/nikcollection-full-1.2.11.dmg
Bitbucket http://bitbucket.org/
SoftLayer http://softlayer.com/
VirtualBox http://download.virtualbox.org/virtualbox/5.0.16/VirtualBox-5.0.16-105871-OSX.dmg
Docker Hub https://hub.docker.com/
Oracle http://oracle.com/
Java http://java.com
Sun http://sun.com
@alibo
alibo / 01-filternet-top200k-26-03-2016.csv
Last active March 1, 2024 20:05
State of Alexa Top 200K global sites in Iran [Censorship] [26-03-2016] #filternet
Rank Site SNI HTTP DNS
1 google.com open open open
2 youtube.com blocked blocked blocked
3 facebook.com blocked blocked blocked
4 baidu.com open open open
5 yahoo.com open open open
6 amazon.com open open open
7 wikipedia.org open open open
8 qq.com open open open
9 google.co.in open open open
@alibo
alibo / filternet-14-03-2016-top6-5k.csv
Last active March 17, 2016 10:56
State of Alexa Top 6.5K global sites in Iran [Censorship]
Rank Site SNI HTTP DNS
1 google.com open open open
2 facebook.com blocked blocked blocked
3 youtube.com blocked blocked blocked
4 baidu.com open open open
5 yahoo.com open open open
6 amazon.com open open open
7 wikipedia.org open open open
8 qq.com open open open
9 google.co.in open open open
@alibo
alibo / OpenshiftThrottleRequests.php
Created February 14, 2016 19:17
A simple solution for using Laravel's rate-limiting on openshift.com
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Routing\Middleware\ThrottleRequests;
class OpenshiftThrottleRequests extends ThrottleRequests
{
/**
@alibo
alibo / dns-server.js
Last active February 13, 2016 20:00
Bypass DNS hijacking in Iran - [Proof of Concept]
'use strict';
// Proxy-Dns: https://www.npmjs.com/package/proxy-dns
let ProxyDNS = require('proxy-dns').default;
const dns = new ProxyDNS({
ttl: 600
});
dns.use(function* (next) {
@alibo
alibo / make_alias.sh
Created December 9, 2015 18:55
A simple bash function for making an alias of current directory
make_alias ()
{
echo "alias $1=\"cd `pwd`\"" >> ~/.bash_profile
source ~/.bash_profile
}