vimで透過設定をしたい場合は以下のコマンドを.vimrcに記述する
|
1 |
autocmd GUIEnter * set transparency=240 |
「240」の数字を変更すると透過率を変えられるが、あまり大きくしすぎると背景に溶け込んで見えにくくなることもあるので適当に調整する。
vimで透過設定をしたい場合は以下のコマンドを.vimrcに記述する
|
1 |
autocmd GUIEnter * set transparency=240 |
「240」の数字を変更すると透過率を変えられるが、あまり大きくしすぎると背景に溶け込んで見えにくくなることもあるので適当に調整する。
ハードディスクドライブの内容は、ファイルの削除を行っただけでは復元ができてしまう。
ハードディスクドライブを破棄する場合や転売する場合は、内容を完全消去しておかないと情報漏洩などの危険性がある。
(内容を読み取られても良い場合は、特に何もしなくて良いとは思う)
以下のコマンドを実行してデータを完全削除する。
|
1 |
$ cipher /w:[ドライブ名]: |
/wオプションを付けて実行すると、cipherコマンドはディスクの空き領域いっぱいになる様に特定パターンのデータを、3回書き込みを行い、データを消去して完了する。
データを3回書き込みするためディスク容量が大きい物は作業時間がかなりかかる。
Windows7でファイルを移動した場合や名前を変更したときに、更新されない現象が発生している。
「F5」キーを押せば更新されるが、毎回行うのはかなりめんどくさい。
エクスプローラの更新されない場合以下をコマンドプロンプトで以下を実行することで解決される。
|
1 2 |
Taskkill /f /im explorer.exe start explorer.exe |
「explorer.exe」を強制終了して、起動しているだけです。
エクスプローラが頻繁に落ちるときはバッチファイルを作って実行すれば楽に再起動できます。
「init」コマンドを使用して、リポジトリを作成する。
gitのリポジトリをカレントディレクトリに作成する。
|
1 |
$ git init |
※注意 : リポジトリを作成したいディレクトリに移動してからコマンドを実行する。
通常の運用は、サーバーに中央リポジトリを作成して、クライアント側はサーバーのリポジトリをクローンして使用するほうが望ましい。
SSHを使用した接続がうまくいかない
調べてみると、SSH接続の設定がレジストリに書き込まれていないと接続できないみたい。
plinkコマンドを使用してレジストリに設定を書き込む。
SSHを登録するコマンド
|
1 |
$ plink -ssh -C -i "[ssh key]" [host] |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
$ plink Plink: command-line connection utility Release 0.67-jp20160306 Usage: plink [options] [user@]host [command] ("host" can also be a PuTTY saved session name) Options: -V print version information and exit -pgpfp print PGP key fingerprints and exit -v show verbose messages -load sessname Load settings from saved session -ssh -telnet -rlogin -raw -serial force use of a particular protocol -P port connect to specified port -l user connect with specified username -batch disable all interactive prompts -sercfg configuration-string (e.g. 19200,8,n,1,X) Specify the serial configuration (serial only) The following options only apply to SSH connections: -pw passw login with specified password -D [listen-IP:]listen-port Dynamic SOCKS-based port forwarding -L [listen-IP:]listen-port:host:port Forward local port to remote address -R [listen-IP:]listen-port:host:port Forward remote port to local address -X -x enable / disable X11 forwarding -A -a enable / disable agent forwarding -t -T enable / disable pty allocation -1 -2 force use of particular protocol version -4 -6 force use of IPv4 or IPv6 -C enable compression -i key private key file for user authentication -noagent disable use of Pageant -agent enable use of Pageant -hostkey aa:bb:cc:... manually specify a host key (may be repeated) -m file read remote command(s) from file -s remote command is an SSH subsystem (SSH-2 only) -N don't start a shell/command (SSH-2 only) -nc host:port open tunnel in place of session (SSH-2 only) -sshlog file -sshrawlog file log protocol details to a file |
この設定を行ったら接続できるようになった。
参考サイト
http://qiita.com/moo/items/5ee3208254c34719914b
Windows10にアップデートしたらユーザーの環境変数を変更できなくなった。
調べるとほかでも同様の現象が起きているのでWindowsのバグ?ぽいのでレジストリを直接編集することにする。
Windwosバージョン
Windows10 バージョン1511
pro,homeは関係なく発生している
環境変数に「PATH」を追加し値を編集する
レジストリエディタを起動する
「winキー+R」→「regedit」を入力してエディタを起動する
管理者権限がなくてもユーザーのレジストリは編集できる
環境変数のレジストリキーを探す
HKEY_CURRENT_USER\Environment
キーに値「PATH」を追加する
右クリック→新規→展開可能な文字列値(E)を選択
新規値の名前を「PATH」に変更する
値を入力する
値を複数入力する場合は「;」で区切って入力する
setxコマンドを使用して変更もできる
Linuxでクライアントのパスワードがわからなくなった場合にパスワードを再設定する方法。
ユーザー名の確認
|
1 |
# ls -l /home |
パスワードの再設定
|
1 2 3 4 |
# passwd [ユーザー名] Enter new UNIX password: [新しいパスワード] Retype new UNIX password: [新しいパスワードを再入力] passwd: password updated successfully |
vimインテント処理
tabstop
既存のTAB文字の文字幅を指定
softtabstop
キーボードでTABキーを押したときに入力されるTAB文字の文字幅を指定
[shiftwidth]よりも優先される
値を”0″にした場合は[shiftwidth]の値が優先される
shiftwidth
自動インデントで入力されるTAB文字の文字幅を指定
linuxでホスト名を確認する。
|
1 |
$ hostname |
このコマンドを実行するとホスト名が表示される。
コマンドオプション
-d : ホストのドメイン名を表示
-i : ホストのIPアドレスを表示
vimの背景色はdark(黒背景)とlight(白背景)のモードがある。
背景の切り替えは「background」コマンドで切り替えられる。
白背景に切り替え
|
1 |
:set background=light |
黒背景に切り替え
|
1 |
:set background=dark |
基本的にはカラースキームの切り替えで制御した方が良いかも。