2020-01-01ãã1å¹´éã®è¨äºä¸è¦§
ã¿ã¤ãã«ã®ãã 以ä¸ã®ã¨ãã«ãã¾ã£ã thr3a.hatenablog.com 解決ç GitHubã«ãã°ã¤ã³ããç¶æ ã§å³ä¸ã®èªåã®ã¢ã¤ã³ã³ãã¯ãªã㯠Feature Previewã¯ãªã㯠ãImproved container supportããEnabledã«ãã åèãªã³ã¯ buildx call failed with: failed to soâ¦
ç°å¢ 2020-12-31ç¾å¨ ææç© thr3a/imagemagick-docker docker pull ghcr.io/thr3a/imagick YAML .github/workflows/action.ymlãç¨æ name: Build and Publish Docker on: push: branches: - master jobs: build_and_push: runs-on: ubuntu-20.04 env: IMAGâ¦
vue create --preset kocal/vue-web-extension
vue create --preset kocal/vue-web-extension
ECRã£ã¦é¦´æã¿ç¡ããããªãã ãããã©ãå ¬å¼ãµã¤ãããAmazon ECR ã¬ã¸ã¹ããªãã£ã¦è¬³ã£ã¦ãã®ãªããã¦ã±ã æ¦è¦ Fargateã«ãããã¤ããã«ããã£ã¦AWSã«ã³ã³ãããPushããå¿ è¦ãã§ã¦ããã®ã§ã¡ã¢ ã¡ããã©ã¿ã¤ã ãªã¼ã«Public Registoryããªãªã¼ã¹ãã¦ãããâ¦
ã¾ãã¿ã¤ãã«ã¯åã§ãAWSã¨ã大御æ¸ã®æ¨å¥¨ãªãã·ã§ã³ãã¡ã¢ããã ãï¼ AWS rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport ãã¦ã³ãã«é¢ãã追å ã®èæ ®äºé - Amazon Elastic File Systemã«è¨è¼ããã¦ããã rsize=1048576 â åãããã¯â¦
GUIã§ãã£ããã§ããããã«ãã令åã ã æ¦è¦ Mac OSã«ã¯æ¨æºã§ããã£ã¹ã¯ã¦ã¼ãã£ãªãã£ãã¨ãããã£ã¹ã¯ç®¡çãã¼ã«ããããå èµ/å¤ä»ãã®ãã£ã¹ã¯ãUSBã¡ã¢ãªãGUIã§ãã©ã¼ãããã§ããã¢ããªã§ãWindowsã§ãããã£ã¹ã¯ã®ç®¡çã«ãããã ããLinuxã®USBã¤â¦
ç°å¢ Chrome manifest v2 ã³ã¼ã chrome.tabs.query({'active': true, 'lastFocusedWindow': true}, tabs => { const url = tabs[0].url alert(url) }) backgrond.jsã¨ãpopup.jsã¨ãã§ä½¿ããã tabsã£ã¦å ¥ã£ã¦ããããã¼ããã·ã§ã³ã«ãTabsãå¿ é ããªã¨æã£â¦
ç°å¢ Chrome manifest v2 ã³ã¼ã chrome.tabs.query({'active': true, 'lastFocusedWindow': true}, tabs => { const url = tabs[0].url alert(url) }) backgrond.jsã¨ãpopup.jsã¨ãã§ä½¿ããã tabsã£ã¦å ¥ã£ã¦ããããã¼ããã·ã§ã³ã«ãTabsãå¿ é ããªã¨æã£â¦
çµè« javascriptã¨ã³ã³ã¼ãå´ encodeURIComponent('ãã³ãã³ãã¼ã¹ã¤ãã') // => "%E3%83%8B%E3%83%B3%E3%83%86%E3%83%B3%E3%83%89%E3%83%BC%E3%82%B9%E3%82%A4%E3%83%83%E3%83%81" Rubyãã³ã¼ãå´ require 'uri' URI.decode_www_form_component("%E3%83%8Bâ¦
çµç·¯ iPhoneã¨ãã½ã³ã³ã®éä¿¡ãããããã¦ãã©ã¤ããã³ã°ã±ã¼ãã«ã欲ãããªã£ãã ä»åã¯çãã¦ããã®ã¨ãä¸æçã«ä½¿ãã ããªã®ã§ç´æ£ã¨ããããªãã¦ãå®ãæã«å ¥ãããã£ãã ã§ãè²ã 100ååä¸è¦ã«è¡ã£ãçµæãæå¼·ã®ã³ã¹ãã®100åã©ã¤ããã³ã°ã±ã¼ãã«ãâ¦
youtube-dlæ¶ããã¦ä»¥éã®æ¹ãããã¸ã§ã¯ãæ´»çºã§è bilibiliåç»ã¨ã¯ ãã³ãã³åç»ã®ä¸å½çãä»¥ä¸ åç»ããã¦ã³ãã¼ã ã¾ãæ» å¤ã«ç¡ããã©bilibiliã®ä¸å½åç»ããã¦ã³ãã¼ããããå ´å çã£å ã«åºã¦ããã®ã¯ãä¸åº¦æ¶ãããã¢ããªãã¨ãyoutube-dlã å®ã¯youâ¦
ç°å¢ Armbian 20.11.3 Focal æ¦è¦ Armbianã¨ããARMã¢ã¼ããã¯ãã£ã®ã·ã³ã°ã«ãã¼ãã³ã³ãã¥ã¼ã¿ã¼ã«å°ç¨ã®OSãããã ãã®OSã®ããã¨ããã¯Raspberry Piã¨ãã¨éã£ã¦å¤ç¨®å¤æ§ãªæ©ç¨®ã«å¯¾å¿ããã¦ããã¨ããã ãã¨ãæ±ããããã®ã§ä»åã¯TinkerBoardã«å ¥ãã¦â¦
ç¶æ³ debianç³»ã®dockerã§httpsã®URLãcurlã§å©ãã¨ä»¥ä¸ã®ãããªã¨ã©ã¼ã«ãªã£ã¦æ»ã¬ SSL certificate problem: unable to get local issuer certificate Dockerfileã¯ãããªæã FROM debian RUN apt-get update \ && apt-get install -y --no-install-recommâ¦
令åææ°çNodejsã£ã¦é¿ããããªãã§ããï¼ ç°å¢ Nodejs v14 æ¦è¦ ãããããæå®ãããã¹ã®ãã¡ã¤ã«ãåå¨ãããã®ãã§ã㯠ããã¤ãæ¹æ³ãããã®ã§ã¡ã¢ ãæ¹æ³ï¼ãfs.existsSync()ã使ã ä¸çªãªã¼ã½ããã¯ã¹ã¨ãããå¤å ¸çãã©ã®Nodejsã®ãã¼ã¸ã§ã³ã§ãå®â¦
ç°å¢ Fastify 3.x ããããã㨠ç»åã¨ããµã¼ãã¼ã«ããéçãã¡ã¤ã«ããè¿ããã ãã¤ãã«ãã¡ã¤ã«ããã¡ãã¨è¡¨ç¤ºã§ããããã«ããã ãæ¹æ³ï¼ãfs.readFileã使ã ä¸çªãã¼ã·ãã¯ãFastityã«éãããnodejs使ã£ã¦ããªãæ¨æºã¡ã½ããã§è§£æ±ºãããã£ã¦èãæ¹â¦
ããã¾ãBulma使ã£ã¦ã人è¦ãªãããããã ç°å¢ Bulma CSS 0.75 å®æã¤ã¡ã¼ã¸ ã¡ããã©ãããªæã ã³ã¼ã ä¸ã®ãµã³ãã«è¦ãã°çµäºãªãã ãä¸å¿èª¬æ <div class="columns is-vcentered"> <div class="column has-text-centered"> <figure class="image is-128x128 is-inline-block"> <img src="https://bulma.io/images/placeholders/128x128.png"> </figure> </div> </div>
çµè« fastify使ããªã fastify-cli使ã ç°å¢ Nodejs 10 fastify v3.0.0 æ¦è¦ Nodejsã§ãµã¼ãã¼fastify-cliã使ã£ã¦APIãµã¼ãã¼ã®ã²ãªå£ãä½ã£ã¦ãGCPã®Cloud Runã«ãããã¤ããã¨ããã¾ã§ãã£ã¦ã¿ãã ã¤ã³ã¹ãã¼ã« ã¾ãã¯fastify-cliãã¤ã³ã¹ãã¼ã« å ¬å¼ã§â¦
ã³ãã³ãç¥ãã°ç°¡åã ã£ã ããããã㨠起åãã¦ããGCPã®ä»®æ³ãã·ã³ã®ãã£ã¹ã¯å®¹éãä¸è¶³ãã¦ããã®ã§æ¡å¼µãããã ããæ¹ ãã¹ãå´ ã¾ãMacbookã¨ãèªåã®PCå´ã§gcloudã³ãã³ãã使ã£ã¦æä½ããã gcloudã³ãã³ãã®ã¤ã³ã¹ãã¼ã«ã¯ä»¥ä¸ãã Google Cloud Sâ¦
ã½ããã¿ãã¨å «å·»ã¢ã³ãæ°ã®ãããã¬è¨äºä¸è¦§ ãã³ãã³ã®ãããã¬ã¯ï¼ï¼ï¼ï¼å¹´ä»£ã®ä»£ç©ãããããªããããã°æ¤ç´¢ããã§ããªããã§ããã¿ãã¿å´ã声åªå¥ã«ã¿ã°ãã«ãã´ãªåããè¡ã£ã¦ããªããããå°éã«ãã¼ã¸ãé¡ããããªããã åè¨äºã¯ãã¿ãã¿ãã£ã³ãã« â¦
ç°å¢ Windows 10 åé¡ Windows10ãæ®æ®µä½¿ã£ã¦ãã¦ãä»ã¾ã§ç´æ¥ã¤ã¤ãã³ã§é³æ¥½èãã¦ããã ããã¢ãã¿ã¼ã®ã¹ãã¼ã«ã¼ã使ã£ã¦é³å£°ãåçãããã¨ã«ãããHDMIã¢ãã¿ã¼ã使ã£ã¦ãããPCã¨ãã£ã¹ãã¬ã¤ã¨ã¯HDMIã±ã¼ãã«ã§æ¥ç¶ããã¦ããã ãµã¯ãã¨åç»è¦ãã¨ãâ¦
ç°å¢ Nuxt.js v2.x Vuejs v2.x VeeValidate v3 æ¦è¦ Nuxt.jsç°å¢ä¸ã§ãã©ã¼ã ãä½æãã¦ããã¨ããå ¥åå¤ã®ããªãã¼ã·ã§ã³ãç°¡åã«ãããã£ãã ä»åã¯VeeValidateã使ã£ã¦ããªãã¼ã·ã§ã³ããã¦ã¿ã VeeValidate ã¤ã³ã¹ãã¼ã«ãåæè¨å® ãã¤ãã®ã¤ã³ã¹ãã¼â¦
ç°å¢ Vuejs 2ç³» ããããã㨠ãã¨ãã° <template v-for="count in [10, 100]"> <button :key="count" class="btn btn-outline-primary" :data-count="count" @click="setCount($event)"> {{ count }} </button> </template> ã¿ãããªã³ã¼ãããã£ãã¨ãã¦< button >ã¿ã°ã®å¾ãã«åè§ã¹ãã¼ã¹ãæ¸ããã ããæ¹ æ®éã«ã ãããã¦ãã«ããããã¦ãã¾ãã®ã§ ã使ã
Raspberry Piãèªå® ã«ç½®ããªã©ãã¦ãå¤åºå ããã©ãºãã¤ã®VPNãµã¼ãã¼ã«ã¢ã¯ã»ã¹ãã¦èªå® ãããã¯ã¼ã¯ã«ã¢ã¯ã»ã¹ããªãã¦ãã¨ãããã人åã pivpnã£ã¦ä½ VPNãµã¼ãã¼ãã¦ã£ã¶ã¼ãå½¢å¼ã§ããããæä½ããã ãã§ã¤ã³ã¹ãã¼ã«ã§ããVPNã¤ã³ã¹ãã¼ã«ã¢ã㪠å®éâ¦
çµè« ããããdebianã®ç°å¢æå ã§ä½ããããã£ã¦ãã¨ã§dockerã«é ¼ã£ãã 以ä¸ã®ããã«ãã£ã¬ã¯ããªãé ç½®ãã $ tree mypackage mypackage âââ DEBIAN â âââ control â âââ postinst â âââ preinst âââ (以ä¸ä»»æ) å®è¡ docker run -v $(pwd):$(pwd) -w $(pwâ¦
ç°å¢ php 7.4 æ¦è¦ 訳åã£ã¦dockerã§åããphp-fpmã®ã³ã³ããå ã®php-fpmãrootã§å®è¡ãããã¨ãããã¨ã«ãªã£ãã ããã»ãã¥ãªãã£ä¸ã®çç±ãããã©ã«ãã§ã¯rootã§ã¯ãªãwww-dataã¨ããã¦ã¼ã¶ã¼ã§åä½ãã¦ãã root@43910975d907:~# ps aux USER PID %CPU %â¦
ããããã㨠findã³ãã³ãå®è¡ããããã©ãnode_modulesã®ä¸èº«ãã¡ã¤ã«å¤ããã¦æ¤ç´¢ããé¤å¤ãããã ããã§ãã㨠.gitãä¸èº«å¤ãã¦æ¤ç´¢éããªã£ã¦ãã¾ãã®ã§å¤ãããã ã¤ã¾ãã findã³ãã³ãã§è¤æ°ãã£ã¬ã¯ããªãé¤å¤ãã¦æ¤ç´¢ããããã£ã¦è©± ã³ãã³ã fiâ¦
ããããã㨠1ã¶æåã®æ¥ä»ãåå¾ããã ãã ããã ã ã³ãã³ã date -d "`date '+%Y-%m-01'` 1 months ago" '+%F' ãªãã§æ¥ä»é¨åã1æ¥åºæºã§è¨ç®ããå¿ è¦ãããã® ã°ã°ã£ã¦ åèãªã³ã¯ æ¥ä»ãåå¾ãã | UNIX & Linux ã³ãã³ãã»ã·ã§ã«ã¹ã¯ãªãã ãªãã¡â¦
æ¯åå¿ããã®ã§ã¡ã¢ ç°å¢ ãµã¼ãã¼å´ linux OS sshãã§ãã¦ããã㨠ä»åã¯ãã¹ã㧠xeyesãåããã®ã§ãããã¤ã³ã¹ãã¼ã«ããã¦ããã㨠ã¯ã©ã¤ã¢ã³ãå´ MacOS ä»åã¯æ¤è¨¼ç¨ãªã®ã§ã»ãã¥ãªãã£ã¯ä¸åèæ ®ããªã ããããã㨠é常ãsshã§ã¯æ¥ç¶å ã«GUIç°å¢â¦
çµè« ãåã®ãã ç°å¢ Elasticsearch 5.x æ¦è¦ è¤æ°ãã¼ãã§ã¯ã©ã¹ã¿ã¼ãçµãã§ããElasticsearchã§ã1å°ãå£ããããã¡ã³ããã³ã¹ã§åèµ·åããã¨ãã«ã·ã£ã¼ããªã«ããªãçºçãããããããããé ãã ããé ãã®ã¯ã¹ããã¯ã®ããã¨ãESã®ããã§ã¯ãªãè¨å®ã®â¦