Skip to content

Instantly share code, notes, and snippets.

KwangSeob Jeong lesstif

Block or report user

Report or block lesstif

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lesstif
lesstif / wsl2-troubleshooting-list.md
Last active Jun 19, 2019
WSL 2 troubleshooting
View wsl2-troubleshooting-list.md

"A device attached to the system is not functioning."

"시스템에 부착된 장치가 작동하지 않습니다." 란 메시지가 나오고 WSL 이 동작 안 함.

  1. windows 서비스에 "Host Network Service"(호스트 네트워크 서비스)가 구동되었는지 확인
  2. "Technitium DNS server" 나 "Acrylic DNS Proxy" 같은 DNS 서버가 떠 있는지 확인(laravel valet 때문에 "Acrylic DNS Proxy" 를 설치했더니 저 에러 발생함
@lesstif
lesstif / aws-ami2-ec2-redis-cli.md
Created Jun 12, 2019
install redis-cli on AWS AMI2 without redis server
View aws-ami2-ec2-redis-cli.md
#!/bin/bash
sudo yum install gcc -y
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make MALLOC=libc
@lesstif
lesstif / laravel-deploy-on-linux-ami2.sh
Last active May 1, 2019
laravel & php 7.2 & mysql install on amazon linux ami2
View laravel-deploy-on-linux-ami2.sh
#!/bin/bash
sudo yum update
## mkswap
## see https://aws.amazon.com/ko/premiumsupport/knowledge-center/ec2-memory-swap-file/
sudo dd if=/dev/zero of=/swapfile bs=1G count=4
##
sudo amazon-linux-extras install python3 php7.2 nginx1.12 redis4.0 epel
@lesstif
lesstif / nginx.service
Created Apr 28, 2019
nginx service systemd 등록 파일
View nginx.service
### save as /lib/systemd/system/nginx.service
[Unit]
Description=The NGINX HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
@lesstif
lesstif / confluence-login-attacker-block.sh
Last active Apr 24, 2019
confluence login attacker block
View confluence-login-attacker-block.sh
#!/bin/bash
## login.action 을 호출한 IP 중에 차단 제외 ip
MYIP=180.68.199.167
## apache httpd 일 경우 변경 필요
BLACKLIST=$(grep -h login.action /var/log/nginx/*.access.log |awk '{print $1}'|grep -v ${MYIP} |sort |uniq)
## firewall zone
ZONE=dmz
@lesstif
lesstif / ssh_config
Last active Apr 3, 2019
~/.ssh/config
View ssh_config
Host gitlab
HostName gitlab.com
User git
PubkeyAcceptedKeyTypes +ssh-rsa
PreferredAuthentications publickey
IdentityFile ~/.ssh/gitlab-key/id_rsa
Host github
HostName github.com
User git
@lesstif
lesstif / Laravel Nova snippets.md
Created Apr 2, 2019 — forked from Krato/Laravel Nova snippets.md
A set of snippets I use in Laravel Nova
View Laravel Nova snippets.md

A set of snippets I use in Laravel Nova

Snippets

Vue,js devtools (Only with manual installation)

cd ./nova 
yarn
mv webpack.mix.js.dist webpack.mix.js
@lesstif
lesstif / comodo-domainca.crt
Last active Apr 11, 2019
SSL/TLS 인증서 체인 검증을 위한 CA/ROOT CA 인증서 모음(SSL/TLS Intermediate Certificate archive for chain validation)
View comodo-domainca.crt
## openssl x509 -in comodo-domainca.crt -text
## https://support.comodo.com/index.php?/Knowledgebase/Article/View/970/108/intermediate-2-sha-2-comodo-rsa-domain-validation-secure-server-ca
## Version: 3 (0x2)
## Serial Number:
## 2b:2e:6e:ea:d9:75:36:6c:14:8a:6e:db:a3:7c:8c:07
## Signature Algorithm: sha384WithRSAEncryption
## Issuer: C=GB, ST=Greater Manchester, L=Salford, O=COMODO CA Limited, CN=COMODO RSA Certification Authority
-----BEGIN CERTIFICATE-----
@lesstif
lesstif / yum-mirror-change.php
Last active Mar 21, 2019
change to yum mirror repository to korea ISP.
View yum-mirror-change.php
<?php
// mirror list
$mirror_list = [
'cdnetworks' => 'http://centos.mirror.cdnetworks.com/$releasever/os/$basearch/',
'naver' => 'http://mirror.navercorp.com/centos/$releasever/os/$basearch/',
'kakao' => 'http://mirror.kakao.com/centos/$releasever/os/$basearch/',
];
// root 가 아니면 현재 폴더에 생성
@lesstif
lesstif / .gitignore
Last active Apr 26, 2019
openssl 1.1 & nginx compile script for TLS 1.3 support on RHEL/CentOS 7
You can’t perform that action at this time.