Skip to content

Instantly share code, notes, and snippets.

Otavio Rodolfo Piske orpiske

Block or report user

Report or block orpiske

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am orpiske on github.
  • I am orpiske (https://keybase.io/orpiske) on keybase.
  • I have a public key whose fingerprint is CE70 8AA6 558B 996F F6A2 18CF 7EE0 A892 E0C6 F2A0

To claim this, I am signing this object:

View sample-ip-reader.sh
rpm -q libguestfs-tools || yum install -y libguestfs-tools
for vm in $(virsh list --all | tail -n +3 | awk ' { print $2 } ') ; do
virsh start $vm
done
### FIXME: Adjust the wait time according to the number of VMs and how powerful
### your server is.
echo "Waiting for the vms to power up"
sleep 3m
@orpiske
orpiske / gist:4889cffb219bd20e806e9ac35ce5a9bd
Last active Sep 3, 2017
OpenPHT compilation on Fedora
View gist:4889cffb219bd20e806e9ac35ce5a9bd
Obs.: tested on Fedora 24 ...
1. Clone OpenPHT:
git clone https://github.com/RasPlex/OpenPHT.git
2. Install build dependencies:
sudo dnf install freetype-devel SDL-devel SDL_image-devel libjpeg-turbo-devel sqlite-devel curl-devel lzo-devel tinyxml-devel fribidi-devel fontconfig-devel yajl-devel libmicrohttpd-devel openssl-devel glew-devel avahi-devel flac-devel ffmpeg-devel python-devel libtiff-devel libvorbis-devel libmpeg2-devel libass-devel librtmp-devel libplist-devel shairplay-devel libva-devel libvdpau-devel libcec-devel swig boost-devel libusb-devel systemd-devel nasm libmodplug-devel libcdio-devel -y
3. Build:
mkdir build ;
View docker-compose-infra-swarm.yml
version: '3'
networks:
cluster:
driver: overlay
test:
driver: overlay
services:
broker:
image: 127.0.0.1:5000/maestro_broker
build: broker
@orpiske
orpiske / docker-ibmmqlight-compose.yml
Last active Oct 30, 2018
Docker compose for running IBM MQ Light as a SUT with Maestro
View docker-ibmmqlight-compose.yml
version: '3.4'
services:
sut:
image: docker.io/ibmcom/mqlight
environment:
# You have to specifically accept the license on your own.
# this is provided just as a convenience
# - LICENSE=accept
networks:
- test
@orpiske
orpiske / maestro.yaml
Created Dec 5, 2018
Maestro Deployment for Kubernetes or OpenShift
View maestro.yaml
# ------------------- Maestro Broker Deployment ------------------- #
apiVersion: apps/v1
kind: Deployment
metadata:
name: maestro-broker
spec:
replicas: 1
selector:
matchLabels:
component: broker
View rpi-toolchain.cmake
# this one is important
SET(CMAKE_SYSTEM_NAME Linux)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)
# specify the cross compiler
SET(CMAKE_C_COMPILER /root/rpi-tools/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc)
SET(CMAKE_CXX_COMPILER /root/rpi-tools/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++)
You can’t perform that action at this time.