Skip to content

Instantly share code, notes, and snippets.

View L1so's full-sized avatar
🎯
Focusing

Pascal Hadiyanto L1so

🎯
Focusing
  • Tangerang Selatan, Banten, Indonesia
  • 19:40 (UTC +07:00)
View GitHub Profile
@L1so
L1so / countries_continents.csv
Created April 27, 2022 00:42 — forked from alyssaq/countries_continents.csv
country and continent codes
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
#!/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 March 11, 2022 13:54
Country Code List 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 February 27, 2022 10:35
Install php 5.5.9 from source on Ubuntu 16.04

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.

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.

@L1so
L1so / php8-configure-command.bash
Created November 6, 2021 08:03
PHP 8 Configure option
`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 November 3, 2021 02:56
Integrate php from source with apache2

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 November 3, 2021 04:01
Install php 5.6.40 from source

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 November 15, 2021 08:10
Adding sites-available and sites-enabled on NginX

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}

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