Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Pascal Hadiyanto L1so

🎯
Focusing
  • Tangerang Selatan, Banten, Indonesia
  • 06:56 (UTC +07:00)
View GitHub Profile
@L1so
L1so / countries_continents.csv
Created Apr 27, 2022 — forked from alyssaq/countries_continents.csv
country and continent codes
View countries_continents.csv
continent_code country_code continent_name country_name
AS AF Asia Afghanistan
EU AX Europe Åland Islands
EU AL Europe Albania
AF DZ Africa Algeria
OC AS Oceania American Samoa
EU AD Europe Andorra
AF AO Africa Angola
NA AI North America Anguilla
AN AQ Antarctica Antarctica
View build-openssl-php.sh
#!/bin/sh
if ! [ $(id -u) = 0 ]; then
printf "%s\n" "You need to be root"
exit 1
fi
# OpenSSL
cd /opt
wget -O openssl.tar.gz https://www.openssl.org/source/openssl-1.0.2t.tar.gz
tar -xzf openssl.tar.gz && \
ln -s /opt/openssl-1.0.2t /opt/openssl-1.0
@L1so
L1so / country.json
Created Mar 11, 2022
Country Code List JSON
View country.json
{"BD": "Bangladesh", "BE": "Belgium", "BF": "Burkina Faso", "BG": "Bulgaria", "BA": "Bosnia and Herzegovina", "BB": "Barbados", "WF": "Wallis and Futuna", "BL": "Saint Barthelemy", "BM": "Bermuda", "BN": "Brunei", "BO": "Bolivia", "BH": "Bahrain", "BI": "Burundi", "BJ": "Benin", "BT": "Bhutan", "JM": "Jamaica", "BV": "Bouvet Island", "BW": "Botswana", "WS": "Samoa", "BQ": "Bonaire, Saint Eustatius and Saba ", "BR": "Brazil", "BS": "Bahamas", "JE": "Jersey", "BY": "Belarus", "BZ": "Belize", "RU": "Russia", "RW": "Rwanda", "RS": "Serbia", "TL": "East Timor", "RE": "Reunion", "TM": "Turkmenistan", "TJ": "Tajikistan", "RO": "Romania", "TK": "Tokelau", "GW": "Guinea-Bissau", "GU": "Guam", "GT": "Guatemala", "GS": "South Georgia and the South Sandwich Islands", "GR": "Greece", "GQ": "Equatorial Guinea", "GP": "Guadeloupe", "JP": "Japan", "GY": "Guyana", "GG": "Guernsey", "GF": "French Guiana", "GE": "Georgia", "GD": "Grenada", "GB": "United Kingdom", "GA": "Gabon", "SV": "El Salvador", "GN": "Guinea", "GM": "Gambia
@L1so
L1so / build-php5-from-source16.04.md
Created Feb 27, 2022
Install php 5.5.9 from source on Ubuntu 16.04
View build-php5-from-source16.04.md

Installing php 5.5.9 on Ubuntu 16.04

Make sure you update the package index.

sudo apt-get update

Install dependency package before building.

View build-php5-from-source.md

Installing php 5.5.9 on Ubuntu 18.04 - 20.04

Make sure you update the package index.

sudo apt-get update

Install dependency package before building.

View php8-configure-command.bash
`configure' configures PHP 8.0.12 to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
@L1so
L1so / integrate.md
Created Nov 3, 2021
Integrate php from source with apache2
View integrate.md

Integrate php from source with apache2

Add following line to end of /etc/apache2/apache2.conf.

LoadModule php5_module  modules/libphp5.so
AddType application/x-httpd-php  .php

Restart apache.

@L1so
L1so / install-php-from-source.md
Last active Nov 3, 2021
Install php 5.6.40 from source
View install-php-from-source.md

Installing php 5.6.40 on Ubuntu 16.04

Make sure you update the package index.

sudo apt-get update

Install dependency package before building.

@L1so
L1so / nginx-sites-available-enabled.md
Last active Nov 15, 2021
Adding sites-available and sites-enabled on NginX
View nginx-sites-available-enabled.md

Adding sites-available and sites-enabled on NginX

If you install official version of Nginx from their repository, you'll find that there was no any sites-available and sites-enabled directory like in Apache. Good news is, you can add it yourself !

  1. Create a new directory under /etc/nginx.
sudo mkdir /etc/nginx/sites-{available,enabled}
View MySql-5.5-installation guide.md

MySQL Download URL

https://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.56-linux-glibc2.5-x86_64.tar.gz

Open the terminal and follow along:

  • Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R