Skip to content

Instantly share code, notes, and snippets.

View Fazzani's full-sized avatar

Fazzani Fazzani

View GitHub Profile
@Fazzani
Fazzani / push_to_gist.sh
Last active May 26, 2018 14:20
Push to gist
#!/bin/bash
# A bash script meant to take in user input, craft an API call to Github's Gist
# API and send the request, with content and filename filled in by the user
#Sends error on script failure
set -o errexit
USER=
FILENAME=
CONTENT=
@Fazzani
Fazzani / main.csx
Last active May 25, 2018 14:13
pushbullet notification
#! "netcoreapp2.1"
#r "nuget: PushBulletSharp, 3.1.0"
//#############################################################################################################################
// dotnet script : pushbullet example
// example:
// Tinyurl api => http://tinyurl.com/api-create.php?url=http://scripting.com/
// dotnet script https://tinyurl.com/ya5chql8 -- o.tZCHwg4A9C124ba2tFiiZDf1SaHzxJzC test "message to phone" 1>&2 || echo "no"
//#############################################################################################################################
@Fazzani
Fazzani / kubernetes kops aws.md
Last active April 30, 2018 08:04
kubernetes kops aws

K8S installation with KOPS

KOPS_STATE_STORE : is the source of truth for all clusters managed by Kops

  1. Kubectl Installation
apt-get update && apt-get install -y apt-transport-https &&  apt-get install -y curl
@Fazzani
Fazzani / webgrabconfig.xml
Created April 22, 2018 16:39
webgrabconfig.xml
<?xml version="1.0"?>
<settings>
<filename>/data/guide.xmltv</filename>
<mode>m</mode>
<postprocess grab="y" run="n">mdb</postprocess>
<logging>on</logging>
<retry time-out="5">4</retry>
<timespan>1</timespan>
<update>i</update>
@Fazzani
Fazzani / docker-compose.sh
Last active December 21, 2019 23:51
docker-compose
docker-compose start
docker-compose pause
docker-compose restart [options] [SERVICE...]
docker-compose stop [options] [SERVICE...]
Options:
-t, --timeout TIMEOUT Specify a shutdown timeout in seconds (default: 10).
docker-compose unpause