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
+--------------------+ | |
| Finding a new job. | | |
+--------------------+ |
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
深圳程序员开发群test |
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
[Unit] | |
Description=Supervisor daemon | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/supervisord -c /etc/supervisor/supervisord.conf | |
ExecStop=/usr/bin/supervisorctl shutdown | |
ExecReload=/usr/bin/supervisorctl reload | |
KillMode=process | |
Restart=on-failure |
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
// Rough implementation. Untested. | |
function timeout(ms, promise) { | |
return new Promise(function(resolve, reject) { | |
setTimeout(function() { | |
reject(new Error("timeout")) | |
}, ms) | |
promise.then(resolve, reject) | |
}) | |
} |
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
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
package main |
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
#nsq_shutdown.sh | |
#服务停止 | |
ps -ef | grep nsq| grep -v grep | awk '{print $2}' | xargs kill -2 |
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
#服务启动 | |
#注意更改一下 --data-path 所指定的数据存放路径,否则会无法运行。 | |
echo '删除日志文件' | |
rm -f nsqlookupd.log | |
rm -f nsqd1.log | |
rm -f nsqd2.log | |
rm -f nsqadmin.log | |
echo '启动nsqlookupd服务' | |
nohup nsqlookupd >nsqlookupd.log 2>&1& |
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
//----------------------------------------------------------------------------- | |
//translate strToTranslate from fromLanguage to toLanguage | |
//return the translated string | |
//return empty string if error | |
//some frequently used language abbrv: | |
//Chinese Simplified: zh-CN | |
//Chinese Traditional: zh-TW | |
//English: en | |
//German: de | |
//Japanese: ja |
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
<view class="scroll_box"> | |
<scroll-view class="scroll-view_x" scroll-x style="width: auto;overflow:hidden;"> | |
<view class="item_list" wx:for="{{list}}"> | |
<image src="../../images/head.jpg" class="item_book_img" mode="aspectFill"></image> | |
<view class="item_book_text">测试数据</view> | |
</view> | |
</scroll-view> | |
</view> |
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
server { | |
listen 80; | |
server_name xxxx.com; | |
access_log /var/log/nginx/xxxx.php-access.log backend; | |
error_log /var/log/nginx/xxxx.php-error.log error; | |
set $root /var/www/xxxx; | |
location ~ .*\.(gif|jpg|jpeg|bmp|png|ico|txt|js|css)$ | |
{ | |
root $root; | |
} |
NewerOlder