Saturday, September 17, 2016

FreeBSD: Installing cURL

Command:

# pkg install curl


Result:

Updating FreeBSD repository catalogue...
Fetching meta.txz: 100%    940 B   0.9kB/s    00:01  
Fetching packagesite.txz: 100%    6 MiB 524.9kB/s    00:11  
Processing entries: 100%
FreeBSD repository update completed. 25376 packages processed.
Updating database digests format: 100%
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
curl: 7.50.1
ca_root_nss: 3.26

Number of packages to be installed: 2

The process will require 6 MiB more space.
2 MiB to be downloaded.

Proceed with this action? [y/N]: y

Fetching curl-7.50.1.txz: 100%    2 MiB 377.3kB/s    00:06  
Fetching ca_root_nss-3.26.txz: 100%  336 KiB 344.5kB/s    00:01  
Checking integrity... done (0 conflicting)
[1/2] Installing ca_root_nss-3.26...
[1/2] Extracting ca_root_nss-3.26: 100%
[2/2] Installing curl-7.50.1...
[2/2] Extracting curl-7.50.1: 100%
Message from ca_root_nss-3.26:
********************************* WARNING *********************************

FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.

*********************************** NOTE **********************************

This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem

***************************************************************************


Command:

# pkg info


Result:

ca_root_nss-3.26               Root certificate bundle from the Mozilla Project
curl-7.50.1                    Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
pkg-1.8.7_1                    Package manager


Command:

 # pkg info curl


Result:

curl-7.50.1
Name           : curl
Version        : 7.50.1
Installed on   : Sat Sep 17 15:37:33 2016 JST
Origin         : ftp/curl
Architecture   : freebsd:10:x86:64
Prefix         : /usr/local
Categories     : ipv6 ftp www
Licenses       : MIT
Maintainer     : sunpoet@FreeBSD.org
WWW            : http://curl.haxx.se/
Comment        : Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
Options        :
CARES          : off
CA_BUNDLE      : on
COOKIES        : on
CURL_DEBUG     : off
DEBUG          : off
DOCS           : on
EXAMPLES       : on
GNUTLS         : off
GSSAPI_BASE    : on
GSSAPI_HEIMDAL : off
GSSAPI_MIT     : off
GSSAPI_NONE    : off
HTTP2          : off
IDN            : off
IPV6           : on
LDAP           : off
LDAPS          : off
LIBSSH2        : off
METALINK       : off
NSS            : off
OPENSSL        : on
POLARSSL       : off
PROXY          : on
PSL            : off
RTMP           : off
THREADED_RESOLVER: on
TLS_SRP        : on
WOLFSSL        : off
Shared Libs provided:
libcurl.so.4
Annotations    :
cpe            : cpe:2.3:a:haxx:curl:7.50.1:::::freebsd10:x64
repo_type      : binary
repository     : FreeBSD
Flat size      : 4.99MiB
Description    :
curl is a client to get documents/files from servers, using any of the
supported protocols. The command is designed to work without user
interaction or any kind of interactivity.

curl offers a busload of useful tricks like proxy support, user
authentication, ftp upload, HTTP post, SSL (https:) connections, file
transfer resume and more.

WWW: http://curl.haxx.se/


Command:

# pkg info ca_root_nss


Result:

ca_root_nss-3.26
Name           : ca_root_nss
Version        : 3.26
Installed on   : Sat Sep 17 15:37:33 2016 JST
Origin         : security/ca_root_nss
Architecture   : freebsd:10:*
Prefix         : /usr/local
Categories     : security
Licenses       : MPL
Maintainer     : ports-secteam@FreeBSD.org
WWW            : UNKNOWN
Comment        : Root certificate bundle from the Mozilla Project
Options        :
ETCSYMLINK     : on
Annotations    :
repo_type      : binary
repository     : FreeBSD
Flat size      : 936KiB
Description    :
Root certificates from certificate authorities included in the Mozilla
NSS library and thus in Firefox and Thunderbird.

This port directly tracks the version of NSS in the security/nss port.



FreeBSD: pkg: Obtaining Informations about Installed Packages

Command:

$ pkg info


Result:

pkg-1.8.7_1                    Package manager


Command:

$ pkg info pkg


Result:

pkg-1.8.7_1
Name           : pkg
Version        : 1.8.7_1
Installed on   : Sat Sep 17 15:14:30 2016 JST
Origin         : ports-mgmt/pkg
Architecture   : freebsd:10:x86:64
Prefix         : /usr/local
Categories     : ports-mgmt
Licenses       : BSD2CLAUSE
Maintainer     : pkg@FreeBSD.org
WWW            : http://wiki.freebsd.org/pkgng
Comment        : Package manager
Shared Libs provided:
libpkg.so.3
Annotations    :
Flat size      : 10.2MiB
Description    :
Package management tool

