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 / _spacing-helpers.scss
Created November 23, 2017 18:18 — forked from jacurtis/_spacing-helpers.scss
SASS Margin and Padding Helpers Loop. Generates .m-t-10 type helper classes.
/*
This .scss loop will create "margin helpers" and "padding helpers" for use in your web projects.
It will generate several classes such as:
.m-r-10 which gives margin-right 10 pixels.
.m-r-15 gives MARGIN to the RIGHT 15 pixels.
.m-t-15 gives MARGIN to the TOP 15 pixels and so on.
.p-b-5 gives PADDING to the BOTTOM of 5 pixels
.p-l-40 gives PADDING to the LEFT of 40 pixels
{
"provinces": [
{
"id": "AZE",
"name": "آذربايجان شرقي",
"cities": [
{
"id": "4",
"name": "تبریز",
"areas": [
@eamirgh
eamirgh / git-io-custom-url.md
Created November 14, 2018 22:07 — forked from dikiaap/git-io-custom-url.md
git.io custom URL

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
  • https://*.github.com/*
  • https://*.github.io
@eamirgh
eamirgh / bulma-sass-scss.rb
Created November 28, 2018 22:44 — forked from DanyHenriquez/bulma-sass-scss.rb
Convert bulma from sass to scss
#!/usr/bin/env ruby
require 'tmpdir'
require 'fileutils'
dir = Dir.tmpdir()
if File.directory?("#{dir}/bulma")
FileUtils.remove_dir("#{dir}/bulma")
end
@eamirgh
eamirgh / LEPP.md
Created May 1, 2019 16:30 — forked from cham11ng/LEPP.md
LEPP Setup - Ubuntu 16.04 LTS

A Relatively Secure Server Stack Setup in Ubuntu 16.04 LTS

Anup Dhakal

Sagar Chamling

Introduction

In this guide, LEPP stands for Linux, Nginx (pronounced as Engine-X) , Postgres and PHP (PHP Hypertext Preprocessor).

@eamirgh
eamirgh / run.py
Created June 29, 2019 13:11 — forked from amrza/run.py
How to write RTL(Arabic/Persian) text on images in python.
# Tested on Python 3.6.1
# install: pip install --upgrade arabic-reshaper
import arabic_reshaper
# install: pip install python-bidi
from bidi.algorithm import get_display
# install: pip install Pillow
from PIL import ImageFont
@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 / 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