Skip to content

Instantly share code, notes, and snippets.

View roc26002w's full-sized avatar
:octocat:

Rocko roc26002w

:octocat:
View GitHub Profile
@roc26002w
roc26002w / _ide_helper.php
Created March 5, 2019 15:48 — forked from barryvdh/_ide_helper.php
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.5.13 on 2017-09-28.
*
* @author Barry vd. Heuvel <[email protected]>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");
@roc26002w
roc26002w / install-teamcity.md
Created June 1, 2018 07:47 — forked from sandcastle/install-teamcity.md
Install TeamCity 9.0.3 on Ubuntu with Nginx
## Install
* apt-get install redis-server
## redis-cli commend line
* 檢查連線
* PING
* 查詢紀錄的 Key
* `keys *`
* 查詢紀錄的 Key 數量
* `info keyspace`
# Options are:
# -n requests Number of requests to perform
# -c concurrency Number of multiple requests to make
# -t timelimit Seconds to max. wait for responses
# -p postfile File containing data to POST
# -T content-type Content-type header for POSTing
# -v verbosity How much troubleshooting info to print
# -w Print out results in HTML tables
# -i Use HEAD instead of GET
# -x attributes String to insert as table attributes
## install
[說明網址](https://kafka.apache.org/quickstart)
[下載網址](https://kafka.apache.org/downloads)
* 安裝步驟
* 下載
* wget http://ftp.mirror.tw/pub/apache/kafka/0.10.2.0/kafka_2.11-0.10.2.0.tgz
* tar -xzf kafka_2.11-0.10.2.0.tgz
* cd kafka_2.11-0.10.2.0.tgz
#!/usr/bin/env bash
#ps aux | grep "java -jar processorgtmbox-2"
#ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head
#max cpu % load
MAX_CPU=90
#max execution time for CPU percentage > MAX_CPU (in seconds 7200s=2h)
MAX_SEC=1800
#sort by cpu
在.zshrc添加
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# Set root logger level to DEBUG and its only appender to saveFile, stdout
log4j.rootLogger=DEBUG,saveFile,stdout
#file output
log4j.appender.saveFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.saveFile.file=logs/processorgtmbox.log
log4j.appender.saveFile.encoding=UTF-8
log4j.appender.saveFile.layout=org.apache.log4j.PatternLayout
log4j.appender.saveFile.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=info, A1
# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
{
"platform": "MacIntel",
"cookieEnabled": "yes",
"doNotTrack": "NC",
"timezone": 8,
"resolution": "1920x1080x24",
"plugins": "Plugin 0: Chrome PDF Viewer; ; mhjfbmdgcfjbbpaeojofohoefgiehjai. Plugin 1: Chrome PDF Viewer; Portable Document Format; internal-pdf-viewer. Plugin 2: Native Client; ; internal-nacl-plugin. Plugin 3: Shockwave Flash ; Shockwave Flash 24.0 r0; PepperFlashPlayer.plugin. Plugin 4: Widevine Content Decryption Module; Enables Widevine licenses for playback of HTML audio/video content. (version: 1.4.8.903); widevinecdmadapter.plugin. ",
"ieUserData": "no",
"domLocalStorage": "yes",
"domSessionStorage": "yes",