Skip to content

Instantly share code, notes, and snippets.

View britisharmy's full-sized avatar
🎯
Focusing

Geoffrey britisharmy

🎯
Focusing
View GitHub Profile
@britisharmy
britisharmy / php-restrictions.nginxconf
Created October 28, 2022 23:09 — forked from Ellrion/php-restrictions.nginxconf
Nginx + Php-fpm config for Laravel app
# /etc/nginx/global/php-restrictions.conf
# Don't throw any errors for missing favicons and don't display them in the logs
location = /favicon.ico {
log_not_found off;
access_log off;
}
# Don't log missing robots or show them in the nginx logs
location = /robots.txt {
allow all;
@britisharmy
britisharmy / rejson-for-ubuntu.md
Last active December 17, 2024 04:16 — forked from lmj0011/rejson-for-ubuntu.md
Building and Loading the ReJSON v2.2.0 Module on Linux Ubuntu 20.04 for Redis
git clone https://github.com/RedisJSON/RedisJSON.git

git checkout v2.2.0

sudo apt-get install -y clang

curl https://sh.rustup.rs -sSf | sh
@britisharmy
britisharmy / install_php_8_1.sh
Created November 21, 2022 12:39 — forked from DenisJunio/install_php_8_1.sh
Laravel - PHP 8.1 Extensions - Ubuntu
#!/bin/bash
sudo apt install software-properties-common && sudo add-apt-repository ppa:ondrej/php -y
sudo apt update
sudo apt upgrade -y
sudo apt install php8.1 -y
sudo apt install php8.1-bcmath -y
sudo apt install php8.1-bz2 -y
sudo apt install php8.1-cli -y
sudo apt install php8.1-common -y
sudo apt install php8.1-curl -y
[supervisord]
nodaemon=true
loglevel=debug
[program:amon]
command=gunicorn -c gunicorn.conf.py wsgi
directory=/amon
autostart=true
autorestart=true
redirect_stderr=true
@britisharmy
britisharmy / countries
Created January 5, 2023 16:01 — forked from kalinchernev/countries
Plain text list of countries
Afghanistan
Albania
Algeria
Andorra
Angola
Antigua & Deps
Argentina
Armenia
Australia
Austria

Keybase proof

I hereby claim:

  • I am britisharmy on github.
  • I am geomapper (https://keybase.io/geomapper) on keybase.
  • I have a public key ASBk6kqs3iaZDhpQ56ZQsTPQV72MnEl9371HyPV3Y0gTpwo

To claim this, I am signing this object:

Vehicles
Cars
Toyota
Nissan
Mazda
Mercedes-Benz
Honda
@britisharmy
britisharmy / host-react-app-on-apache-server.md
Created March 7, 2023 19:35 — forked from ywwwtseng/host-react-app-on-apache-server.md
Host react application on Apache server

Host react application on Apache server

Step 1 : Create your app

$ npm install -g create-react-app 
$ create-react-app my-app

Step 2 : Build it for production