This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/perl -w - | |
use warnings; | |
use strict; | |
use IO::Socket::INET; | |
if (@ARGV < 3){ | |
die "USAGE: perl Confirmation_Port.pl [HOST] [PORT] [PROTO]\n"; | |
exit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#export PATH=~/vim/src/:$PATH | |
function fish_prompt | |
if [ $status -eq 0 ] | |
set status_face (set_color green)"(*'-') < " | |
else | |
set status_face (set_color blue)"(*;-;) < " | |
end | |
set prompt (set_color yellow)(prompt_pwd) | |
echo $prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('~/.vim/plugged') | |
Plug 'altercation/vim-colors-solarized' | |
Plug 'bronson/vim-trailing-whitespace' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'ervandew/supertab' | |
Plug 'scrooloose/syntastic' | |
Plug 'tpope/vim-surround' | |
Plug 'vim-ruby/vim-ruby' | |
Plug 'othree/html5.vim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /usr/local/src | |
sudo apt install git | |
#ビルドする際に必要なパッケージをインストールする | |
sudo apt-get install checkinstall mercurial python-dev python3-dev ruby ruby-dev libx11-dev libxt-dev libgtk2.0-dev libncurses5 ncurses-dev | |
sudo apt-get install liblua5.1-0-dev | |
sudo apt-get install libruby-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su - | |
#Password:hogehoge(自分のパスワード) | |
passwd [rootのパスワードを設定] | |
#/home下のメニューを英語にする | |
LANG=C xdg-user-dirs-gtk-update | |
#vmware tool インスコ | |
sudo apt install open-vm-tools-desktop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
x = np.arange(0, 6, 0.1) #arangeメソッド[0.1, 0.2・・・5.9] | |
y = np.sin(x) | |
#グラフの描画 | |
plt.plot(x, y) | |
plt.show() |