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
| curl -s "https://www.ombord.info/hotspot/hotspot.cgi?connect=&method=login&realm=db_advanced_wifi" |
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
| #!/bin/bash | |
| bash -c "export DISPLAY=:0 && xset dpms force off;" |
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 kafka.admin.AdminUtils; | |
| import kafka.server.KafkaConfig; | |
| import kafka.server.KafkaServer; | |
| import kafka.server.KafkaServerStartable; | |
| import kafka.utils.MockTime; | |
| import kafka.utils.TestUtils; | |
| import kafka.utils.ZKStringSerializer$; | |
| import kafka.utils.ZkUtils; | |
| import org.I0Itec.zkclient.ZkClient; | |
| import org.apache.curator.test.TestingServer; |
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
| find -maxdepth 2 -type d -exec du -sh {} \; |
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
| mvn org.codehaus.mojo:versions-maven-plugin:2.2:display-dependency-updates |
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
| <configuration> | |
| <appender name="FILE" class="ch.qos.logback.core.FileAppender"> | |
| <file>myapp.log</file> | |
| <encoder><pattern>%logger{35} - [%F:%L] - %msg%n</pattern></encoder> | |
| </appender> | |
| <appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender"> | |
| <appender-ref ref="FILE" /> | |
| <!-- add the following line --> | |
| <includeCallerData>true</includeCallerData> |
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
| filter { | |
| if [type] == "mongostat" { | |
| grok { | |
| patterns_dir => "/etc/logstash/patterns" | |
| match => ["message","%{HOSTNAME:host}:%{INT:port} %{INSERT}%{QUERY}%{UPDATE}%{DELETE}%{GETMORE}%{SPACE}%{NUMBER:mongoCommand}\|%{NUMBER:mongoReplCommand}%{SPACE}%{NUMBER:mongoDirty}%{SPACE}%{NUMBER:mongoUsed}%{SPACE}%{NUMBER:mongoFlushes}%{SIZE}%{RES}%{SPACE}%{NUMBER:mongoQR}\|%{NUMBER:mongoQW}%{SPACE}%{NUMBER:mongoAR}\|%{NUMBER:mongoAW}%{NETIN}%{NETOUT}%{SPACE}%{NUMBER:mongoConnections}%{SPACE}%{NOTSPACE:mongoReplSet}%{SPACE}%{WORD:mongoReplMember}%{SPACE}%{TIME:mongoTime}"] | |
| } | |
| if [mongoNetInQualifier] == 'b' { | |
| ruby { | |
| code => "event['mongoNetInKB'] = event['mongoNetIn'].to_f / 1024" | |
| } |
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
| find . -name "*.php" -print | xargs sed -i 's/foo/bar/g' |