WWW: http://wiki.freebsd.org/pkgng

FreeBSD: Get Kernel State

Command (Physical memory):

$ sysctl hw.physmem


Result:

hw.physmem: 108580864


Command (Free disk space in human readable format):

$ df -h


Result:

Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0p2    9.2G    1.7G    6.8G    20%    /
devfs          1.0K    1.0K      0B   100%    /dev

FreeBSD: Display Information about the System

Command:

$ uname -a


Result:

FreeBSD HOSTNAME 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 UTC 2016     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

Git: Cloning Linux kernel source tree

Command:

$ git clone https://github.com/torvalds/linux.git


Result:

Cloning into 'linux'...
remote: Counting objects: 4916150, done.
remote: Compressing objects: 100% (393/393), done.
remote: Total 4916150 (delta 374), reused 186 (delta 186), pack-reused 4915571
Receiving objects: 100% (4916150/4916150), 1.58 GiB | 867.00 KiB/s, done.
Resolving deltas: 100% (4068017/4068017), done.
Checking out files: 100% (55502/55502), done.


Git: Getting a Git Repository: How to Make a Computer Operating System

Command:

$ git clone https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System.git


Result:

Cloning into 'How-to-Make-a-Computer-Operating-System'...
remote: Counting objects: 1387, done.
remote: Total 1387 (delta 0), reused 0 (delta 0), pack-reused 1387
Receiving objects: 100% (1387/1387), 1.86 MiB | 214.00 KiB/s, done.
Resolving deltas: 100% (428/428), done.

FreeBSD: Downloading iso (Unified Extensible Firmware Interface, Bootonly) & Finding the Checksum (SHA256)

Command (Download):

$ wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.3//FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso


Result:

--2016-09-17 12:02:19--  ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.3//FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso
           => ‘FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso’
Resolving ftp.freebsd.org... 2610:1c1:1:606c::15:0, 96.47.72.72
Connecting to ftp.freebsd.org|2610:1c1:1:606c::15:0|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.3/ ... done.
==> SIZE FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso ... 247324672
==> EPSV ... done.    ==> RETR FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso ... done.
Length: 247324672 (236M) (unauthoritative)

FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso                                               100%[========================================================================================================================================================================================================================================>] 235.87M   483KB/s    in 11m 5s

2016-09-17 12:13:27 (363 KB/s) - ‘FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso’ saved [247324672]


Command (Finding the checksum):

$ curl ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.3//CHECKSUM.SHA256-FreeBSD-10.3-RELEASE-amd64 | grep 'uefi-bootonly.iso)'


Result:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2392  100  2392    0     0    665      0  0:00:03  0:00:03 --:--:--   665
SHA256 (FreeBSD-10.3-RELEASE-amd64-uefi-bootonly.iso) = d9f1d52639821bbd818844f1899a5cf2a5601143ca76c095158405bf14719ebb







Ubuntu: Googler: Installation

Command:

$ python3 --version


Result:

Python 3.5.1+


Command:

$ git clone https://github.com/jarun/googler.git


Result:

Cloning into 'googler'...
remote: Counting objects: 1902, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 1902 (delta 0), reused 0 (delta 0), pack-reused 1899
Receiving objects: 100% (1902/1902), 1.21 MiB | 704.00 KiB/s, done.
Resolving deltas: 100% (1146/1146), done.
Checking connectivity... done.


Command:

$ cd googler
$ sudo make install


Result:

[sudo] password for USERNAME:
install -m755 -d /usr/local/bin
install -m755 -d /usr/local/share/man/man1
install -m755 -d /usr/local/share/doc/googler
gzip -c googler.1 > googler.1.gz
install -m755 googler /usr/local/bin
install -m644 googler.1.gz /usr/local/share/man/man1
install -m644 README.md /usr/local/share/doc/googler
rm -f googler.1.gz

Thursday, September 15, 2016

macOS Sierra: Googler: Installation & Execution

Command:

$ brew install googler


Result:

