2023-01-01ãã1å¹´éã®è¨äºä¸è¦§
standardnotes ã使ã£ã¦ã¿ãã ï¼è¡ã¾ã¨ã ãã¼ã¯ãã¦ã³ã使ããªãã -ææ°çã§ã¯ããã¡ã¤ã«ã®æ·»ä»ãã§ããªãã ç¡æçStandardNotesã¯æ©è½å¶éãè¾ãããã ã¨ããå°çãªã®ã§ãåºæ¬çã«ã¯ãªããªãã£ã¦æã ãµã¼ãã¼ç«ã¦ã¦ãæå³ããªãã 次ã®ããã«ãªãã Dâ¦
notion ã£ã½ãæãã®ã¡ã¢ãã¼ã«ã使ãã ãªã³ã©ã¤ã³ã§ãã¡ã¢ãåãã¦å種添ä»ã使ãã¦ããã¼ã ã§ä½¿ãããã¼ããã¼ã«ã使ã£ã¦ã¿ãã Githubã¬ãã¸ã㪠-æ¬å®¶ãµã¤ã ï¼å¹´ä½è¿½ãããã¦ããã©ããããã使ããããã«ãªã£ã¦ããå½åã¯æ¥æ¬èªã®å ¥åãã¾ã¾ãªããªãâ¦
sqlite3 ã¯åºåãå¤ããããã sqlite mode ã使ã£ã¦åºåä¾ãå¤ãã¦ã¿ãä¾ã markdown ãã¼ã¯ãã¦ã³ã§è¡¨ã表示ã§ããããã¼ã¯ãã¦ã³ãæ¸ãã®ãããã©ãããã¨ãã«ã¯ãã¼ã¿çªã£è¾¼ãã§ãå¤æããã楽ãããããªãã mode box 罫ç·ï¼ããã¯ã¹ï¼ã使ã£ã¦è¡¨ãããâ¦
ssh 㧠v6 ã¢ãã¬ã¹ãv4 ã¸ãã¼ããã©ã¯ã¼ãã£ã³ã°ã試ãã¦ã¿ãã ssh 㧠v4-v4 ã®ãã¼ããã©ã¯ã¼ãã£ã³ã° ssh my-server -L8080:192.168.1.1:80 ssh 㧠v4-v6 ã®ãã¼ããã©ã¯ã¼ãã£ã³ã° v4 ã®ã¨ãã¨åãã§ãv6 ã¢ãã¬ã¹ã [::1] ã®ããã«[ ] ã§å²ãã ãã sâ¦
Apache+php-fpm mod_php ã php-fpm ã«åãæ¿ããã nginx ã§ãããã¨ãå¤ããã©ãfpm 使ã£ã¦fcgi ã¸è»¢éãããªããapache2 ã§ã nginx ã§ããã¾ãå¤ãããªãã åããããªä»çµã¿ãªã®ã§ãé度ãå¤§å¹ ã«å¤ãããã¨ããªãã¨æãã apacheãä¸å©ã ã¨ããã°ã.htaâ¦
net-smpt xoauth2 ã§Gmailã使ã£ã¦éä¿¡ããã GMail ã¯ã¢ã¬ã³ã¬ããããããã¨ãããããOAuth2ã«å¯¾å¿ãããã°ãSMTPãµã¼ãã¼ã使ããã¦ããããã require 'gmail_xoauth' require "googleauth" require "googleauth/stores/file_token_store" require 'gmaâ¦
ãã£ã¬ã¯ããªæ§é ã ããåæ¸ããã rsync -av -f"+ */" -f"- *" . rclone ã ã¨ãã£ã¬ã¯ããªæ§é ãã³ãã¼åºæ¥ãªãã®ã§ã rclone mount å¾ã« rsync ã§ãã£ã¬ã¯ããªæ§é ãã³ãã¼ããã åèè³æ https://www.cyberciti.biz/faq/unix-linux-bsdosx-copying-direcâ¦
df ã®çµæãè¦ã¥ããã®ã§æ´çããã df ã lsblk ã®çµæãã¨ã¦ãåé·ã«ãªãã欲ããç©ãè¦ããªããªã£ãã lsblk 㧠loopããã¤ã¹ã表示ãããã®ã¯ã¾ã ããããããã¦ã³ãå ã大éã«è¡¨ç¤ºãããã¨ããã«ãªã¹ã df ã§ã¯ tmpfs ã loopã«ããããã·ã¹ãã éç¨ã®sâ¦
htop ã®è²ã®æå³ï¼ã¡ã¢ãªã®é»è²ã¯ï¼ï¼ F1ãæ¼ãã°ã§ã¦ããã é»è²ï¼Cache éè²ï¼buffers ç·è²ï¼used ç´«è²=Shared ã£ã¦ãã¨ã§ããã ã¡ã¢ãªã§ããã¨ãé»è²ã®ãã£ãã·ã¥ãã¹ãã¬ã¼ã¸ã®ãªã¼ããã£ãã·ã¥ã§ãããããtmpfs ã¯é»è²ãç´«è²ã«åºã¦ããã¯ãã
WSLãã¨ã¯ã¹ãã¼ããã WSLç°å¢ãããã¯ã¢ããåã£ã¦ããããã åä½ããªããã®ã¨ã¯ã¹ãã¼ãã¯åºæ¥ãªããã§æ³¨æã C:\Users\takuya>wsl.exe --export Debian Debian.tgz ä¸è¨ã®ãã¹ãè¦ã¦åããéããPS/cmd.exeããè¡ãã åèè³æ https://superuser.com/qâ¦
nginx 㧠lua ã使ã ã¤ã³ã¹ãã¼ã«ã¨æºå deiban ã®å ´åã¯æ¬¡ã§ä¸çºã§çµããã sudo apt install libnginx-mod-http-lua æåã«ç¬¬ä¸æ© location ~ / { default_type 'text/html'; content_by_lua "ngx.say('Hello, ngx_lua World!')"; } ã¢ã¯ã»ã¹ãã¦ã¿ãã lâ¦
debian ã®nginxã§luaã使ã£ã¦ãã®ã§Ubuntuã§ä½¿ããã¨æã£ãããªãã£ãã debian ã®nginx ã«ã¯ lua ããã£ããã©ãã§å ¥ãããã ã£ãã nginx -V 確èªãããã©ã³ã³ãã¤ã«ã§ã¯å ¥ã£ã¦ãªãã ã¢ã¸ã¥ã¼ã«ã§ã¯å ¥ã£ã¦ãã apt-file show libnginx-mod-http-lua libngâ¦
githubã®ã¯ã¼ã¯ããã¼ã«è¨å®ãããã¼ç´å¤± äºæ ã§ç°å¢å¤æ°ãåªå¤±ãã¾ãããã¯ããã·ã¼ã¯ã¬ããããããã¾ããã ã§ããGithubã®ã¯ã¼ã¯ããã¼ã«ã¯æ®ã£ã¦ããã§ãã使ãã¦ããã®ã§ãããªãã¨ããã¦Githubã¯ã¼ã¯ããã¼ã§ä½¿ã£ã¦ããã·ã¼ã¯ã¬ããå¤æ°ãåãåºãã¦â¦
OpenWrt ã®DDNSã®ç®¡çã¹ã¯ãªããã使ã£ã¦ããã¡ã¤ã³ãã®æ´æ°ã確èªãããã¨ãã§ããã openwrt ã®ç¹å®ã® ãã¡ã¤ã³ãæ´æ°ããã«ã¯ è¨å®ããã¹ããããã¨ãåºæ¥ãã /usr/lib/ddns/dynamic_dns_lucihelper.sh /usr/lib/ddns/dynamic_dns_updater.sh ãã¨ãã°ãâ¦
dropbear ã§ssh éµãã¡ã¤ã«ãä½æãã ssh localhost -p 2202 ssh: Exited: String too long openssh ã§ä½æããéµããã®ã¾ã¾æã¡è¾¼ãã¨ãString too longãããã¯ã«ã®ã®ä¿ç®¡æ¹å¼ã®åé¡ãbase64ã¨ã³ã³ã¼ããæãã£ã¦ãããè¨ããããã ãããªããã³ã¼ããã¦â¦
tcpdump ã§PPPoEããããã³ã°ããã sudo tcpdump -i eth0 'ether[0x0c:2] == 0x8863 or ether[0x0c:2] == 0x8864' éã«ãPPPoEã®ãã±ãããé¤å¤ãããã¨ã sudo tcpdump -i eth0 'not ( ether[0x0c:2] == 0x8863 or ether[0x0c:2] == 0x8864 )' pppoe ã®ãâ¦
php ã§ãããåå¾ãæ°å¤ã«å¤æããã php 㧠00:10:11 åå¾ãint ã«ãããã æå»ã®å·®åããµã¯ãã¨ãintã«å¤æãã å®è¡çµæ int(247) â¦
openwrt ã«ã¦ã¼ã¶ãä½ã£ã¦sudo ãã äºåã®ã¦ã¼ã¶ããã£ãã»ããå¬ããã¨æãã äºåã®ã¦ã¼ã¶ãä½ã echo takuya:x:1000:takuya >> /etc/group echo takuya:x:1000:1000:takuya:/home/takuya:/bin/bash >> /etc/passwd echo takuya:x:0:0:99999:7::: >> /etcâ¦
luks ãã£ã¹ã¯ã¾ã¨ã LUKSã«ã¤ãã¦ã¯ãéå»ã«èª¿ã¹ãªããã¡ã¢ããã¦ããã®ã§ãããã¨ããã¨ãã«è¨äºããã©ãã¦ããã®ã§ãç®çã®ãã®ã«ãã©ãçãã®ã大å¤ãªã®ã§ãLUKSã§æå·åãã£ã¹ã¯ãåãæ±ãã³ãã³ãã§ããã使ããã®ãã¾ã¨ãè¨äºã«ãç´ããã luks ãã£â¦
joplin ãµã¼ãã¼ã®ã¤ã³ã¹ãã¼ã« Created: 2023.09.21 02:36 Updated: 2023.11.23 23:52 Combined: 2023.11.23 23:52 joplin ãµã¼ãã¼ã®ã¤ã³ã¹ãã¼ã«ã§é«éåããããã Joplinãµã¼ãã¼ãä½ããªãã¦ããNextCloudã§åæã§ãã¦ãããåé¡ãªãã¨æã£ã¦ããã次â¦
php ã§ããã»ã¹ãèµ·åããã¨ãã«ããã¤ããä½ã£ã¦ããããã®å®è¡ããã php 㧠pipeãä½ãä¾
Laravel㧠ã¹ãã¬ã¼ã¸è¨å®ãä¸æçã«ä½ã£ã¦ããã¹ãç¨ã«ä½¿ãã ãã¹ãã®ããã ãã«ãconfig ãè¨å ¥ãã¦æ±ãã®ãæãããã®ã§ããã®å ´ã§ä½¿ãæ¨ã¦ã®ã¹ãã¬ã¼ã¸è¨å®(on-the-fly/Ephemeral)ã®ã¹ãã¬ã¼ã¸è¨å®ãä½ã£ã¦ä½¿ãã 使ãæ¨ã¦ã®Storageå®ç¾©ãã¦çµãã£ããâ¦
laravel 㧠ã¸ã§ãã»ãã¥ã¼ãè¡ã ã¸ã§ããã¥ã¼ãä½é¨ãã ã¸ã§ããã¥ã¼ã®æºå ã³ãã³ãã®æºå ã¸ã§ãã»ãã¥ã¼å®è¡ãã 失ææã®åãæ±ã ã¸ã§ããã¥ã¼ãä½é¨ãã Laravelã®ã¸ã§ãã¨ãã¥ã¼ã®ä»çµã¿ãä½ã£ã¦ä½é¨ãã¦ã¿ãã WEB-UIãä½ãã¨ããã©ãããã®ã§ãâ¦
laravel ã§event ãæ±ã laravel ã«ã¯ã¤ãã³ãã¨ãªã¹ããçµã¿åãããããéè¤ã³ã¼ã解æ¶ã«å½¹ç«ã¤ããã¼ã¿ãæ´æ°ãããã¿ã¤ãã³ã°ã§è¡ãå¦çãããªã¹ãã«è¨å ¥ããå ±éåãããæ´æ°ã¿ã¤ãã³ã°ãã¤ãã³ãã¨ãã¦çºç«ãããããã«è¨è¨ãããããã使ãã¨ãã¡ã¤ã³â¦
ã¨ããéè¡ã§ãã ãã¹ã¯ã¼ãããã¼ãã¼ãã§å ¥åã§ãã¾ãã ãã¹ã¯ã¼ããå ¥åãããã¨ãããåãã¾ããã ã½ã¼ã¹ãè¦ã¦ã¿ã¾ããã input[type=password][readonly=readonly] ãªã¼ããªã³ãªã¼ã§ããèªã¿è¾¼ã¿å°ç¨ã§ãã ãªãã§ãããªäºã«ãªã£ã¦ããã§ãããããâ¦
setsuid ã§å®è¡ã¦ã¼ã¶ãåºå®ã§ããã£ã¦ã®ã¯ã©ãã¾ã§ï¼ ã·ã§ã«ã¹ã¯ãªããã£ã¦suidã§ããªãã£ããããã¨ãããã¨ã確èªãã¦ã¿ãã suidã試ãã¦ã¿ãã ã¾ãã¯ãsuid ãç´ ç´ã«è©¦ãã¦ã¿ããã¨ã«ããã å®è¡å¯è½ãªãã¤ããªãæºåããã #include <pwd.h> #include <stdint.h> #incl</stdint.h></pwd.h>â¦
RAMãã£ã¹ã¯ãæ軽ã«ä½¿ããããã¨ããã£ãã¨ãã«tmpfs ãããã tmpfs ããã¦ã³ãããã sudo mount -t tmpfs -o size=20G,mode=1777 storage/app/work/ tmpfs ãååä»ãã§ãã¦ã³ããã ååãã¤ããã,dfãªã©ãããã¨ãã«ãtmpfs 表è¨ãããªããªãã sudo â¦
HDDãå£ãã¦ãã¼ã¿å ¨é¨é£ã°ããããã¤ã³ãã¤ã¹é¢é£ã§äººçãè©°ã¿ããã ã¨ããã³ããã®ä½æ³¢ä»äºããªããªãã¨ãããã®å¾ããã«ä»äºããªããªãã¨ããå°é¢¨ã§å¤ãèªå® ãå£ãããã§ç´ããããåä¾ãçã¾ãããã ãã©NIPTãããããªã½ãã¼ã ã¨ããã£ãããRaspiãã¶â¦
docker ã§ubuntuãèµ·åããå ´å ãªããå®é¨ã«ã¯docker ã®ãããã«äºæã½ããã§ããpodman ãç¨ããã docker / ubuntu ã§bashãèµ·åãã docker run -it ubuntu bash èµ·åä¾ [root@docker-host ~]# podman run -it ubuntu bash root@4d6a491bb9ab:/# cat /etâ¦
debian12 ã«ç§»è¡ãããã¨ã©ã¼ãã¬ãã¼ããããããã«ãªã£ã mysqldump: Couldn't execute 'show events': Cannot proceed, because event scheduler is disabled (1577) ãããããevent scheduler ã使ã£ã¦ãªãã¨æãã®ã§ããã MariaDB [(none)]> SELECT @â¦