This file contains hidden or 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
| root@Paptimus:/sys/module/dm_lc# tree caches/ devices/ | |
| caches/ | |
| └── 1 | |
| ├── allow_migrate | |
| ├── commit_super_block | |
| ├── commit_super_block_interval | |
| ├── device -> ../../../../devices/virtual/block/dm-1 | |
| ├── flush_current_buffer | |
| ├── force_migrate | |
| └── update_interval |
This file contains hidden or 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
| [1] akira@Kamille> echo $PATH ~ | |
| /home/akira/.pythonbrew/bin:/home/akira/.pythonbrew/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/akira/.rbenv/shims:/home/akira/Dotfiles/bin:/home/akira/bin:/home/akira/ruby-build/bin:/home/akira/ruby-1.9.3-p362/bin:/home/akira/help/bin:/home/akira/dotfiles/bin:/home/akira/aliases/bin:/home/akira/alias/bin:/home/akira/Dotfiles/bin:/home/akira/.rbenv/bin:/usr/local/vim/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/akira/.rbenv/shims:/home/akira/Dotfiles/bin:/home/akira/bin:/home/akira/ruby-build/bin:/home/akira/ruby-1.9.3-p362/bin:/home/akira/.rbenv/bin:/home/akira/help/bin:/home/akira/Dotfiles/bin:/home/akira/dotfiles/bin:/home/akira/aliases/bin:/home/akira/alias/bin:/usr/local/vim/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games | |
| akira@Kamille> su ~ | |
| Password: | |
| root@Kamille:/home/akira# echo $PATH | |
| /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr |
This file contains hidden or 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 sys | |
| from argparse import ArgumentParser | |
| import lc_admin.tools as tools | |
| parser = ArgumentParser() | |
| #parser.add_argument("--nobarrier", action="store_true", default=False) | |
| parser.add_argument('device_id', type=int) | |
| parser.add_argument('cache_id', type=int) |
This file contains hidden or 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
| ``` | |
| os.system(remove_command) | |
| os.system(command) | |
| #time.sleep(1) | |
| os.system("dmsetup message %s 0 add_sysfs" % (device.dm_name())) | |
| ``` | |
| ``` | |
| [ 227.812590] device-mapper: lc DEBUG: lc_ctr | |
| [ 227.812590] device-mapper: lc DEBUG: lc_ctr end |
This file contains hidden or 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
| -module(scorecount). | |
| -export( [main/1] ). | |
| %% [X, X+1, X+2, ...] | |
| create_list(_, 0, L) -> | |
| L; | |
| create_list(X, N, L) -> | |
| create_list(X+1, N-1, [X | L]). | |
| %% [Int] |
This file contains hidden or 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
| Lyle% ls | |
| Desktop Public linux-3.0.58.tar.bz2 linux-3.7.5.tar.bz2 | |
| Documents Templates linux-3.2.36.tar.bz2 linux-3.8.5 | |
| Dotfiles Videos linux-3.4.25.tar.bz2 linux-3.8.5.tar.xz | |
| Downloads dotfiles linux-3.5.7.tar.bz2 src | |
| Music linux-2.6.30.1.tar.bz2 linux-3.6.9.tar.bz2 | |
| Pictures linux-2.6.32.60.tar.bz2 linux-3.7.2.tar.bz2 | |
| Vimfilerの様子. | |
| https://plus.google.com/110495541908947151568/posts/XoyuVLYonWn |
This file contains hidden or 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
| 2930 akira 20 0 19072 1376 1024 S 3 0.1 0:40.29 top | |
| 2177 akira 20 0 31132 2512 1072 S 1 0.1 0:39.24 tmux | |
| 3097 akira 20 0 240m 4440 1892 S 1 0.2 0:00.24 rtmpdump | |
| 10 root 20 0 0 0 0 S 1 0.0 0:02.80 events/1 | |
| 2141 akira 20 0 85184 1664 892 S 1 0.1 0:07.24 sshd | |
| 2954 akira 20 0 19072 1364 1012 S 1 0.1 0:04.05 top | |
| 3082 akira 20 0 330m 9040 1892 S 1 0.4 0:00.28 rtmpdump | |
| 3104 akira 20 0 296m 2776 1892 S 1 0.1 0:00.23 rtmpdump | |
| 3106 akira 20 0 245m 3052 1892 S 1 0.1 0:00.19 rtmpdump |
This file contains hidden or 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
| #include <iostream> | |
| using namespace std; | |
| class ColorfulBoxesAndBalls { | |
| public: | |
| int getMaximum(int numRed, int numBlue, int onlyRed, int onlyBlue, int bothColors) | |
| { | |
| int scoreA, scoreB, N, M; | |
| if(numRed < numBlue){ | |
| scoreA = onlyRed; |
This file contains hidden or 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
| class StockHistory { | |
| public: | |
| int maximumEarnings( | |
| int initialInvestment, | |
| int monthlyContribution, | |
| vector<string> stockPrices) | |
| { | |
| vector<string> s = split(stockPrices[0], " "); | |
| P("split"); | |
| int M = s.size(); |
This file contains hidden or 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
| #include <iostream> | |
| #include <vector> | |
| #include <string> | |
| #include <set> | |
| #include <map> | |
| #include <algorithm> | |
| #include <cstdlib> | |
| #include <memory> | |
| #include <cstring> | |
| #include <stack> |