==> Auto-updated Homebrew!
Updated Homebrew from 54884cd to 2818156.
Updated 1 tap (homebrew/core).
==> New Formulae
zsh-git-prompt
==> Updated Formulae
appscale-tools        consul                dockutil              glm                   ios-deploy            logentries            ponyc                 serf              
artifactory           curl                  fontconfig            h2o                   libstrophe            pdnsrec               scour              
==> Deleted Formulae
jing

Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Using the sandbox
==> Downloading https://github.com/jarun/googler/archive/v2.7.tar.gz
==> Downloading from https://codeload.github.com/jarun/googler/tar.gz/v2.7
######################################################################## 100.0%
==> Downloading https://github.com/jarun/googler/commit/6152bd3.patch
######################################################################## 100.0%
==> Patching
==> Applying 6152bd3.patch
patching file Makefile
==> make disable-self-upgrade
==> make install PREFIX=/usr/local/Cellar/googler/2.7
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/googler/2.7: 10 files, 159K, built in 8 seconds


Command:

$ googler hello world


Result:

1 Hello World(ハローワールド) : J-WAVE 81.3 FM RADIO
http://www.j-wave.co.jp/original/helloworld/
DJ TAROとハリー杉山がさまざまな流行を多角的に追いかける新感覚のエンターテインメントラジオ番組!Ustreamでもスタジオの様子を配信中.

2 Hello world - Wikipedia
https://ja.wikipedia.org/wiki/Hello_world
Hello world(ハロー・ワールド)とは、画面上(標準出力)に文字列(値)を出力する非常に簡単なプログラムで扱われる文字列であり、ひいてはそのプログラム全体を指す。 目次. [非表示]. 1 概要; 2 初出; 3 関連項目; 4 外部リンク. 概要[編集]. 大抵のプログラミング ...

3 BUMP OF CHICKEN「Hello,world!」 - Duration - YouTube
https://www.youtube.com/watch?v=rOU4YiuaxAM
BUMP OF CHICKEN「Hello,world! / コロニー」http://amzn.to/1cUREVd 2015.04.22 (wed ...

4 Hello,world! BUMP OF CHICKEN - 歌詞タイム
http://www.kasi-time.com/item-75660.html
歌手:BUMP OF CHICKEN 作詞:Motoo Fujiwara 作曲:Motoo Fujiwara 血界戦線に関連している曲です 歌い出し:扉開けば 捻れた昼の夜昨日どうやって帰った 体だけが確かおはよう これからまた迷子の続き見慣れた知らない 景色の中でもう.

5 Hello Worldとは (ハローワールドとは) [単語記事] - ニコニコ大百科
http://dic.nicovideo.jp/a/hello%20world
曖昧さ回避 Hello Worldとは、ニコニコ動画で以下の作品につけられるタグである。 卑屈Pのオリジナル曲、【巡音ルカ】ハローワールド【オリジナル】 ゆちゃPのオリジナル曲、【鏡音...

6 Amazon.co.jp: BUMP OF CHICKEN : Hello, world! / コロニー (期間限定 ...
https://www.amazon.co.jp/Hello-world-%E3%82%B3%E3%83%AD%E3%83%8B%E3%83%BC-%E6%9C%9F%E9%96%93%E9%99%90%E5%AE%9A%E7%9B%A4-CHICKEN/dp/B00U6WSG0I
Hello, world! / コロニー (期間限定盤)] BUMP OF CHICKEN - CD・レコードの購入はオンライン通販アマゾン公式サイトで。お急ぎ便ご利用で当日・翌日にお届け。

7 「“Hello, world.”」紹介ページ|ニトロプラス Nitroplus
https://www.nitroplus.co.jp/pc/lineup/into_04/special.html
mstory. "Hello,world." LOADING. LOADING.. LOADING... lambda-----0.00sec. delta----------0.00sec. theta-------0.00sec. alpha-------0.00sec. グローバルネットワークに接続中… “Hello,
world.”の物語の内容を検出。 最終更新日 05.11.04. “Hello, world.

8 「“Hello, world.”」紹介ページ|ニトロプラス Nitroplus
https://www.nitroplus.co.jp/pc/lineup/into_04/
LOADING. %. 音. ※音声が出ます。ご注意ください。 sound/mov_bgm01.mp3. plaing. completed. end. ボクはロボットだ。 人間の感情を調査するために“HIKARI”によって作られた。 命令を遂行するためだけの存在。 A.D.2020. TOKYO. 「ああ、急停止は ...

9 Hello,world! BUMP OF CHICKEN 歌詞情報 - 歌ネットモバイル
http://sp.uta-net.com/search/kashi.php?TID=184429
2015/04/22 - Hello,world!(BUMP OF CHICKEN)の歌詞:扉開けば捻れた昼の夜.

10 BUMP OF CHICKEN | Hello,world!/ コロニー
http://www.bumpofchicken.com/helloworld_colony/
BUMP OF CHICKENにとって2年7カ月ぶりとなるニューシングル「Hello,world! / コロニー」が2015年4月22日に発売。

