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 | |
cat <<EOF >/home/ec2-user/kinesis_client.sh | |
#!/bin/sh | |
while true | |
do | |
eventTime=\$(date +"%Y-%m-%d-%T") | |
userId=\$(( ( RANDOM % 100000 ) + 1 )) | |
appId=\$(( ( RANDOM % 1000 ) + 1 )) | |
appScore=\$(( ( RANDOM % 100 ) + 1 )) | |
appData=SomeTestData |
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
from __future__ import print_function | |
import boto3 | |
import time | |
import random | |
import threading | |
import sys | |
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 | |
# Manually emulate ionic/cordova application | |
# Miroslav Masat 2014 | |
echo "Emulating..." | |
cd ./platforms/ios/build/emulator | |
var=$(pwd) | |
ios-sim launch "$var"/*.app |
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 | |
#Miroslav Masat 2013 | |
echo "Zadaj vstupny subor [relativna cesta od umiestnenia tohto skriptu]"; | |
read a; | |
echo "Zadaj velkost jednej casti suboru [ -b (bytecount)]"; | |
read b; | |
velkost=`echo $b | cut -d"/" -f5 | cut -d"." -f1|tr -d [:alpha:]`; #tento riadok extrahuje zo vstupu cislo. Napriklad z "4k" vyberie len "4", nanestastie som este nezaintegroval ten feature dalej do kodu, aby vedel podla postfixu nahodit exponent desiatky, cize teraz je to len bezpredmetna validacia vstupu... | |
split -b $b $a; |