Skip to content

Instantly share code, notes, and snippets.

View byodian's full-sized avatar
👋
Hello world

byodian byodian

👋
Hello world
View GitHub Profile
@byodian
byodian / README.md
Created July 13, 2022 06:39 — forked from addyosmani/README.md
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

after Build 17093

  • can override settings by edit "/etc/wsl.conf"
  • normally this file is not exists at first
$ sudo vi /etc/wsl.conf

[interop]
appendWindowsPath = false
@byodian
byodian / environment.md
Last active January 6, 2022 02:13
终端环境配置步骤

终端环境配置

  1. 安装 wsl2 (windows), iTerm2(mac)
  2. nerd fonts
  3. oh-my-zsh
  4. nvm (nodejs 包管理器)
  5. neovim
  6. tmux
  7. 终端设置系统代理

更新 Ubuntu

@byodian
byodian / NginxReloadBug
Created June 16, 2021 06:29 — forked from sun4lower/NginxReloadBug
nginx: [error] invalid PID number "" in "/var/run/nginx.pid"
pkill -9 nginx
nginx -c /etc/nginx/nginx.conf
nginx -s reload
@byodian
byodian / node_nginx_ssl.md
Last active November 28, 2021 09:18 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user