웹마짱구의 블로그

728x90

원문 : https://ecwebservices.medium.com/adding-phpmyadmin-to-laravel-sail-64823687e084

 

Adding PHPMyAdmin to Laravel Sail

PHPMyAdmin is very widely used, and it makes MySQL much easier.

ecwebservices.medium.com

 

1. docker-compose.yml 수

...
depends_on:
   - mysql
   - redis
   - minio
   - phpmyadmin
...


phpmyadmin:
   image: 'phpmyadmin:latest'
   ports:
      - 8080:80
   networks:
      - sail
   environment:
      - PMA_ARBITRARY=1

 

2. sail up -d

3. localhost:8080 접속

4. 서버 필드에는 mysql 로 기입.

728x90

원문 : https://lucidmaj7.tistory.com/239

 

Windows 10 WSL 기본 리눅스 설정하기

Windows 10에서 도입된 Windows WSL(Windows Subsystem for Linux)은 Windows에서 리눅스를 사용할 수 있게 해주는 기능입니다. 별도의 가상머신을 설치 하지 않고도! WSL에는 Microsoft Store를 통해서 여러가지 배포

lucidmaj7.tistory.com

 

c:\>wsl -s [변경할 WSL]

728x90

원문 : https://serverfault.com/questions/52285/create-a-public-ssh-key-from-the-private-key

 

Create a public SSH key from the private key?

Let's suppose I have a SSH key, but I've deleted the public key part. I have the private key part. Is there some way I can regenerate the public key part?

serverfault.com

 

$ ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub

728x90

원문 : https://digitalogia.tistory.com/282

 

Laravel - 다국어설정, 지역화에 대해서

Laravel 11 버전 이상에서.env 파일에서만 세팅하면 끝난다.APP_TIMEZONE=Asia/SeoulAPP_LOCALE=koAPP_FALLBACK_LOCALE=koAPP_FAKER_LOCALE=ko_KR 지역 설정 하기config/app.php'timezone' => 'Asia/Seoul','locale' => 'ko', 'fallback_locale' =>

digitalogia.tistory.com

 

[ .env  ]

APP_TIMEZONE=Asia/Seoul

APP_LOCALE=ko
APP_FALLBACK_LOCALE=ko
APP_FAKER_LOCALE=ko_KR

 

728x90

원문 : https://zel0rd.tistory.com/140

 

git ignore 안될 때!! (node_modules 제거)

npm을 사용할 때, package.json에는 의존하는 패키지 리스트가 나와있고 npm install을 통해 필요한 패키지들을 받아서 사용하게 된다. 이 패키지들은 node_modules라는 폴더에 설치가 되는데... 수 많은 파

zel0rd.tistory.com

 

$ git rm --cached -r node_modules 

728x90

백업에서 복원시 사용자 정보 수정시  에러 날때.


EXEC sp_change_users_login 'Auto_Fix', '계정이름'

728x90

$ php artisan schedule:run
No scheduled commands are ready to run.

 

$ php artisan up
Application is now live.

 

$ php artisan schedule:run
Running scheduled command: 

728x90

원문 : https://saturnkim.dev/posts/vim-remembering-last-position/

vimrc

 

if has("autocmd")
  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif

 

chown username .viminfo

 

전체 환경에 적용하려면 /etc/vim/vimrc에 추가

우분투 커널 삭제

Ubuntu2023. 3. 29. 14:43
728x90

현재 커널 확인
# uname -r

4.15.0-208-generic

설치된 모든 커널 확인
# dpkg --list|grep "linux-image\|linux-headers\|linux-modules"
ii  linux-headers-4.15.0-208               4.15.0-208.220                                  all          Header files related to Linux kernel version 4.15.0
ii  linux-headers-4.15.0-208-generic       4.15.0-208.220                                  amd64        Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii  linux-headers-generic                  4.15.0.208.191                                  amd64        Generic Linux kernel headers
ii  linux-image-4.15.0-208-generic         4.15.0-208.220                                  amd64        Signed kernel image generic
pi  linux-image-4.4.0-210-generic          4.4.0-210.242                                   amd64        Signed kernel image generic
ii  linux-image-generic                    4.15.0.208.191                                  amd64        Generic Linux kernel image
ii  linux-modules-4.15.0-208-generic       4.15.0-208.220                                  amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
pi  linux-modules-4.4.0-210-generic        4.4.0-210.242                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-modules-extra-4.15.0-208-generic 4.15.0-208.220                                  amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
pi  linux-modules-extra-4.4.0-210-generic  4.4.0-210.242                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP


자동삭제
# apt autoremove

수동삭제
# apt purge linux삭제커널

728x90

출처 : https://youtu.be/yQ20jZwDjTE?t=14429

 

interval = 2

prev_height = browser.execute_script('return document.body.scrollHeight')

while True:

           browser.execute_script('window.scrollTo(0, document.body.scrollHeight)')

           time.sleep(interval)

           curr_height = browser.execute_script('return document.body.scrollHeight')

           if curr_height == prev_height:

                 break

            prev_height = curr_height

 

print('스크롤 완료')