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
$ su user_name | |
This account is currently not available. | |
then, change to /bin/bash as follows: | |
$ sudo vi /etc/passwd | |
- user_name:x:501:501::/home/user_name:/sbin/nologin | |
+ user_name:x:501:501::/home/user_name:/bin/bash |
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
WebSocket network error: OSStatus Error -9807: Invalid certificate chain | |
# front end server: Nginx v1.4.1, port 443, ssl | |
# back end server: Node.js v0.10.5, [email protected], port 3000, ssl |
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
$ nslookup 202.72.50.10 | |
Server: 192.168.100.254 | |
Address: 192.168.100.254#53 | |
Non-authoritative answer: | |
10.50.72.202.in-addr.arpa name = www.rakuten.co.jp. | |
# www.rakuten.co.jpのところ | |
# look up A:【本辞書などで/コンピュータなど(の媒体)で】A〈情報など〉を調べる |
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 chgrp -R staff /usr/local | |
$ sudo chmod -R 775 /usr/local | |
# 775: -rwxrwxr-x | |
# staff: このMacで管理者権限のないユーザグループのこと。変更前のグループはadmin。 |
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 vim | |
Error detected while processing /Users/user_name/.vim/bundle/neocomplcache/plugin/neocomplcache.vim: | |
line 37: | |
"sudo vim" and $HOME is not same to /root are detected.Please use sudo.vim plugin instead of sudo command or set always_set_home in sudoers. | |
then, set "always_set_home" in visudo as follows: | |
$ sudo visudo | |
+ Defaults always_set_home |
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
$ git config user.name 'Kenji' | |
$ git config user.emai [email protected] | |
$ vi .git/config | |
- url = https://github.com/kenji0x02/marico.git | |
+ url = github:kenji0x02/marico.git |
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
$ open -a textedit file_name | |
# i don't remenber this command, so... | |
$ vi ~/.bashrc | |
+ if [ `uname` = "Darwin" ]; then | |
+ alias notepad="open -a textedit" | |
+ fi | |
# windows like :-) |
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
// ex: separate 2 letters, and add "¥¥x" | |
var segments = signal.match(/.{2}/g); | |
var code = "" | |
for (var i = 0; i < segments.length; i++) { | |
code += "¥¥x" + segments[i]; | |
} |
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
// Don't use: onClick="hoge('id')" | |
$('.btn').click(function(){ | |
var id = $(this).attr('id'); | |
var class = $(this).attr('class'); | |
var dataHoge = $(this).attr('data-hoge'); | |
hogeId(id); | |
hogeClass(class); | |
hogeDataHoge(dataHoge); | |
}); |
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
// http://blog.tojiru.net/article/205007468.html | |
if (a == null) { | |
alert("aはundefinedかnull"); | |
} |
OlderNewer