Skip to content

Instantly share code, notes, and snippets.

@hgati
hgati / iso.csv
Created June 11, 2023 22:50
ISO 코드
GH 가나 GHANA
GA 가봉 GABON
GY 가이아나 GUYANA
GM 감비아 GAMBIA
GG 건지 섬 GUERNSEY
GP 과들루프 GUADELOUPE
GT 과테말라 GUATEMALA
GU GUAM
GD 그레나다 GRENADA
GR 그리스 GREECE
@hgati
hgati / idols.txt
Last active April 26, 2023 08:31
Kpop Idol Names from "idol" attribute_code
#GUN
(G)I-DLE
015B
100%
10cm
10X10
14U
1PUNCH
1Set
1TEAM
@hgati
hgati / NWDthemes-Revolution-Slider-6.5.3.3-Patch.sh
Last active April 18, 2023 13:36
Revolution Slider v6.5.3.3 Extension of NWD Themes - How to add PHP 8.2 compatibility.
#!/usr/bin/env bash
# Issue: Revolution Slider (v6.5.3.3) is not supported PHP 8.2
# When you click NWDTHEMES > Slider Overview on magento admin menu, it occurs an errors such as below.
# (See error report file such as /var/www/magento/var/report/8c30fd7a6382eca771957a80770a644ca9b54c478cf7049770bd7efde978bd5b)
# /var/www/magento is your Magento Base Directory. In my case /var/www/magento
# $_registerHelper is deprecated in /var/www/magento/app/code/Nwdthemes/Revslider/Helper/Plugin.php on line 50
# $_appState in deprecated in /var/www/magento/app/code/Nwdthemes/Revslider/Helper/Framework.php on line 142
# $_pageFactory in deprecated in /var/www/magento/app/code/Nwdthemes/Revslider/Helper/Framework.php on line 148
@hgati
hgati / magento-2.4.6-php-ext
Created March 23, 2023 09:01
Magento v2.4.6 필수 php 익스텐션
[ Magento v2.4.6 PHP extension Requirement ]
ext-bcmath
ext-ctype
ext-curl
ext-dom
ext-fileinfo
ext-filter
ext-gd
ext-hash
ext-iconv
@hgati
hgati / add-private-network.sh
Created August 21, 2022 07:16 — forked from ckcks12/add-private-network.sh
vultr.com scripts
# echo setting
r='\033[0;31m'
y='\033[1;33m'
g='\033[0;32m'
b='\033[1;34m'
x='\033[0m'
function log() {
echo -e $@${x}
}
@hgati
hgati / vultr_auto_snapshot.tmpl
Last active September 5, 2021 04:46
Vultr Snapshot By API
#!/bin/sh -eu
Key='YourAPIKEY'
SnapshotLimit=7
SnapshotCount=$(curl -s -H "API-Key: $Key" https://api.vultr.com/v1/snapshot/list | grep -o SNAPSHOTID | wc -l)
Fields=$(curl -s -H "API-Key: $Key" https://api.vultr.com/v1/snapshot/list | grep -o '"' | wc -l)
LastSnapshotField=$((Fields - 24))
LastSnapshotID=$(curl -s -H "API-Key: $Key" https://api.vultr.com/v1/snapshot/list | grep '"' | cut -d '"' -f $LastSnapshotField)
if [ "$SnapshotCount" -eq "$SnapshotLimit" ]
@hgati
hgati / init-letsencrypt.sh
Created September 2, 2021 01:44
Init Let's Encrypt
#!/bin/bash
if ! [ -x "$(command -v docker-compose)" ]; then
echo 'Error: docker-compose is not installed.' >&2
exit 1
fi
domains=(example.org www.example.org)
rsa_key_size=4096
data_path="./data/certbot"
@hgati
hgati / warmup
Created September 1, 2021 01:31
Website crawling for full page cache warmup
#!/usr/bin/env bash
## 파라미터가 없으면 종료
if [ "$#" -lt 2 ]; then
echo "$# is Illegal number of parameters."
echo "Usage: $0 https://www.example.com example.com"
exit 1
fi
wget \
@hgati
hgati / magerun
Last active March 28, 2024 03:04
n98-magerun.phar Alias
#!/bin/bash
/usr/local/bin/n98-magerun2.phar --root-dir=/var/www/magento --skip-root-check "$@"
@hgati
hgati / .vimrc
Last active August 28, 2021 00:45
.vimrc 기본설정
" Vundle
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'