예제 #1
0
파일: text.php 프로젝트: raviqqe/notes
<?php

section\name(".vimrc, setting file");
?>

  Enable syntax highlighting.

```
  syntax on
```

  Show line numbers.

```
  set number
```

  Prevent vim from createing backup files.

```
  set nobackup
```

  In insert mode, backspace key can also be used to delete new-line characters (```eol```),
  automatically generated  indents (```indent```), and characters which was present
  before got into insert mode (```start```). 

```
  set backspace=start,eol,indent
```
예제 #2
0
파일: text.php 프로젝트: raviqqe/notes
<?php

section\name("Installation");
?>

  Download and install ```www/nginx``` and ```lang/php5``` from ports.


  Configuratins are below.

```
  $ cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini<br/>
```

  In ```/usr/local/etc/nginx/nginx.conf```,

```
<?php 
print codefile('code/nginx.conf');
?>
```

  In ```/etc/rc.conf```,

```
  nginx_enable="YES"<br/>
  php_fpm_enable="YES"
```

  Then, start ```nginx``` and ```php-fpm``` daemons or reboot.
예제 #3
0
파일: text.php 프로젝트: raviqqe/notes
	$ svn commit -m "<i>logmessage</i>"
```
<?php 
section\name("Roll back the repository");
?>
```
	$ svn update -r <i>revisionnumber</i>
```
<?php 
section\name("Displaying help of svn commands");
?>
```
	$ svn help <i>command</i>
```
<?php 
section\name("Other svn commands");
?>
```
	$ svn diff [<i>path</i>]<br/>
	$ svn status [<i>path</i>]
```
<?php 
subsection\examples();
?>
	<i>destdir</i> : ~/svn/repos0<br/>
	<i>host</i> : svnserver.mydomain.com<br/>
	<i>reposname</i> : repos0<br/>
	<i>sourcedir</i> : ~/src<br/>
	<i>path</i> : ~/svn/repos0/fileordir<br/>
	<i>logmessage</i> : commited<br/>
	<i>command</i> : add
예제 #4
0
파일: text.php 프로젝트: raviqqe/notes
  Now, you can access from clients to the host with the URI, svn://<i>hostname</i>/<i>reposname</i>.

<?php 
section\name("Backing up repositories");
?>
```
  $ svnadmin dump <i>reposroot</i>/<i>reposname</i> &gt; <i>dumpfile</i>
```
<?php 
section\name("Restoring repositories");
?>
```
  $ svnadmin load <i>reposroot</i>/<i>reposname</i> &lt; <i>dumpfile</i>
```
<?php 
section\name("Deleting or renaming repositories");
?>

  Just delete or rename the repository's directory.

```
  $ rm -rf <i>reposroot</i>/<i>reposname</i><br/>
  $ mv <i>reposroot</i>/<i>oldreposname</i> <i>reposroot</i>/<i>newreposname</i>
```
<?php 
subsection\examples();
?>
  <i>reposroot</i> : /usr/local/svn<br/>
  <i>dumpfile</i> : ~/svn.dmp
<?php 
subsection\end();
예제 #5
0
파일: text.php 프로젝트: raviqqe/notes
```
<?php 
section\name("Selection sort");
?>
```
  <?php 
print_file("code/selection.c");
?>
```
<?php 
section\name("Heap sort");
?>
```
  <?php 
print_file("code/heap.c");
?>
```
```
  <?php 
print_file("code/heap_sift.c");
?>
```
<?php 
section\name("Quick sort");
?>
```
  <?php 
print_file("code/quick.c");
?>
```
예제 #6
0
파일: text.php 프로젝트: raviqqe/notes
section\name("CUI applications");
?>
<table>
<thead>
<tr><th>type</th><th>application</th></tr>
</thead>
<tbody>
<tr><td>web browser</td><td>lynx</td></tr>
<tr><td>editor</td><td>vim</td></tr>
<tr><td>terminal multiplexer</td><td>tmux</td></tr>
<tr><td>twitter client</td><td>turses</td></tr>
</tbody>
</table>
<?php 
section\name("GUI applications");
?>
<table>
<thead>
<tr><th>type</th><th>application</th></tr>
</thead>
<tbody>
<tr><td>window manager</td><td>dwm</td></tr>
<tr><td>terminal emulator</td><td>rxvt-unicode</td></tr>
<tr><td>file manager</td><td>pcmanfm</td></tr>
<tr><td>web browser</td><td>surf</td></tr>
<tr><td>image viewer</td><td>feh</td></tr>
<tr><td>display manager</td><td>xdm</td></tr>
<tr><td>font package</td><td>terminus</td></tr>
</tbody>
</table>
예제 #7
0
파일: text.php 프로젝트: raviqqe/notes
<?php

section\name("Removing gaps between terminal emulators");
?>

	Edit  this line in ```config.h```.

```
	static const Bool resizehints = False;
```

	Then, compile and install it.

<?php 
section\name("Setting the default terminal emulator");
?>

	Edit  this line in ```config.h```.

```
	static const char *termcmd[]  = { "<i>yourterm</i>", NULL };
```

	Then, compile and install it.

<?php 
subsection\examples();
?>
	<i>yourterm</i> : urxvt
<?php 
subsection\end();
예제 #8
0
파일: text.php 프로젝트: raviqqe/notes
```
	keymap="<i>yourkeymap</i>"<br/>
	hostname="<i>yourhostname</i>"<br/>
	ifconfig_<i>ethdev</i>="DHCP"
```

Finally, reboot into your new system.

```
	# cd<br/>
	# umount <i>mountpoint</i><br/>
	# reboot
```
<?php 
section\name("After installation");
?>

Create alias database for ```sendmail``` in the new system.

```
	# make -C /etc/mail aliases
```
<?php 
subsection\examples();
?>
	<i>blockdev</i> : ada0<br/>
	<i>idxnum</i> : 1 (the index number of the freebsd-boot slice)<br/>
	<i>partdev</i> : ada0p3<br/>
	<i>swappartdev</i> : ada0p2<br/>
	<i>mountpoint</i> : /mnt<br/>
예제 #9
0
파일: text.php 프로젝트: raviqqe/notes
<?php

section\name("fortune (default) mode");
?>
<script type="text/javascript" src="https://asciinema.org/a/16803.js"
id="asciicast-16803" async></script>
<?php 
section\name("endless fortune mode");
?>
<script type="text/javascript" src="https://asciinema.org/a/16804.js"
id="asciicast-16804" async></script>
<?php 
section\name("RSS feeds mode");
?>
<script type="text/javascript" src="https://asciinema.org/a/16805.js"
id="asciicast-16805" async></script>
예제 #10
0
파일: text.php 프로젝트: raviqqe/notes
<?php

section\name("Running gdb");
?>
```
  # gdb <i>program</i>
```
<?php 
subsection\examples();
?>
	<i>program</i> : ./a.out
<?php 
subsection\end();