Skip to content

Instantly share code, notes, and snippets.

View markoradinovic's full-sized avatar

Marko Radinovic markoradinovic

View GitHub Profile
#!/bin/bash
# Timezone
ln -sf /usr/share/zoneinfo/Australia/Sydney /etc/localtime
#Using script from http://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_cloudwatch_logs.html
# Install awslogs and the jq JSON parser
yum install -y awslogs jq aws-cli
# ECS config
import io.github.resilience4j.bulkhead.Bulkhead
import io.github.resilience4j.bulkhead.utils.BulkheadUtils
import io.grpc.CallOptions
import io.grpc.Channel
import io.grpc.ClientCall
import io.grpc.ClientInterceptor
import io.grpc.ClientInterceptors
import io.grpc.ForwardingClientCallListener
import io.grpc.Metadata
import io.grpc.MethodDescriptor
import io.github.resilience4j.bulkhead.Bulkhead
import io.github.resilience4j.bulkhead.utils.BulkheadUtils
import io.grpc.CallOptions
import io.grpc.Channel
import io.grpc.ClientCall
import io.grpc.ClientInterceptor
import io.grpc.ClientInterceptors
import io.grpc.ForwardingClientCallListener
import io.grpc.Metadata
import io.grpc.MethodDescriptor
@markoradinovic
markoradinovic / OTA_AllRQ.xsd
Created February 23, 2018 16:21 — forked from eed3si9n/OTA_AllRQ.xsd
Open Travel Alliance 2010B specification
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.opentravel.org/OTA/2003/05" targetNamespace="http://www.opentravel.org/OTA/2003/05">
<xsd:include schemaLocation="OTA_PingRQ.xsd" />
<xsd:include schemaLocation="OTA_VehAvailRateRQ.xsd" />
<xsd:include schemaLocation="OTA_VehRetResRQ.xsd" />
<xsd:include schemaLocation="OTA_VehResRQ.xsd" />
<xsd:include schemaLocation="OTA_VehModifyRQ.xsd" />
<xsd:include schemaLocation="OTA_VehCancelRQ.xsd" />
<xsd:include schemaLocation="OTA_VehLocDetailRQ.xsd" />
<xsd:include schemaLocation="OTA_VehLocSearchRQ.xsd" />
@markoradinovic
markoradinovic / howto_deb_repackage.txt
Created August 14, 2017 13:31 — forked from shamil/howto_deb_repackage.txt
Howto repackage deb packages
Use folowing steps to repackage dep package:
1: Extract deb package
# dpkg-deb -x <package.deb> <dir>
2: Extract control-information from a package
# dpkg-deb -e <package.deb> <dir/DEBIAN>
3. After completed to make changes to the package, repack the deb
# dpkg-deb -b <dir> <new-package.deb>
@markoradinovic
markoradinovic / retry.sh
Created July 3, 2017 22:20 — forked from dublx/retry.sh
Bash - retry command N times
#!/bin/bash
set -euo pipefail
function myFunction() {
myCommand
return $?
}
retry=0
maxRetries=5
@markoradinovic
markoradinovic / iptableflip.sh
Created June 24, 2017 00:01 — forked from lewisd32/iptableflip.sh
Snippet of Unbounce script for restarting HAProxy with zero downtime
echo "Flipping tables! (╯°□°)╯︵ ┻━┻"
num_rules=3
real=3 # exposed to the ELB as port 443
test=4 # used to install test certs for domain verification
health=5 # used by the ELB healthcheck
blue_prefix=855
green_prefix=866
@markoradinovic
markoradinovic / git-maven-howto.md
Created April 29, 2017 12:16 — forked from fernandezpablo85/git-maven-howto.md
how to create your own maven repository on github

How to create a maven repository for your github project step by step

Clone your project in a separate folder

(note: replace ORGANIZATION and PROJECT)

git clone git clone git@github.com:ORGANIZATION/PROJECT.git my-repository

Cd into it

@markoradinovic
markoradinovic / API.md
Created February 8, 2017 22:45 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@markoradinovic
markoradinovic / native-kernel-compilation-odroid-c2.md
Created July 13, 2016 16:03 — forked from Brainiarc7/native-kernel-compilation-odroid-c2.md
This document summarizes the steps needed to perform a native kernel compilation on the ARM-based Odroid C2 development board.

Native kernel compilation on the Odroid-C2:

The Odroid-C2's processor is fast enough to compile the Linux kernel on it natively, and as such, taking this path should eliminate the complexity involved in cross-compilation.

Installing tools

Depending on the distro you are running, and the packages you have installed, you might need to add the compiler and other build-related tools. For example, a minimal base Debian image would not have gcc, since an embedded Linux appliance generally has no requirement to be used as a development tool. This item shows how to install what you need: Adding Native Compiler and Tools