Skip to content

Instantly share code, notes, and snippets.

View kevinadhiguna's full-sized avatar
🌟
Are you happy today ?

kevinadhiguna

🌟
Are you happy today ?
View GitHub Profile
@kevinadhiguna
kevinadhiguna / update.sh
Last active March 1, 2022 23:26
Update script for Debian-based Linux distribution
# Update OS
# '-y' automatically choose 'Yes' on interactive mode (when being asked to whether install/remove a package)
# Updates the package lists that need upgrading, as well as new packages that have just come to the repositories
#sudo apt update -y
# Force update using IPv4 :
sudo apt -o Acquire::ForceIPv4=true -y
# List all upgradable packages
@kevinadhiguna
kevinadhiguna / run-codeigniter-in-ubuntu.sh
Last active December 18, 2021 07:15
A script to run an existing Code Igniter project in Ubuntu Linux (20.04)
# This script assumes your :
#
# Apache Document Root = "/var/www/html"
# (Ubuntu) Username = "johndoe"
# name of existing Code Igniter project = "my-ci-website"
# path of your Code Igniter project = "/home/johndoe/my-ci-website"
#
# How to run this script : copy the whole content of this script then execute "sh run-codeigniter-in-ubuntu.sh" in your root directory.
@kevinadhiguna
kevinadhiguna / rsync-over-ssh-cpanel.md
Last active December 7, 2021 07:35
Rsync over SSH - from Github to Cpanel

Rsync over SSH from GitHub to Cpanel

Do you put app files in Cpanel? If so, how do you track changes ? If you use GitHub, then this writing might be right for you... 🚀

def instacheck(name)
unless /[a-z0-9._]{,30}/.match(name)
return false
end
if /\.\./.match(name)
return false
end
@kevinadhiguna
kevinadhiguna / joomla-mysql.yaml
Created September 4, 2021 14:51
🌐 Joomla (a PHP-based CMS) with MySQL powered by docker-compose (🚧 Currently under development...)
version: '3.1'
services:
joomla:
image: joomla
restart: always
depends_on:
- joomla_mysql_db
links:
- joomla_mysql_db:mysql
@kevinadhiguna
kevinadhiguna / ghost-mysql.yaml
Last active September 4, 2021 14:49
Ghost (blogging platform in JavaScript) and MySQL powered by docker-compose
version: '3.1'
services:
# Ghost
ghost:
image: ghost:4-alpine
restart: always
depends_on:
- mysql_db
ports:
@kevinadhiguna
kevinadhiguna / strapi-graphql-documentation.md
Last active August 30, 2023 05:01
Strapi - GraphQL API queries and mutations

Strapi GraphQL API Documentation

Collections of GraphQL queries and mutations that power your Strapi app!
Explore the docs »