Skip to content

Instantly share code, notes, and snippets.

View amin3mej's full-sized avatar
🕊️

Amin Djawadi amin3mej

🕊️
View GitHub Profile
@mahmoud-eskandari
mahmoud-eskandari / README.md
Last active June 24, 2024 18:07
Install v2ray on Bridge:(Ubuntu +18 via systemd) - Upstream (Ubuntu +18/CentOS +7 via docker)

پنل x-ui

پنل تحت وب مدیریت V2ray و ساخت کاربر و مدیریت سرور

mkdir x-ui && cd x-ui
docker run -itd --network=host \
    -v $PWD/db/:/etc/x-ui/ \
 -v $PWD/cert/:/root/cert/ \
@amin3mej
amin3mej / do.sh
Last active June 25, 2018 09:40
ESLint config for react-native
yarn -D add eslint eslint-config-airbnb-base eslint-plugin-import eslint-plugin-react eslint-plugin-react-native babel-eslint
echo "{
\"parser\": \"babel-eslint\",
\"plugins\": [\"react\", \"react-native\"],
\"parserOptions\": {
\"ecmaFeatures\": {
\"jsx\": true,
\"modules\": true
}
},
@wojteklu
wojteklu / clean_code.md
Last active June 26, 2024 20:51
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@Stanback
Stanback / nginx.conf
Last active June 14, 2024 10:21 — forked from michiel/cors-nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which