2016-07-01ãã1ã¶æéã®è¨äºä¸è¦§
tar ball ã渡ããã¦å°ãã æ¯åæ¯åå±éããã®ãã«ããã ãã欲ãããã¡ã¤ã«ãè¦ãããã¡ã¤ã«ã¯ä¸ã¤ã ãããããã¯è¤æ°ãã¡ã¤ã«ã ã£ãããã tar tvzf ã§ä¸èº«ãè¦ã tar ã§ä¸èº«ãè¦ãã«ã¯ tvf ã» tvzf ã使ã z 㯠gzipã tar tvzf test.tgz drwxr-xr-x takâ¦
æå®ãã£ã¬ã¯ããªã®ä¸ã«ããªã¼ãããªã«ã·ã¤ãã¡ã¤ã«ãåºæ¥ã php ãªã©WEBã¢ããªããownerãã¡ããã¨è¨å®ãã¦ãããªãã£ãããã°ã«ã¼ããè¨å®ãã¦ãããªãã£ããã ã¾ããcrontab ãroot ã§åãã¦ãã¦æ¶ããªããã¡ã¤ã«ãåºæ¥ããã ãã¡ãããã½ã¼ã¹ã³ã¼ããâ¦
ã¦ã¼ã¶ã¼ãã°ã«ã¼ãã«è¿½å ãããåé¤ããã«ã¯ usermod gpasswd vigr ã®ï¼ç¨®é¡ã®ã³ãã³ããæãã¾ãã ä½æ¹ãæ¶ããã¹ãããä½æ¹ã使ãã¹ãããè¿·ãã¨ããã§ããã ä»å㯠gpasswd ã使ã£ãã¦ã¼ã¶ã¼ã®ç®¡çãã¾ã¨ãã¦ãããã¨ã«ãã¾ãã gpasswd ã®ä½¿ãæ¹ gpasâ¦
/dev ãªã©ããã¹ãå´ã¨å ±éã«ãã chroot ç°å¢ã£ã¦ããããã試ãããæã«ä¾¿å©ãªãã§ãããã grub ãä½ããªããããããã«ããããæã«ãã¾ã«ä½¿ããã ãã©ãchroot ã£ã¦ãªãããããæãéãã«è¡ããªãæããã£ã¦ã ãã¨ãã° ã¤ã¡ã¼ã¸ãã£ã¹ã¯ä¸ã«ãããã®â¦
C++ã§Animalãä½ãã¨ã©ããªãã®ãããåºæ¬çãªãµã³ãã«ã使ã£ã¦èª¿ã¹ã¦ã¿ãã ã¯ã©ã¹ã®ä½ãæ¹ class Animal { protected: std::string voice; Animal(){ } public: void say(){ printf( "%s\n", this->voice.c_str() ); } }; ã¯ã©ã¹ã®ç¶æ¿ ã¯ã©ã¹ã®ç¶æ¿ã¯ããâ¦
binding.pry 便å©ããã¦æ¸ãã¾ãã£ããå°çã ã£ãã pry 㧠binding.pry ã使ãã¾ããã®ã§ãããbinding.pryãã«ã¼ãä¸ã§ä½¿ãã¨å¤§å¤ãªãã¨ã«ãªãã loop { binding.pry } æããããªãã»ã»ã» each/mapãªã©ã® loop ä¸ã§pry ããã¨æãããªãã®ã§ããããããâ¦
ãã£ã¹ã¯ã¤ã¡ã¼ã¸ããã¦ã³ããã ãã ãããã£ã¹ã¯ã¤ã¡ã¼ã¸ã«ã¯ãã¼ãã£ã·ã§ã³ãè¤æ°å«ã¾ããã éåã¨åã«ãè¨å®ãã¦ãã®ã§ãä¹ ãã¶ãã«ãããã¨ãã¦ããã£ãã®ã§ãæ¹ãã¦æ¸ãç´ã ç°¡åãªæ¹æ³ mount æã« offset ãæå®ãããã§ãé¢åãããã®ã§ãä»å㯠loâ¦
PowerDNS é称 pdns ã便å©ã pdns ã便å©ããããªã®ã§ä½¿ã£ã¦ã¿ã¦ãã Power DNS ã§åºæ¥ãã㨠PowerDNSã¯DNSã§åºæ¥ããã¨ãä¸éãå ¨ã¦ã§ããã 権å¨ãµã¼ãã¼ ãã©ã¼ãµã¼ãã¼ ãã£ãã·ã¥ãµã¼ãã¼ ããããã¡ããã¨å®è£ ãã¦ããã ããã«ãã³ã³ãã³ããµã¼ãã¼â¦
Shell Built'in Functions ã®ãã«ããè¦ãã Man ãã¼ã¸ã ã¨è¦ããªããã ããman ã ã¨ã man history ## è¦ããªãã man ã§è¦ãã¨ãshell builtins ã«é£ã°ããããããã¦ãªãã·ã§ã³ãè¦ãããªãã help ã使ãã help history help ã³ãã³ãã使ãã ã·ã§ã«â¦
ããã·ã§ã³ã³ã³ããã¼ã«ã®åæ¿ãé ã ããã·ã§ã³ã³ã³ããã¼ã«ãé ããªãã§ãããã¨ãã«Windowä¸è¦§ãé ããã§ããæèãæ¢ã¾ã Windowsã®Altï¼Tabã®æ©æãªåããæ¬å½ã«æãããã ã¨ããããã§ã調ã¹ã¦ããåºã¦ãã defaults write com.apple.dock expose-aniâ¦
Id丸è¦ãã£ã¦ããããã¤ãã¤ã§ãããã ã¨ãã«é£çªã ã¨ãé£çªã®ã¤ã³ã¯ãªã¡ã³ãã ã¨ãã¤ãåºæ¥å¿ã§é£çªãè¸ãã§ã¿ãããªãã¾ãããã ãã¨ãããã¼æªãã¯ãã¼ã©ã¼ãããã£ã¨æ¥ããã IDãé ã IDãé ãã«ã¯md5 ã crc / sha 㧠hexdigest ãããã¤ã¤ãã ãã©â¦
ruby ã§åºæ¥ãã®ã§ãphp ã§ãã§ããããªã¨æã£ã¦èª¿ã¹ã¦ã¿ããã readImage('myfile.pdf[0]'); $imagick = $imagick->flattenImages(); $imagick->writeImage('pageone.jpg'); ?> php ã®ããã¥ã¢ã«ã«ããããªãªã³ã¼ããæ¸ãã¦ãã£ãã ã§ãåããã®å¤§å¤ã ã£ãâ¦
PDF èªã¿è¾¼ã¿é ãã ãï¼ PDFã£ã¦ãªãã§ãããªã«ç¡é§ã«ãã¼ã¸æ°å¤ãã®ãã£ã¦ãªããªããPDFãMagickã§èªã¿è¾¼ãã ãé ãã®ãªãã®ã£ã¦ã require 'Rmagick' name = 'out.pdf' im = Magick::Image.read(name) # ãã£ã¡ãé ã im.esize #=> 300 PDFãææ°å¤ãã¨ãâ¦
crontab ã«æ¸ããæ©è½å°ãªãç¡ãã§ããï¼ crontab ã®éçã£ã¦ãããã§ãããæ³¢æ¬å¼§ä½¿ãããããå°ã楽ã«è¨è¿°ã§ããã®ã«ã ã§ãåºæ¥ãªããã§ãã curly brace ã使ããªãã 使ãããã¤ã¤ã®ã«ã¨æã£ã¦èª¿ã¹ããã¨ã¦ãã«ã³ã¿ã³ãªè§£æ±ºæ¹æ³ãè¦ã¤ãã£ã ãããã câ¦
ãã¡ããåç § 詳ããå 容ã¯ãã¡ãã«æ¸ãã¾ããã cron/crontab 㧠è¤æ°è¡ã®å®è¡ã«ã¯æ³¢æ¬å¼§ {} ã使ã - ãããã°ã§ï¼ è¤æ°è¡ã®crontab ã³ãã³ãã£ã¦ãããªãã®ã㪠調ã¹ããã©ããããªããã¨ãããã£ãã man ã«ãã㨠The ``sixth'' field (the rest of theâ¦
以åä½ã£ãSlideShareã®ä¿åã¹ã¯ãªãããæ¹è¯ãã Prawn使ã£ã¦ãã®ã§ãã©ããã¦ãA4ãµã¤ãºã«ãªã£ã¡ãã£ã¦å°ã£ã¦ãã®ã§ãJPEGããã®ã¾ã¾PDFã«ãããã¨ã«ãã #!/usr/bin/env ruby # require 'rmagick' require 'mechanize' require 'open-uri' require 'pry' â¦
rmagick 㧠PDFãä½ãã®ãã¡ãã£ã¨æéã ã£ãã®ã§ã¡ã¢ ruby ã® imagemagick å®è£ ã§ãã rmagick ãæãã¾ãã RMagick ã使ãã°ãmagick é¢é£ã使ããbindings ã§éå®ããã ç¡è«ãRubyããmagickã使ãã«ã¯ãconvert/mogrifyã®ã·ã§ã«å¼ã³åºãã§æ¸ãã®ã ã â¦
setup.py 㧠ã¤ã³ã¹ãã¼ã«ããããã±ã¼ã¸ãæ¶ãã«ã¯ python setup.py install ããåºã¦ãã¾ãããã使ãã¾ããã§ãééã£ã¦ã¤ã³ã¹ãã¼ã«ããæã«ã©ãããã® pip list pip uninstall ããã±ã¼ã¸å pip 使ãã°åºã¦ãã¾ãã pip ããªãå ´åã¯å ¥ãã¦ä¸ãã.
ãã¡ã¤ã«ãã¦ã³ãã¼ãURLãcurl ããæã«ãååãã»ã»ã» curl -L -o 'https://docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA&export=download' ã¤ããã»ã»ã» takuya@:~$ ls uc\?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA\&export=download -rw-rw-r-- 1 takuyâ¦
Google Drive 使ã£ã¦ã¾ããï¼ ã¯ããç§ã¯ã»ã¼ç¡é容éãæã£ã¦ããã®ã§ãGoogle Drive ã大活èºãã¦ãã¾ãã Google Driveã«ãã°ã ã®VMã ã®æ®ã©ãããã¯ã¢ããåºæ¥ã¦ä¾¿å©ã google drive ãã³ãã³ããã使ããã fuse ãªã©ãè²ã æãã¾ãããocamlfuse ã® goâ¦
open ã³ãã³ã便å©ããã¦ã¤ã㤠mac 使ã£ã¦ã㨠open ã³ãã³ã便å©ãã¦ã¤ãã¤ã cygwin ãªã cygstart alias open='cygstart' linuxãªãã©ãããã® ãã¹ã¯ãããã§å ¥ãã¦ãXã®ã·ã¹ãã ã«ããã¾ãã gnome ç³»ãå¤ãã®ã§ alias open='gnome-open' ã¾ã㯠alis â¦
/homeãå¥ãã¼ãã£ã·ã§ã³ã«åãããã¨ã«ãã linux ã® /home ãå¥ãã¼ãã£ã·ã§ã³ã«åãããã¨ã«ãã¦ãã¦ã³ãã®ç®¡çæ¹æ³ãå¤ãã /homeç¨ã®ã®å¥ãã¼ãã£ã·ã§ã³ãä½æ /home ãã³ãã¼ å¥ãã¼ãã£ã·ã§ã³ã§ãã¦ã³ã å¥ãã¼ãã£ã·ã§ã³ãLVMã§ä½æ å¥ãã¼ãã£ã·ã§â¦
icloud ã iMessage ã«ãã°ã¤ã³åºæ¥ãªããªã£ãã 2016-07-03 iMessageãFactime ã« iCloud ã«ãã°ã¤ã³åºæ¥ãªããªã£ã ç¾å¨ãµã¤ã³ã¤ã³åºæ¥ã¾ãã icloud ã«ãã°ã¤ã³ãããã¨ãã¦ãç¾å¨ãµã¤ã³ã¤ã³ã§ãã¾ããã°ããã ãã¡ãã iCloud ã®ã¹ãã¼ã¿ã¹ã¯ã°ãªã¼ã³ Aâ¦
æ¥æ¬èªãã¼ãã¼ã大好ã USãã¼ãã¼ããããã¨ããæ¥æ¬èªãã¼ãè¯ãã¨ãã人ã«ãã£ã¦å¥½ã¿ã¯ããã¨æãã¾ãã ç§ã¯æ¥æ¬èªãã¼ã大好ãã§ãã ã§ãè±èªãã¼ãã¼ãã好ãã§ãï¼ è±èªãã¼ãã¼ãã®è¨å·ã®å ¥åã®ããããã¨ãã£ãããæé«ãã ï¼ã¤ã®ãã¼ãã¼ãã§ä¸¡â¦
Mac ã®æ¨æºãã¼ãã¼ããã¥ã¼ã¯ã¼ã®ãµã¤ãºãä»»æã«æ¡å¤§ç¸®å°ãåºæ¥ãã æå¤ã¨ä¾¿å©ã§ãããã¼é åãè¦ããããªãæã«ããã¥ã¼ã¯ã¼ãããã¨ã¨ã¦ãéå®ãã¾ãã ãµã¤ãºå¤æ´æ¹æ³ã®åç»ã ãã¨ã°ã§ã¯èª¬æãã¥ããã®ã§åç»ãè¦ã¦ãã ããã youtu.be å·¦ä¸ããã©ãã°â¦
ã¿ã㪠dig ã£ã¦ã¾ããï¼ http ã§ãã¡ã¤ã«ãéããªãæãçã£å ã«è¦ãã¹ã㯠iptable ã§ããifconfig ã§ããªã㦠dig ã§ãã ã¾ããdig ã確èªããããã dig ã®ä½¿ãæ¹ dig ã¯åå解決ã試ã¿ãã³ãã³ãã§ãã åå解決ã¨ã¯ä½ãããDNSã®ä»çµã¿ã«ã¤ãã¦ã¯è§¦ãâ¦
CentOS 㧠mysql ãã¤ã³ã¹ãã¼ã« sudo yum install http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm sudo yum install mysql mysql-devel mysql-server mysql-utilities root ãã¹ã¯ã¼ãã©ãã»ã»ã» mysql -u root -p Enter password: ERRORâ¦
ç¥ããªãã£ãã%s ã¯%s ãã使ããªããã ã¨æã£ã¦ã¾ããã ç¸¦å¹ ã綺éºã«æã£ãæååãåºåããã«ã¯ã©ãããã°ãããããã£ã¨æ°ã«ãªã£ã¦ã¦ruby ã¯ruby ã§å種é¢æ°ãphp ã¯php ã§å種é¢æ°ã使ã£ã¦ããã©ãè¯ãèããã printf ã§åºæ¥ããã¨ã«æ°ä»ãã Dir.gloâ¦
æ¯åã»æ¯åãã°ã¤ã³å¦çãå¾ ã¤ã®ãé¢åããããã§ãããã ãã¹ãæã¯ãã°ã¤ã³å¦çãå¿ è¦ã ãã©ããã¹ãæ¸ãã¦ãæã¯çç¥ãããã§ããã ãªã®ã§ããããã¡ã¤ã«ãæå®ããã°ååã®Cookieãããã¹ã¯ã¼ãä¿åã使ãã ãããªãã«ä¾¿å© #!/usr/bin/env ruby ## reâ¦