Skip to content

Instantly share code, notes, and snippets.

View masitings's full-sized avatar
🏠
Working from home

Rafi Bagaskara Halilintar masitings

🏠
Working from home
View GitHub Profile
@masitings
masitings / delete-orphans-usermeta.sql
Created December 5, 2019 09:14 — forked from carlosleopoldo/delete-orphans-usermeta.sql
Delete all orphans user meta in WordPress
DELETE FROM wp_usermeta
WHERE NOT EXISTS (
SELECT * FROM wp_users
WHERE wp_usermeta.user_id = wp_users.ID
)
#Warming up
sudo apt update -y; sudo apt dist-upgrade -y; sudo apt autoremove -y;
#Install Nginx
sudo apt update -y; sudo apt install nginx -y;
#Restart Nginx
sudo systemctl stop nginx.service; sudo systemctl start nginx.service; sudo systemctl enable nginx.service
#Install MariaDB
sudo apt-get install mariadb-server mariadb-client
@masitings
masitings / gist:045282ea39ab8e181a973858ec800313
Last active October 11, 2019 06:41
Git initialiation for submodules
Git Submodules
==============
STRUCTURE
-- Main Branch
- App (Second Branch)
- Frontend (Third Branch)
===============
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Aws\S3\S3Client;
use League\Flysystem\AwsS3v3\AwsS3Adapter;
use League\Flysystem\Filesystem;
use Storage;
class DOSpacesStorageServiceProvider extends ServiceProvider
{
/**
@masitings
masitings / cloudSettings
Created October 23, 2018 10:39
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-10-23T10:39:38.915Z","extensionVersion":"v3.2.0"}