Skip to content

Instantly share code, notes, and snippets.

View sandokandias's full-sized avatar

Sandokan sandokandias

  • SC, Brazil
View GitHub Profile
@sandokandias
sandokandias / update-alternatives-java
Created January 6, 2019 18:25
update-alternatives-java
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_191/bin/java" 1500
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_191/bin/javac" 1500
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.8.0_191/bin/javaws" 1500
kubectl -n {env} get pods
kubectl -n {env} describe pod {pod_nam}
kubectl -n {env} logs {pod_nam} -f
@sandokandias
sandokandias / kafka_command_lines.sh
Created August 13, 2018 18:26 — forked from thiagoaag/kafka_command_lines.sh
kafka_command_line_tests
# producer
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic [topic name] --property "parse.key=true" --property "key.separator=:"
# consumer
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic [topic name] --from-beginning
@sandokandias
sandokandias / set_display_to_1600x900
Created July 21, 2018 01:39
Set display to 1600x900
$ xrandr
#check the mode and set
$xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
$xrandr --addmode eDP-1 "1600x900_60.00"
$xrandr --output eDP-1 --mode "1600x900_60.00"
@sandokandias
sandokandias / setMavenVersion
Last active July 11, 2018 20:10
set maven version
mvn versions:set -DnewVersion=2.4.0-SNAPSHOT -DgenerateBackupPoms=false