2017-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãªãã¼ã¹ãããã· ã®ã¡ã¢
æ§é ä½ã®ä¸ã®ãã¤ã³ã¿å¤æ°ããã¤æ§é ä½ããåã ã®ã¡ã³ãã«å¤ãä»£å ¥ããã æ§é ä½ã®ã¡ã³ãã¼ã«ã¤ãã¦ãããã®é åæ°ãªã©ãåãã£ã¦å®ã¾ããªãå ´åã¯ã ãã®ã¡ã³ãããã¤ã³ã¿(å¿ è¦ã§ããã°ãã¤ã³ã¿ã®ãã¤ã³ã¿)ã«ãã¦ããã¦ã æ§é ä½ã確ä¿ããå¾ã§ãã®ã¡ã³ãã«â¦
mallocï¼ãããã¯, ã¨ã ã¢ããã¯ï¼ãfreeãcallocãreallocã¯ãåçã¡ã¢ãªç¢ºä¿ãè¡ãCè¨èªã®æ¨æºã©ã¤ãã©ãªã®é¢æ°ã§ãã mallocã¯å¿ ãæåããã¨ã¯éããªããå©ç¨å¯è½ãªç©ºãé åãç¡ãã¨å¤±æãããããããã®ãæä¸ã¡ã¢ãªä¸è¶³ã£ã¦è©±ããã¾ãèããªããã¦ã¼ã¶â¦
ãã¤ã³ã¿ã®åã« ãã¤ã³ã¿ã®åã«ããã¤ã³ã¿ãç解ããä¸ã§ç解ããå¿ è¦ã®ãããã®ãã²ã¨ã¤ããã¾ã ããã¯ã¢ãã¬ã¹ã§ãã ãã£ã¨ç°¡åã«è¨ããªãã¡ã¢ãªã®å ´æã§ãã ããã°ã©ã ãä½æããéã«å¤æ°ãªã©ãä½æãã㨠ãã®å¤æ°ã¯ãã¼ã¿åã«å¿ãã¦ãå¿ è¦ãªåã ãã¡â¦
Tv ãã
#!/usr/bin/env sh usermod -u "${UID}" neovim groupmod -g "${GID}" neovim # su-exec neovim nvim +UpdateRemotePlugins +qa cd "${WORKSPACE}" && su-exec neovim nvim "$@" # su-exec neovim sh
ã·ã§ã«ã¹ã¯ãªããã®ãªãã·ã§ã³è§£æ ã·ã§ã«ã«ã¯ãã³ãã³ããªãã·ã§ã³ã®è§£æãè¡ããgetoptsãã¨ããã³ãã³ããããã¾ãã ã¹ã¯ãªããã«ãã·ã§ã«å -ãªãã·ã§ã³ãã®ããã«ãªãã·ã§ã³ãå©ç¨ãã¦å¼æ°ã渡ãããå ´åã«ä½¿ç¨ãã¾ãã $ which getopt /usr/bin/getopâ¦
OSã®æ©è½ ã¡ã¢ãªã®ç®¡ç ããã»ã¹ã®ç®¡ç ããã»ã¹ééä¿¡ ãã¡ã¤ã«ã·ã¹ãã ãããã¯ã¼ã¯ ã¦ã¼ã¶ç®¡çï¼æ¨©éãªã©ï¼ ã¿ã¤ãã¼ ãã¡ã¤ã«ãã£ã¹ã¯ãªãã¿ ããã»ã¹ãèµ·åãããã¨OSã¯3ã¤ã®æ¬ä¼¼ãã¡ã¤ã«ãä½æãã 0:æ¨æºå ¥å 1:æ¨æºåºå 2:æ¨æºã¨ã©ã¼åºå POSIXç³»OSâ¦
ã¹ãããã¤ã³ã¹ã¿ã³ã¹ã¨ã¯ ã¹ãããã¤ã³ã¹ã¿ã³ã¹ã¨ã¯ãAWSã§ä½å°ã®ã¤ã³ã¹ã¿ã³ã¹ãå ¥æå¶ã§å¤§å¹ ã«å®ãä¾¡æ ¼ã§å©ç¨ã§ããä»çµã¿ã§ããéè¦ã¨ä¾çµ¦ã®ãã©ã³ã¹ã§ä¾¡æ ¼ã決å®ãããããæã«ã¯é常ã®ãªã³ããã³ãã¤ã³ã¹ã¿ã³ã¹ã§å©ç¨ããã¨ãããé«ãä¾¡æ ¼ã«ãªãå ´åãâ¦
ç°å¢ Windows Subsystem for Linux Windows 10 Home 64bit Ubuntu ã½ã¼ã¹ç ã½ã¼ã¹ msg: .ascii "hello, world\n" .globl _start _start: mov $1,%rax # write mov $1,%rdi # stdout mov $msg,%rsi # addr mov $13,%rdx # len syscall mov $60,%rax # exit mâ¦
ãã°ã¨ã¯ èªåã®æå³ããã¨ããã«ããã°ã©ã ãåããªãç¶æ ã®ãã¨ãªã©ããã°ã¨è¨ãã¾ãã ãããã°ã¨ã¯ ãã°ã®åå ã調ã¹ãåé¡ã解決ããä¸é£ã®ä½æ¥ããããã°ã¨è¨ãã¾ãã ä¸è¬çã«ããã°ã©ã ãæå³ããã¨ããã«åããªãåå ã«ã¯ãå çè¦å ãã¨ãå¤çè¦å â¦
ELFã¨ã¯ã³ã³ãã¤ã©ãçæãããªãã¸ã§ã¯ãã ã©ã¤ãã©ãªã¨ãªã³ã¯ãããå®è¡ãã¡ã¤ã«ã®ãã©ã¼ãããã§ããã èªã¿æ¹ã¯ã¨ã«ã
ããªããã»ããµæ令ã使ã£ã¦ãããã°ã¢ã¼ããä»ãã¦ã¿ã ã«ã¦ã³ã¿å¤æ°iã®å¤ã調ã¹ãããã«printfæãæ¿å ¥ããä¹ä¹ããã°ã©ã è¨ç®éä¸ã®çµæã¯ä½ã表示ãããªããæ¬çªã®ä»æ§ã§ãè¨ç®çµæãå¿ è¦ãªããã©ããã§ãã°ããããããããªã #include <stdio.h> int main(void</stdio.h>â¦
UEFIã¨BIOSã®éã UEFI(Unified Extensible Firmware Interface)ã¨ã¯ãã¶ã¼ãã¼ãã«ä¿åããã¦ããããã°ã©ã OSãèµ·åããåã«ãã½ã³ã³ã«æ¥ç¶ããã¦ãããã¼ãã¦ã§ã¢ã®å¶å¾¡ãè¡ããã® UEFIãç»å ´ããåã¯BIOSãUEFIã®ä»£ãããæ ã£ã¦ããã BISOèªä½ã¯ç¾å½¹ã§â¦
ã«ã¼ãã«ã£ã¦ä½ãããã®ã調ã¹ãè¨äº ããã»ã¹ç®¡ç ããã»ã¹çæã»æ¶æ» ã¹ã±ã¸ã¥ã© ãã¡ã¤ã«ã·ã¹ãã åå空é管ç VFS ext2, etc3, JFS, ReiserFS, XFS, ISO9660... ãããã¯ã¼ã¯ãã¡ã¤ã«ã·ã¹ãã ** ããã¤ã¹ãã¡ã¤ã« ããã»ã¹ééä¿¡ ã»ããã© ã¡ãã»ã¼ã¸â¦
sizeofæ¼ç®åã¯2種é¡ã®ä½¿ãæ¹ãããã¾ãï¼ sizeof(å) sizeof å¤æ°ãå®æ°ï¼ãããã¯å¼ãªã© 1:(struct _data*)0 0ããã¤ã³ã¿ã¨è¦ãªãã¦ãstruct _dataåã«ãã£ã¹ãã£ã³ã°ããã 2:((struct _data*)0)->C ãã£ã¹ãã£ã³ã°ããçµæããã¨ã«ãå¤æ°Cãåç §ããã 3â¦
ãµãããããã¹ã¯è¨ç®(IPv4)ï¼ãµããããä¸è¦§ï¼æ©è¦è¡¨ï¼
arch arch ãµããã£ã¬ã¯ããªã«ã¯ãã¢ã¼ããã¯ãã£(architecture)åºæã® ã«ã¼ãã«ã³ã¼ããå«ã¾ãã¦ããã ããã«æ·±ããµããã£ã¬ã¯ããªãããããã¨ãã°ãi386 ã alpha 㨠ãã£ããµãã¼ãããã¢ã¼ããã¯ãã£ãã¨ã«åããã¦ããã include include ãµããã£ã¬â¦
ãããã¨ã¯ ãbitãã¨ã¯ã³ã³ãã¥ã¼ã¿ã®æ±ãæ å ±ã®æå°åä½ã®ãã¨ã§ãããbinary digitãã®ç¥ CPUã®éã 32bitã¨64bitã¨ããã®ã¯CPUã®éãã§ããã CPUã®ãããæ°ã¯cpuinfoã³ãã³ãã¨ãã§è¦ãã 32bitã¨64bit ãè¨æ¶è£ ç½®ã®bitå¹ ããéãã¨ããã®ãä¸çª ããã§â¦
ã³ãã³ãåºæ¬+α çç¥ããªãåå çç¥ããªãååãç¥ã£ã¦ããã¨ã¡ãã£ã¨ããæã«å½¹ã«ç«ã¤ããï¼ cd : change directory pwd : print working directory mv : move cp : copy ls : list ln : link teeã§ãªãã¤ã¬ã¯ã ãªãã¤ã¬ã¯ãã¨è¨ãã°>ã§ãããããã ã¨å®â¦
ã¤ã³ã¹ãã¼ã«å¯è½ãªããã±ã¼ã¸ã®ä¸è¦§ã®è¡¨ç¤º # yum list available ã¤ã³ã¹ãã¼ã«æ¸ã¿ã®ããã±ã¼ã¸ã®ä¸è¦§ã®è¡¨ç¤º # yum list installed çç¥ãããããã±ã¼ã¸ã°ã«ã¼ããå«ãã¦ã°ã«ã¼ãã®ä¸è¦§ã確èªãã # yum grouplist hidden ã¤ã³ã¹ãã¼ã«ãããã¹ãæå®ãã â¦
"/proc/${PID}/environ"ãã¿ãã¨ãã«catã ã¨æ«å°¾ãæ¹è¡ãããªã\0 (NULLæå)ã®ããè¦è¾ã ãããªæã¯stringsã³ãã³ãã使ãã¨è¯ããã¨ã«æ°ã¥ãã $ strings /proc/29732/environ LANG=en_US.UTF-8 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin â¦
dartã§ãã¡ã¤ã«ãèªãå ¥éã¨ãã¦ã¯streamãä¸çªéãã import 'dart:io'; import 'dart:convert'; void main() { new File("something.text").openRead() .transform(UTF8.decoder) .transform(const LineSplitter()) .forEach((line) { print("> $line"); }â¦
ãä¹ ãã¶ãã§ãã å ¥ç¤¾ãã¦æ©åå¹´ãçµã¡ã¾ããã ãã£ãããªã®ã§ããã¾ã§ã®æ¯ãè¿ãã 4~6æ ç ä¿® 7~10 å®å è¨èªã¯ä¸»ã«Bashã¨Cè¨èªã å¤ãããããããã°ã©ã ã§ããã æ£ç´æªçµé¨å ¥ç¤¾ãã¦ããããããªãã¾ã¾æ¥ãç«ã£ã¦ããæ°ããã¾ãã ã¾ããããããé å¼µâ¦
PCãèµ·åããã¾ã§ â PCã®é»æºãå ¥ãã â¡ãã¶ã¼ãã¼ãã®BIOS(Basic Input Output Subsystem)ãèµ·åãã â»BIOSã¯å¨è¾ºæ©å¨ã¨ã®éã®å ¥åºåãå¶å¾¡ããããã®ããã°ã©ã â¢ãã®ã¨ãBIOSã¯ããã¼ãã¦ã§ã¢ãªã»ããã®å²ãè¾¼ã¿ãçºçãããã®ã¨ãã¦ããããããè¨å®ããâ¦
# CPU使ç¨çãé«ãããã»ã¹ watch -n 2 "ps aux| sort -nk +3 | tail" or watch -n 2 "ps aux| sort -nk +4 | tail" # swap使ç¨ä¸ã®ããã»ã¹ grep VmSwap /proc/*/status | sort -k 2 -nr # ãã¡ã¤ã«ãµã¤ãºã大ããé du -b | sort -n | numfmt --to=iec --sâ¦
Reliabilityï¼ä¿¡é ¼æ§ï¼ Availabilityï¼å¯ç¨æ§ï¼ Serviceabilityï¼ä¿å®æ§ï¼ Integrityï¼ä¿å ¨æ§ï¼ Securityï¼æ©å¯æ§ï¼
å ç©ãæ±ããããã°ã©ã 2 ã¤ã®ãã¯ãã«ã®å ç©ã¯é«æ ¡æ°å¦å½ããç¯å² ããã°ã©ã ã§æ¸ãã¨ãããç°¡åã«æ±ã¾ããã ãªã¼ã£ã¦ææ ¨æ·±ã /* header files */ #include <stdio.h> #include <stdlib.h> /* functions */ double InnerProduct(double *, double *, int); /* main */ int ma</stdlib.h></stdio.h>â¦
ã«ãã´ãªç¨
ã«ãã´ãªç¨ã®è¨äº