Skip to content

Instantly share code, notes, and snippets.

View visimo-jarod's full-sized avatar

Jarod visimo-jarod

View GitHub Profile
@gxfxyz
gxfxyz / pipenv_virtualenv.py
Created November 15, 2018 22:19
Sublime Text 3 Pipenv virtualenv helper
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Sublime Text 3 Pipenv virtualenv helper.
1. Automatically find and set Pipenv virtualenv for each opened Python file.
- It uses `pipenv --venv` command to find the virtualenv.
- It will add a 'virtualenv' setting, which is the full path to the virtualenv,
@lmcarreiro
lmcarreiro / .gitlab-ci.yml
Created August 17, 2018 22:39
Exemplo kubernetes deploy (pelo gitlab)
deploy_dev:
stage: deploy
dependencies:
- test
environment:
name: Development
image: alpine
script:
# Environment variables
- export DOMAIN=$(echo "$CI_ENVIRONMENT_URL" | sed -e 's|^https://||;s|/.*$||')
@lmcarreiro
lmcarreiro / .gitlab-ci.yml
Created June 11, 2018 13:36
GitLab CI .gitlab-ci.yml example
stages:
- build
- test
- deploy
variables:
# from https://storage.googleapis.com/kubernetes-release/release/stable.txt
K8S_STABLE_VERSION_URL: https://storage.googleapis.com/kubernetes-release/release/v1.10.4/bin/linux/amd64/kubectl
build:
@henning
henning / create-kube-user.sh
Created September 27, 2017 12:25
create k8s user, certificate, permissions and client config
#!/bin/bash
CLUSTERNAME=mycluster.mydomain
NAMESPACE=default
USERNAME=myclusteruser
GROUPNAME=mygroup
openssl genrsa -out ${USERNAME}.key 2048
CSR_FILE=$USERNAME.csr
@dcommander
dcommander / gencert.cn
Last active March 11, 2023 03:30
Scripts/config file that I use to create X.509 certificates for TurboVNC testing
set -e
SUBJ="/C=US/ST=Texas/L=Austin/O=The VirtualGL Project/OU=Software Development/"
# Fake Server CA
openssl genrsa -out ca_server.key 2048
openssl req -new -newkey rsa:2048 -nodes -out ca_server.csr -keyout ca_server.key -subj "$SUBJ""CN=VeNCryptFakeServerCA"
openssl x509 -req -days 3650 -startdate -enddate -in ca_server.csr -signkey ca_server.key -out ca_server.crt
rm -f *.csr *.srl