Skip to content

Instantly share code, notes, and snippets.

Avatar

Benedetto Lo Giudice bennythejudge

View GitHub Profile
@bennythejudge
bennythejudge / pipefail_examples.sh
Created Mar 28, 2019 — forked from yoramvandevelde/pipefail_examples.sh
Examples of why pipefail is really important to use
View pipefail_examples.sh
#!/bin/bash
# author: Yoram van de Velde ( _@sp2.io )
# Examples of why pipefail is really important to use.
# We enable exit on error functionality
set -o errexit
# These commands will fail but not stop the script because of the pipes
# to succesfull commands. This works because error is output to stderr,
View Pytest Intro Assignments.rst

Pytest Introduction

Copyright 2018 - Matt Harrison

@__mharrison__

View activities.md

Activities

Activity 1 - "Hello, World" of Computer Vision

You must change directory to the directory where GoCV has been installed, then you can run the code.

Windows

chdir %GOPATH%\src\gocv.io\x\gocv
go run cmd\hello\main.go
View CloudFormationTemplateOpenShift.yaml
AWSTemplateFormatVersion: '2010-09-09'
Metadata: {}
Parameters:
###########
KeyName:
Description: The EC2 Key Pair to allow SSH access to the instance
Type: 'AWS::EC2::KeyPair::KeyName'
AvailabilityZone:
Description: Availability zone to deploy
@bennythejudge
bennythejudge / readme.MD
Created Mar 7, 2018 — forked from davideschiera/readme.MD
Grafana Sysdig datasource
View readme.MD

Sysdig Datasource Plugin for Grafana

Plugin to connect Grafana with Sysdig.

grafana-create-sysdig-panel

Getting started!

1. Installation

@bennythejudge
bennythejudge / docker-compose.yml
Created Feb 15, 2018 — forked from vk-sourcefuse/docker-compose.yml
docker-compose.yml STATIC IP assignment to all containers of a docker
View docker-compose.yml
version: "2"
services:
varnish:
#hostname: magento2.docker
image: meanbee/magento2-varnish:latest
environment:
- VIRTUAL_HOST=magento2.docker
- VIRTUAL_PORT=80
- HTTPS_METHOD=noredirect
ports:
@bennythejudge
bennythejudge / Option A
Created Nov 14, 2017 — forked from anonymous/Option A
3 options for the layout of an activity for a quiz question
View Option A
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity">
@bennythejudge
bennythejudge / gist:1e161db32328b78f6c8b1d287bf78176
Last active Jul 22, 2017 — forked from fernandoaleman/gist:5083680
How to update VirtualBox Guest Additions with vagrant (updated to VirtualBox 5.1.24)
View gist:1e161db32328b78f6c8b1d287bf78176
# Use centos/7
$ vagrant init centos/7
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
# this machine, please update the guest additions and repackage the
# box.
@bennythejudge
bennythejudge / grunt-hugo-lunrjs.md
Created Jul 18, 2017 — forked from sebz/grunt-hugo-lunrjs.md
hugo + gruntjs + lunrjs = <3 search
View grunt-hugo-lunrjs.md
View getting_more_familiar_with_go_resources.md

Getting more familiar with Go