Skip to content

Instantly share code, notes, and snippets.

View eamirgh's full-sized avatar
:octocat:
trying to make the world a better place

Amir Ghaffari eamirgh

:octocat:
trying to make the world a better place
View GitHub Profile
@eamirgh
eamirgh / Dockerfile
Last active December 23, 2019 14:57
FROM php:7.4.1-fpm-alpine3.10
ENV NGINX_VERSION 1.16.1
ENV NJS_VERSION 0.3.5
ENV PKG_RELEASE 1
RUN set -x \
# create nginx user/group first, to be consistent throughout docker variants
&& addgroup -g 101 -S nginx \
&& adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx \
@eamirgh
eamirgh / main.go
Created April 15, 2020 11:03 — forked from manishtpatel/main.go
GoLang Encrypt string to base64 and vice versa using AES encryption.
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/base64"
"fmt"
"io"
)
@eamirgh
eamirgh / Procfile
Created August 14, 2020 08:06 — forked from sdrew/Procfile
Laravel configs for Heroku/Dokku
web: vendor/bin/heroku-php-apache2 public/
@eamirgh
eamirgh / gist:650f86393b1826dd5c5e5fc68dd5f06e
Last active June 5, 2024 18:51
RESET Goland Evaluation period LINUX
rm -rf ~/.config/JetBrains/GoLand2021.3/eval
rm -rf ~/.config/JetBrains/GoLand2021.3/options/other.xml
touch ~/.config/JetBrains/GoLand2021.3/options/other.xml
sed -i -E 's/<property name=\"evl.*\".*\/>//' ~/.config/JetBrains/GoLand2021.3/options/other.xml
rm -rf ~/.java/.userPrefs/jetbrains/goland

Keybase proof

I hereby claim:

  • I am eamirgh on github.
  • I am eamirgh (https://keybase.io/eamirgh) on keybase.
  • I have a public key ASBhMOgxH20zHy_Gv0KGiqPva_tGzCim6dyqHsgyyXCzgwo

To claim this, I am signing this object:

@eamirgh
eamirgh / README.md
Created October 20, 2022 06:33 — forked from mahmoud-eskandari/README.md
Install v2ray on Bridge:(Ubuntu +18 via systemd) - Upstream (Ubuntu +18/CentOS +7 via docker)

At the beginning run this command on your internet server (foreign):

برای شروع میتوانید یک دایرکتوری در سرور خارجی ایجاد کنید و وارد آن شوید.

It's better to make a new directory and cd into:

mkdir vmess
cd vmess