Skip to content

Instantly share code, notes, and snippets.

View xu20160924's full-sized avatar
๐ŸŽฏ
Focusing

John Xu xu20160924

๐ŸŽฏ
Focusing
View GitHub Profile
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active April 27, 2025 13:47
ๅ›ฝๅ†…็š„ Docker Hub ้•œๅƒๅŠ ้€Ÿๅ™จ๏ผŒ็”ฑๅ›ฝๅ†…ๆ•™่‚ฒๆœบๆž„ไธŽๅ„ๅคงไบ‘ๆœๅŠกๅ•†ๆไพ›็š„้•œๅƒๅŠ ้€ŸๆœๅŠก | Dockerized ๅฎž่ทต https://github.com/y0ngb1n/dockerized

Docker Hub ้•œๅƒๅŠ ้€Ÿๅ™จ

ๅ›ฝๅ†…ไปŽ Docker Hub ๆ‹‰ๅ–้•œๅƒๆœ‰ๆ—ถไผš้‡ๅˆฐๅ›ฐ้šพ๏ผŒๆญคๆ—ถๅฏไปฅ้…็ฝฎ้•œๅƒๅŠ ้€Ÿๅ™จใ€‚

Dockerized ๅฎž่ทต https://github.com/y0ngb1n/dockerized

1๏ธโƒฃ Docker daemon ้…็ฝฎไปฃ็†๏ผˆๆŽจ่๏ผ‰

ๅ‚่€ƒ Docker daemon ้…็ฝฎไปฃ็†

@hassansin
hassansin / README.md
Last active February 14, 2024 17:09
Remote Debugging with XDebug 2.1

XDebug

A PHP extension that allows you to:

  1. walk through your code by Remote Debugging
  2. find bottlenecks in your application by Profiling
  3. find Code Coverage in a single request
  4. trace your application by logging all function calls
@sgnl
sgnl / postgres-brew.md
Last active November 29, 2024 08:26
Installing Postgres via Brew (OSX) (outdated see top most note)

Outdated note: the process is a lot easier now: after you brew install postgresql you can initialize or stop the daemon with these commands: brew services start postgresql or brew services stop postgresql.

new out put may look like

To have launchd start postgresql now and restart at login:
  brew services start postgresql
Or, if you don't want/need a background service you can just run:
  pg_ctl -D /usr/local/var/postgres start
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active April 27, 2025 06:56
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@joechrysler
joechrysler / who_is_my_mummy.sh
Last active March 31, 2025 06:40
Find the nearest parent branch of the current git branch
#!/usr/bin/env zsh
git show-branch -a \
| grep '\*' \
| grep -v `git rev-parse --abbrev-ref HEAD` \
| head -n1 \
| sed 's/.*\[\(.*\)\].*/\1/' \
| sed 's/[\^~].*//'
# How it works: