Skip to content

Instantly share code, notes, and snippets.

View cipherbullet's full-sized avatar
🔋

Javad N. cipherbullet

🔋
View GitHub Profile
@cipherbullet
cipherbullet / VPN.md
Created September 26, 2022 08:43
Simple VPN

Simple VPN

1. Install docker (run on NL instance)

curl https://get.docker.com | sh

2. Setup Openvpn (run on NL instance)

export IR_IP=<IP>
@cipherbullet
cipherbullet / docker-php-ext-install.md
Created April 10, 2020 10:01 — forked from giansalex/docker-php-ext-install.md
docker-php-ext-install Reference
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
@cipherbullet
cipherbullet / increase_root_fedora.md
Created April 6, 2020 09:05 — forked from 181192/increase_root_fedora.md
How to increase the root partition size on Fedora

How to increase the root partition size on Fedora

Boot up with an Fedora Live USB stick.

  1. Run vgs to check if there's any space:
$ sudo vgs
  VG     #PV #LV #SN Attr   VSize    VFree
  fedora   1   3   0 wz--n- <237.28g    0 
@cipherbullet
cipherbullet / nginx-vhost-php.conf
Created September 10, 2019 11:24 — forked from lukearmstrong/nginx-vhost-php.conf
Example vhost config for Nginx (PHP)
server {
listen 80;
server_name .example.co.uk.dev;
access_log /usr/local/var/log/nginx/example.co.uk-access.log;
error_log /usr/local/var/log/nginx/example.co.uk-error.log error;
root /var/www/example.co.uk/public;
index index.php index.html;
@cipherbullet
cipherbullet / nginx.conf
Created September 9, 2019 17:16 — forked from v0lkan/nginx.conf
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
@cipherbullet
cipherbullet / Common-Currency.json
Created April 4, 2019 19:57 — forked from ksafranski/Common-Currency.json
Common Currency Codes in JSON
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
{
"ab":{
"name":"Abkhaz",
"nativeName":"аҧсуа"
},
"aa":{
"name":"Afar",
"nativeName":"Afaraf"
},
"af":{
@cipherbullet
cipherbullet / BinaryTree.php
Created November 12, 2018 18:13 — forked from antoniopicone/BinaryTree.php
A Binary Tree implementation with DFS and BFS traversal algorithms
<?php
class Node {
public $data;
public $next;
public function __construct($data)