Skip to content

Instantly share code, notes, and snippets.

😕
Restricted forever

Shahin Sorkh ShahinSorkh

😕
Restricted forever
Block or report user

Report or block ShahinSorkh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View untrusted-lvl10-solution.js
/*************
* ambush.js *
*************
*
* Oh. Oh, I see. This wasn't quite part of the plan.
*
* Looks like they won't let you take the Algorithm
* without a fight. You'll need to carefully weave your
* way through the guard drones.
*
@ShahinSorkh
ShahinSorkh / .php_cs
Last active Apr 6, 2020
php-cs-fixer config to follow laravel style guides
View .php_cs
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->name('*.php')
->notName('_ide_helper.php')
->notName('*.blade.php')
->notPath('bootstrap')
->notPath('node_modules')
->notPath('storage')
@ShahinSorkh
ShahinSorkh / _ANTI_SANCTIONS.md
Last active Jan 3, 2020
My custom proxy related configs
View _ANTI_SANCTIONS.md
  • user.action -> privoxy

  • named.local -> bind

  • 127.0.0.1:9095 -> tor

Fast update

$ ./update
@ShahinSorkh
ShahinSorkh / _INSTALL_DOCKER.md
Last active Sep 7, 2019
Install latest docker-ce on debian and ubuntu
View _INSTALL_DOCKER.md

Install docker bash script

Installation script for docker-ce and docker-compose on debian, ubuntu and linux mint.

Note: Since docker.com has set sanctions on IPs from Iran, I need to use a proxy.

Official way

curl -fsSL https://get.docker.com -o get-docker.sh
View _PHP_DIR_LIST.md

Use this command in zsh to enable auto indexing:

for d in **/*(/); do ln "$PWD/index.php" "$d"; done

Run:

php -S 127.0.0.0 4747
View Iran-provinces.cities.areas.json
{
"provinces": [
{
"id": "AZE",
"name": "آذربايجان شرقي",
"cities": [
{
"id": "4",
"name": "تبریز",
"areas": [
You can’t perform that action at this time.