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 | |
| cd /home/steven/Downloads/kafka/kafka_2.12-1.1.1 | |
| tmux new-session \; \ | |
| send-keys 'bin/zookeeper-server-start.sh config/zookeeper.properties' C-m \; \ | |
| split-window -h \; \ | |
| send-keys 'bin/kafka-server-start.sh config/server.properties' C-m \; |
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
| def fizzBuzz(number: Int): String = { | |
| number match { | |
| case z if z % 3 == 0 && z % 5 == 0 => "Fizzbuzz" | |
| case z if z % 3 == 0 => "Fizz" | |
| case z if z % 5 == 0 => "Buzz" | |
| case _ => number.toString | |
| } | |
| } | |
| (1 to 100).foreach(a=> println(fizzBuzz(a))) |
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/sh | |
| if [ $# -lt 3 ]; then | |
| echo "No arguments supplied." | |
| echo " Example: upgradeFoldByBash: [Service name] [service account] [folder]" | |
| exit 1 | |
| fi | |
| echo "Stopping the $1 Service" | |
| systemctl stop $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
| #!/bin/bash | |
| # */15 9-18 * * 1,2,3,4,5 /home/shicks/testenvironment/flightradar/flightscreenshot.sh | |
| rm desktopfile.png | |
| xvfb-run -a -s "-screen 0 3200x900x24" wkhtmltoimage --width 1500 --height 900 --javascript-delay 3000 --crop-x 224 --crop-y 51 --crop-w 930 --crop-h 352 -q http://www.flightradar24.com/41.98,-87.91/8 desktopfile.png | |
| width=`identify -format %w desktopfile.png`; | |
| datetime="`date`" | |
| rm annotateddesktop.png | |
| convert -background '#0008' -fill white -gravity center -size ${width}x30 caption:"ORD @ $datetime" desktopfile.png +swap -gravity south -composite annotateddesktop.png |
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 com.google.common.base.Preconditions; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.io.UnsupportedEncodingException; | |
| import java.net.JarURLConnection; | |
| import java.net.URL; | |
| import java.net.URLDecoder; | |
| import java.util.*; | |
| import java.util.jar.JarEntry; |