#Ruby on Railsの学習メモ
清書するまでメモ代わりに。
vagrantでcentosサーバを構築。
rbenv、rails環境構築。
vagrantディレクトリ以下にrailsプロジェクト、/rails/helloworld設置。
| #include "Foo.h" | |
| public class Foo{ | |
| int dammyInt; | |
| double dammyDouble; | |
| public void Foo(){ | |
| dammyInt = 0; | |
| dammyDouble = 0.; | |
| } |
| { | |
| "snippets": { | |
| "variables": { | |
| "lang": "ja", | |
| "locale": "ja-JP", | |
| "charset": "UTF-8", | |
| "indentation": "\t", | |
| "newline": "\n" | |
| } | |
| } |
| cd yourRepository/ | |
| git checkout --orphan gh-pages | |
| git rm -rf . #これは別にやらなくてもいいかも | |
| echo "My GitHub Page" > index.html | |
| git add index.html | |
| git commit -a -m "First pages commit" | |
| git push origin gh-pages |
| <section data-markdown | |
| data-separator="\n---\n$" | |
| data-vertical="\n--\n"> | |
| <script type="text/template"> | |
| ここにmarkdownを記載していく。 | |
| </script> | |
| </section> |
| <link media="screen かつ幅が600px以上" ...> | |
| <style media="screen かつ幅が1024px以下" ... > | |
| </style> |
| DirectoryIndex index.html index.htm | |
| Authtype Basic | |
| AuthName "Enter Password" | |
| AuthUserFile /etc/httpd/conf/.htpasswd | |
| Require vaild-user |
| #vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE=eth0 | |
| TYPE=Ethernet | |
| UUID=a7a64eb7-efc4-4db7-bcb4-c7f8a233ca9d | |
| ONBOOT=yes | |
| NM_CONTROLLED=yes | |
| BOOTPROTO=dhcp | |
| HWADDR=08:00:27:A1:66:B2 | |
| DEFROUTE=yes | |
| PEERDNS=yes |
| wget http://ftp.samba.org/pub/samba/stable/samba-4.1.2.tar.gz | |
| tar zxvf samba-4.1.2.tar.gz | |
| cd samba-4.1.2 | |
| ./configure --enable-debug --enable-selftest | |
| make | |
| make install |
| $git clone git://github.com/andsens/homeshick.git ~/.homesick/repos/homeshick | |
| $printf '\nsource "$HOME/.homesick/repos/homeshick/homeshick.sh"' >> $HOME/.bashrc | |
| $printf '\nsource "$HOME/.homesick/repos/homeshick/completions/homeshick-completion.bash"' >> $HOME/.bashrc | |
| $source ~/.bashrc |