2020-05-01ãã1ã¶æéã®è¨äºä¸è¦§
OSåèµ·åæã«èªåã§fsck(ãã¡ã¤ã«ã·ã¹ãã ã®ç¶æ ã調ã¹ãã修復ãããããããã®ãã®)ãèµ°ãã¨å°ããã¨ãå¤ã ããã é害çºç -> åèµ·å -> fsck(é·æé)ãªãã¦å ´åã«fsckã¯é£ã°ãããã£ã¦æã«ä½¿ããç¥è vi /etc/fstab # LABEL=root / ext3 defaults 1 1 LAâ¦
Stringå 追å set key value åé¤ del key åå¾ get key è¤æ°è¿½å mset key value key value è¤æ°åå¾ mget key key Listå æ«å°¾è¿½å rpush key value å é 追å lpush key value æ«å°¾åé¤ rpop key å é åé¤ lpop key å ¨é¨åå¾ lrange key 0 -1 æå®ããintâ¦
github.com é²åã®ãã¾ããããgithub actionsã®cacheã®v2ããªãªã¼ã¹ããã¦ããã ã©ã®ããã¼ãæ¸ãã¦ãå¿ é ã¨è¨ã£ã¦ãéè¨ã§ã¯ãªãã¢ã¯ã·ã§ã³ãªã®ã§æ©éå°å ¥ãã¦ã¿ãã zstdå§ç¸®ã使ç¨ãã¦ã®ããã©ã¼ãã³ã¹ã®åä¸ ä»ã®ããã¼ãããã£ãã·ã¥ãå©ç¨å¯è½ã« è¤â¦
goplsãcocããå¼ã³åºããªãã¨ããã«ããã¨ãã®ã¨ã©ã¼ 14 "golang": { 15 "command": "gopls", 16 "rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"], 17 "filetypes": ["go"], 18 "initializationOptions": { 19 "usePlaceholders": true 20 } 21 }, :â¦
åå ãã¦ã³ããã¤ã³ã 説æ bdev ãããã¯åããã¤ã¹ devpts /dev/pts ç似端æ«ã®æä¾ eventpollfs å¹çã®è¯ãã¤ãã³ããã¼ãªã³ã°æ©æ§ãå©ç¨ futexfs futex(ã¦ã¼ã¶ç©ºéã®ããã¯æ©æ§)ãä½¿ç¨ pipefs ãã¤ããFIFOã¨ãã¦æ±ã proc ã«ã¼ãã«ãã¼ã¿æ§é ã¸ã®ã¢ã¯â¦
package main import ( "fmt" "os" "os/signal" "syscall" ) func main() { signal.Ignore(syscall.SIGPIPE) for { _, err := fmt.Println("Wow!") if err != nil { if e, ok := err.(*os.PathError); ok && e.Err == syscall.EPIPE { break } else { panic(â¦
netstatã§LISTENç¶æ ã®portã確èªããæã«ä»¥ä¸ã®ããã«è¡¨ç¤ºããããã¨ããã # netstat -antu | grep LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1084/sshd tcp6 0 0 :::80 :::* LISTEN 2316/httpd (httpdããµã³ãã«ã¨ãã¦ã) httpdã®LISTENã:::80ã§ããâ¦
æ°è¦æ§ç¯ãããµã¼ãã§nginxããã«ããããã¨ãããä¸è¨ã¡ãã»ã¼ã¸ãã ./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option, or install the PCRE lâ¦
ç®è¡æ¼ç®åã使ã£ãã¹ã¯ãªããã§å¤æ°ãè¤æ°å¤å¤æ´ãããå ´åã«ã¯ã«ã³ãæ¼ç®åã使ãã $ cat test.sh : $((a=1,b=3)) $ echo $a $b 1 3 é½åº¦é½åº¦ç®è¡æ¼ç®åãæ¸ãå¿ è¦ãç¡ãã¦ä¾¿å© ãã¡ããè¤åä»£å ¥æ¼ç®åã¨ã®ä½µç¨ãå¯è½ : $((a+=10, b+=20)) ã«ã¼ãå¦çã§ã¤â¦
1.ã¯ããã« LinuxOSã«ä»å±ããæ¢åã®ã³ã³ãã¤ã©gcc/g++ã«å ãã¦å¥ã®gcc/g++ãå°å ¥ããã¨åçãªã³ã¯ã®ã©ã¤ãã©ãªã®åé¡ãçºçããäºãããã¾ããã¡ã¢ã¨ãã¦æ®ãã¾ãã ç°å¢: CentOS6.7/32bit (64bitã§ã¯ããã¾ãã) OSä»å±ã®ã³ã³ãã¤ã©: gcc/g++ version 4.4.â¦
#! /bin/bash # "--bytest 5000000" is 500MB. echo PID=$$ echo -n "[ Enter : powerup! ] , [ Ctrl+d : stop ]" c=0 while read byte; do eval a$c'=$(head --bytes 5000000 /dev/zero |cat -v)' c=$(($c+1)) echo -n ">" done echo
import os import sys import json import subprocess print(json.dumps(dict([(c, subprocess.getoutput(c).split('\n')) for c in sys.argv[1:]]))) ã³ãã³ãçµæãã²ãããjsonã¸ããã³ãã³ããã¯ã³ã©ã¤ãã¼ã§ã§ããªãã£ãã®ã§ä»æ¹ãªãpythonã§å®è£ ã $ pâ¦
GitHub Actionsã§ã®ã¨ã©ã¼ãcheckoutã¢ã¯ã·ã§ã³ã失æãã¦ããããã PATHã«gitãåå¨ããªãå ´åã«èµ·ããã PATH: "$PYENV_ROOT/bin:$PATH" ãããªæãã§ç°å¢å¤æ°ãèªåã§å®ç¾©ãã¦ãã¾ã£ã¦ãã github.com
docs.docker.com docker-composeã§ã³ã³ããå ããã»ã¹ã®æ»æ´»ç£è¦ãè¡ããã¨ã§ããã healthcheck: test: ["CMD", "curl", "-f", "http://localhost"] interval: 1m30s timeout: 10s retries: 3 start_period: 40s healthcheckã«å®è¡ãããã³ãã³ãã¨timeoutâ¦
httpãªã¯ã¨ã¹ãã®ãã¹ãã«vhostã®ã©ãã«ãå½ã¦ã¯ã¾ããªãservernameãæ¥ãéã®åä½ sampleã®conf # Ensure that Apache listens on port 80 Listen 80 # Listen for virtual host requests on all IP addresses NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /www/exa</virtualhost>â¦
å ¨ã³ã¢CPU使ç¨ç avg(irate(node_cpu_seconds_total{mode="system"}[5m])) without(cpu) avg avgæ¼ç®åã¯ãã¬ã³ã¼ããã¨ã«æ ¼ç´ãããã¹ã«ã©ã¼å¤ã®å¹³åå¤ãè¿ãã¾ããã¬ã³ã¼ãã®valueãé åï¼Range Vectorï¼ã®å ´åã¯é©ç¨ã§ãã¾ããã ãã¼ãã¢ãã¬ã¼ã¸ node_lâ¦
vimã§pythonãæ¸ãéã®è£å®ã«ä½¿ã£ã¦ãjedié¢é£ã§ã¨ã©ã¼ãçºçã ã¨ã©ã¼ã¡ãã»ã¼ã¸ File "completion.py", line 698, in <module> ç§ã®ç°å¢ã vim version: NVIM v0.4.3 node version: v13.9.0 coc.nvim version: 0.0.78-9febe802b3 jediã®ã¢ãããã¼ãã ãã§è§£æ±ºãã¨</module>â¦
perlã§redisã使ã redis-server ã®ã¤ã³ã¹ãã¼ã« cpanmã§ã¢ã¸ã¥ã¼ã«ãå ¥ãããã¨ãããããã¼ã¸ã§ã³æå®ã¯ãªãã§ã $ cpanm Redis metacpan.org ããã¥ã¡ã³ãã®æéãä¸ãªããªãã«å¤ããã æ¥ç¶ãã æ¥ç¶ã試ãã¦ã¨ããããé©å½ãªå¤ãset use strict; use waâ¦
ãã¼ã¸ã§ã³ ãã¼ã¸ã§ã³ã¯1.17.6ã root@nginx 11:32:24 ~ # /usr/sbin/nginx -V nginx version: nginx/1.17.6 built by gcc 8.3.0 (Alpine 8.3.0) built with OpenSSL 1.1.1c 28 May 2019 (running with OpenSSL 1.1.1d 10 Sep 2019) TLS SNI support enableâ¦