Skip to content

Instantly share code, notes, and snippets.

View skyrioloc's full-sized avatar
💻

Carmelo Riolo skyrioloc

💻
  • Sky Italia
  • Milan, Italy
View GitHub Profile
@skyrioloc
skyrioloc / pyscript.py
Created December 13, 2019 21:35 — forked from nhoffman/pyscript.py
Python script template
#!/usr/bin/env python
"""A simple python script template.
"""
from __future__ import print_function
import os
import sys
import argparse
@skyrioloc
skyrioloc / Twelve_Go_Best_Practices.md
Created October 17, 2019 21:49 — forked from pzurek/Twelve_Go_Best_Practices.md
Twelve Go Best Practices
@skyrioloc
skyrioloc / bobp-python.md
Created April 21, 2019 13:47 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@skyrioloc
skyrioloc / swagger-yaml-to-html.py
Created February 18, 2019 11:22 — forked from oseiskar/swagger-yaml-to-html.py
Converts Swagger YAML to a static HTML document (needs: pip install PyYAML)
#!/usr/bin/python
"""
Usage:
python swagger-yaml-to-html.py < /path/to/api.yaml > doc.html
"""
import yaml, json, sys
TEMPLATE = """
@skyrioloc
skyrioloc / gist:1fbe1eb2528225f31a5660478434916f
Created August 8, 2018 09:34 — forked from rkuzsma/gist:b9a0e342c56479f5e58d654b1341f01e
Example Kubernetes yaml to pull a private DockerHub image
Step by step how to pull a private DockerHub hosted image in a Kubernetes YML.
export DOCKER_REGISTRY_SERVER=https://index.docker.io/v1/
export DOCKER_USER=Type your dockerhub username, same as when you `docker login`
export DOCKER_EMAIL=Type your dockerhub email, same as when you `docker login`
export DOCKER_PASSWORD=Type your dockerhub pw, same as when you `docker login`
kubectl create secret docker-registry myregistrykey \
--docker-server=$DOCKER_REGISTRY_SERVER \
--docker-username=$DOCKER_USER \
@skyrioloc
skyrioloc / jenkins.template
Created August 7, 2018 19:56 — forked from JosephMaxwell/jenkins.template
Jenkins CloudFormation Template (more information and tutorial videos at https://swiftotter.com/technical/running-jenkins-on-amazon-ec2-with-cloudformation)
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Launches a Jenkins server.",
"Parameters": {
"InstanceType": {
"Description": "EC2 instance type",
"Type": "String",
"Default": "t2.small",
"AllowedValues": [
"t1.micro",
@skyrioloc
skyrioloc / kubernetes_commands.md
Created August 7, 2018 16:16 — forked from edsiper/kubernetes_commands.md
Kubernetes Useful Commands
@skyrioloc
skyrioloc / links.md
Created May 7, 2018 15:02 — forked from g0t4/links.md
Starting Point Files for Jenkins2 Getting Started course