-
Install Manjaro OS selecting nonfree drivers
-
Run
sudo EDITOR=nano visudo
and uncomment the line
%wheel ALL=(ALL) NOPASSWD: ALL
| #!/bin/sh | |
| sleep 10 | |
| export DISPLAY=:0 | |
| /usr/bin/xset -dpms | |
| /usr/bin/xset s off | |
| sudo /usr/bin/nvidia-smi -pm 1 | |
| sudo /usr/bin/nvidia-smi -pl 90 |
Install Manjaro OS selecting nonfree drivers
Run
sudo EDITOR=nano visudo
and uncomment the line
%wheel ALL=(ALL) NOPASSWD: ALL
| -module(palinserver). | |
| -export([start/0, server_stop/1, serverloop/1, processloop/0, check_palin/2]). | |
| %% start 5 processloop to process the request of palindrome check | |
| %% then start the server to listen request | |
| start() -> | |
| ServerList = [spawn(palinserver, processloop, []) || _S <- lists:seq(1, 5)], | |
| spawn(palinserver, serverloop, [ServerList]). | |
| %% select random processloop to do the check job |
| -module(index). | |
| -export([get_file_contents/1,show_file_contents/1, | |
| get_string_words_index/4,get_all_lines_index/1,build_range/1, | |
| build_words_occurs/1,sort_words_index/1, get_index/1]). | |
| % Used to read a file into a list of lines. | |
| % Example files available in: | |
| % gettysburg-address.txt (short) | |
| % dickens-christmas.txt (long) |
rsync (Everyone seems to like -z, but it is much slower for me)
URL: http://www.v2ex.com/api/site/stats.json
获取社区统计信息。