Tuesday, September 13, 2016

macOS Sierra: Bash Version

Command:

$ bash --version


Result:

GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)
Copyright (C) 2007 Free Software Foundation, Inc.

Ubuntu: Bash Version

Command:

$ bash --version


Result:

GNU bash, version 4.3.46(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

macOS Sierra: Installing Macvim with Lua

Command:

$ brew install macvim --with-lua


Result:

Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing dependencies for macvim: cscope
==> Installing macvim dependency: cscope
==> Downloading https://homebrew.bintray.com/bottles/cscope-15.8b.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cscope-15.8b.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/cscope/15.8b: 10 files, 714K
==> Installing macvim
==> Using the sandbox
==> Downloading https://github.com/macvim-dev/macvim/archive/snapshot-108.tar.gz
==> Downloading from https://codeload.github.com/macvim-dev/macvim/tar.gz/snapshot-108
######################################################################## 100.0%
==> ./configure --with-features=huge --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enable-rubyinterp --enable-tclinterp --with-tlib=ncurses --with-compiledby=Ho
==> make
==> Caveats
.app bundles were installed.
Run `brew linkapps macvim` to symlink these to /Applications.
==> Summary
🍺  /usr/local/Cellar/macvim/7.4-108: 2,099 files, 33.5M, built in 1 minute 47 seconds


Command:

$ mvim --version | grep lua


Result:

+dialog_con_gui  +lua             +rightleft       +writebackup
Linking: clang   -L. -L/usr/local/lib -L. -L/usr/local/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -framework CoreFoundation -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon       -lm  -lncurses -liconv -framework Cocoa  -L/usr/local/opt/lua/lib -llua -fstack-protector  -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl -framework Python   -framework Ruby  

macOS Sierra: Vim: Installing Lua Required for NeoBundle (Plug-in Manager): Fail

Command:

$ vim --version | grep lua


Result:

+dialog_con      -lua             -rightleft       +windows


Command:

$ brew install vim --with-lua


Result:

==> Auto-updated Homebrew!
Updated Homebrew from 4fb691e to 5a264cf.
Updated 2 taps (homebrew/core, homebrew/python).
==> New Formulae
hashcat                                                     httpstat                                                    tldr                                                    
==> Updated Formulae
afl-fuzz              cli53                 format-udf            homebrew/python/h5py  macvim                pam_yubico            svtplay-dl            wireshark        
antigen               collectd              freetype ✔            hub                   mkvtoolnix            planck                swagger-codegen       youtube-dl        
apache-flink          cryptopp              gd                    ibex                  mldonkey              pre-commit            texinfo          
autojump              dropbear              gnutls                imagemagick           mysql                 prometheus            tile38            
buku                  etcd                  gron                  jenkins               nghttp2               protobuf              vert.x            
carthage              fabio                 gtk+                  kapacitor             nodeenv               roswell               vim              
cattle                folly                 h2o                   libbluray             noti                  shadowsocks-libev     voms              
chromedriver          fontconfig            hadoop                libdrawtext           notmuch               simple-tiles          watchman          
==> Renamed Formulae
sonar -> sonarqube

Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing dependencies for vim: lua
==> Installing vim dependency: lua
==> Downloading https://homebrew.bintray.com/bottles/lua-5.2.4_4.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring lua-5.2.4_4.sierra.bottle.tar.gz
==> Caveats
Please be aware due to the way Luarocks is designed any binaries installed
via Luarocks-5.2 AND 5.1 will overwrite each other in /usr/local/bin.

This is, for now, unavoidable. If this is troublesome for you, you can build
rocks with the `--tree=` command to a special, non-conflicting location and
then add that to your `$PATH`.
==> Summary
🍺  /usr/local/Cellar/lua/5.2.4_4: 143 files, 697.4K
==> Installing vim
==> Using the sandbox
==> Downloading https://github.com/vim/vim/archive/v8.0.0002.tar.gz
==> Downloading from https://codeload.github.com/vim/vim/tar.gz/v8.0.0002
######################################################################## 100.0%
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.0.0002/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --with-compiledby=Homebrew --enable-l
==> make
==> make install prefix=/usr/local/Cellar/vim/8.0.0002 STRIP=/usr/bin/true
🍺  /usr/local/Cellar/vim/8.0.0002: 1,703 files, 23.2M, built in 1 minute 23 seconds


Command:

$ vim --version | grep lua


Result:

+dialog_con      -lua             -rightleft       +windows