Skip to content

Instantly share code, notes, and snippets.

View denihida1216's full-sized avatar
:electron:
Bismillah

Deni Hidayat denihida1216

:electron:
Bismillah
View GitHub Profile
@denihida1216
denihida1216 / install_docker_debian11.sh
Last active February 4, 2025 07:46
Install Docker Debian11
#!/bin/bash
sudo apt update
sudo apt upgrade -y
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce -y
sudo docker --version
sudo docker volume create portainer_data
@denihida1216
denihida1216 / disable login pubkey ssh vps
Created August 21, 2024 12:54
disable login pubkey ssh vps
passwd
sudo nano /etc/ssh/sshd_config
PubkeyAuthentication no
PasswordAuthentication yes
ChallengeResponseAuthentication no
PermitRootLogin yes
sudo systemctl restart ssh
@denihida1216
denihida1216 / Npm can't find module "semver" error in Ubuntu
Created April 22, 2024 01:46
Npm can't find module "semver" error in Ubuntu
sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* ~/.npm
sudo rm -rf /usr/local/lib/node*
sudo rm -rf /usr/local/bin/node*
sudo rm -rf /usr/local/include/node*
sudo apt-get purge nodejs npm
sudo apt autoremove
sudo apt-get install nodejs npm
sudo apt install -y npm
sudo npm install -g n
sudo n stable
@denihida1216
denihida1216 / ufw allow port linux ubuntu
Last active April 22, 2024 01:29
ufw allow port local only, don't publish
# note
# enp0s3 = match the label in the netplan ip configuration
sudo ufw allow in on enp0s3 to any port 4369
@denihida1216
denihida1216 / php7.4-fpm_tuning_cache_connection
Created December 11, 2023 06:22
Tuning Cache Connection Best Performance
PHP-FPM Configuration (php-fpm.conf or www.conf):
location /etc/php/7.4/fpm/pool.d/www.conf
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 35
pm.process_idle_timeout = 10s
pm.max_requests = 500
@denihida1216
denihida1216 / Laravel Extension visual studio code
Last active March 25, 2023 11:05
Extension visual studio code (opsional)
PHP Intelephense
Laravel Blade formatter
Laravel blade snippets
Laravel Extra Intellisense / Laravel intellisense
Laravel goto view
Laravel goto controller
Path Intellisense
Auto Rename Tag
Atom One Dark Theme
One Dark Pro
@denihida1216
denihida1216 / laragon_mysql.txt
Created January 3, 2023 00:58
Mysql Error - Laragon 4.0.16 & MySQL 8.0.18 - MySQL cannot start
Delete largon/data/mysql-8
cd to laragon/bin/mysql8.0.0.x/bin folder via cmder (important for step 3)
run 'mysqld --initialize --console' (remember the password)
run 'start mysqld'
run 'mysql -u root -p'
put in the password from 3.
You are now in mysql shell and can remove the password again: "ALTER USER 'root'@'localhost' IDENTIFIED BY '';"
run 'exit' and ctrl + c the spawned tab from step 4.
@denihida1216
denihida1216 / plugin.txt
Created December 24, 2022 23:29
Plugin Install Web Programming Visual Studio Code
Auto Rename Tag
css peak
Git Graph
indent-rainbow
IntelliSense for CSS
Live Server
Bracket Pair Colorization Toggler
One Dark Pro
PHP Intelephense
Prettier - Code formatter
@denihida1216
denihida1216 / dbcc_sqlserver.sql
Last active December 8, 2022 02:11
Additional messages in the SQL Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB)
dbcc checkdb (sirs) with no_infomsgs, all_errormsgs
https://learn.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-checkdb-transact-sql?view=sql-server-ver16
@denihida1216
denihida1216 / error_cert
Created November 29, 2022 08:03
Error Cert Chain SSL Comodo Sectigo
https://whatsmychaincert.com/
cek proses jika masih incorrect
klik generate chain lanjut ke update cert di server