Skip to content

Instantly share code, notes, and snippets.

View nd3w's full-sized avatar

nd3w

View GitHub Profile
@nd3w
nd3w / install-a-laravel-app-into-a-shared-hosting-per-openai.md
Last active March 20, 2023 03:20
Install a Laravel App into a Shared Hosting per OpenAI

Install a Laravel App into a Shared Hosting per OpenAI

When I asked ChatGPT how do I deploy a Laravel app into a shared hosting, here's its answer:

Here are the general steps to follow in order to install a Laravel application into a shared hosting:

  1. Prepare the Laravel Application: First, you need to prepare your Laravel application for deployment by running the following commands in your terminal:
composer install --optimize-autoloader --no-dev
@nd3w
nd3w / list-of-codec-playable-or-unplayable.txt
Last active August 12, 2024 12:39
List of Codec that Playable or Unplayable on Cooca TV USB Media Player
Video (playable)
H264 MPEG-4 AVC (part 10) (avc1)
Audio (playable)
MPEG AAC Audio (mp4a)
Video (unplayable)
MPEG-H Part2/HEVC (H.265) (hev1)
Audio (unplayable)
@nd3w
nd3w / nginx-tips.md
Created October 22, 2021 01:20
Nginx Tips and Tricks

Version of Nginx

sudo nginx -v

Version and Enabled modules

sudo nginx -V

Configuration test

@nd3w
nd3w / multimedia-on-linux.md
Created July 29, 2021 01:16
Multimedia on Linux

Disabling webcam on Linux

sudo modprobe -r uvcvideo

Enabling webcam on Linux

sudo modprobe uvcvideo

@nd3w
nd3w / Youtube Iframe
Created March 25, 2021 04:11
Iframe without right click, etc, could be work for Youtube addresses only.
<iframe
id="068a380a-add0-4954-b0fb-b25884efab81"
class="c-hero-media__video js-hero-player"
data-youtube-api="https://www.youtube.com/iframe_api"
data-youtube-id="-q7UBPU0MYI"
frameborder="0"
allowfullscreen="1"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
title="YouTube video player"
width="100%"
Touchpad
Turn on touchpad: xinput set-prop 15 "Device Enabled" 1
Turn off touchpad: xinput set-prop 15 "Device Enabled" 0
Mount flashdisc
umask=0,nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=Kingston,noauto
Setup Linux Mint Screensaver
Disable Screensaver
@nd3w
nd3w / install-gimp-ppa.txt
Last active June 3, 2020 00:58
Install GIMP 2.10 on Ubuntu 18.04
Installing:
open a terminal and type:
sudo add-apt-repository ppa:otto-kesselgulasch/gimp
sudo apt-get update
sudo apt-get install gimp
Removing:
open a terminal and type:
sudo apt-get install ppa-purge
sudo ppa-purge ppa:otto-kesselgulasch/gimp
@nd3w
nd3w / xfce-panel-icon-size.md
Last active May 7, 2024 00:29
How to change XFCE panel's of notify and audio icon size

This is a way to change notify and audio icon size for XFCE panel:

Create or edit ~/.config/gtk-3.0/gtk.css, and add these two selectors:

#pulseaudio-button * {
        -gtk-icon-transform: scale(.55);
}

#xfce4-notification-plugin * {
@nd3w
nd3w / install-nginx-mariadb-phpfpm-on-ubuntu-20.04.md
Last active March 19, 2025 01:47
How to Install Nginx, MariaDB, PHP-FPM on Ubuntu 20.04

How to Install Nginx, MariaDB, PHP-FPM on Ubuntu 20.04

This is a way to install and set up Nginx, MariaDB and PHP-FPM on Ubuntu 20.04.

NOTE: This has been prepared for ease of use in mind, not security, mostly in development machine. Please do not use these instructions to setup on a public server environment. Use other proper manuals instead.

First fetch the latest package list of Ubuntu:

$ sudo apt update
@nd3w
nd3w / mysql-queries.md
Last active April 3, 2023 08:23
Collection of useful MySQL queries

List of table's names only

SELECT `COLUMN_NAME` 
FROM `INFORMATION_SCHEMA`.`COLUMNS` 
WHERE `TABLE_SCHEMA`='db name' 
    AND `TABLE_NAME`='table name';

Select all rows with the same value

SELECT e1.*