Skip to content

Instantly share code, notes, and snippets.

View pydevops's full-sized avatar
🏠
Working from home

Victor Yang pydevops

🏠
Working from home
View GitHub Profile
@bradtraversy
bradtraversy / mysql_cheat_sheet.md
Last active April 23, 2025 12:49
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@Deleplace
Deleplace / gist:b8ab1638c7b9cae352f94012c468e1ec
Last active April 18, 2019 10:49
My GCP shortcut list (search engines) for Chrome
GCP console
gcp
https://console.cloud.google.com
Cloud Storage
gcs
https://console.cloud.google.com/storage/browser
@syntaqx
syntaqx / cloud-init.yaml
Last active April 21, 2025 10:14
cloud init / cloud config to install Docker on Ubuntu
#cloud-config
# Option 1 - Full installation using cURL
package_update: true
package_upgrade: true
groups:
- docker
system_info:
@diegopacheco
diegopacheco / vault-sheet.md
Last active September 13, 2019 18:09
Vault Cheat Sheet

Open vault-ui

xdg-open "http://localhost:8200/ui/"

Test Vault login via API

curl --silent -k -X GET -H "X-Vault-Token:00000000-0000-0000-0000-000000000000" 'http://127.0.0.1:8200/v1/auth/token/lookup-self'

Test Read Secret via API

@hossambarakat
hossambarakat / cross-namespace-ingress.md
Created January 25, 2019 12:25
Kubernestes Cross Namespace Ingress

Example

This is simple example showing:

  • Service service-alpha in service-alpha namespace
  • Service service-beta in service-beta namespace
  • Nginx Ingress controller in kube-ingress namespace
  • Ingress called ingress-demo inside service-alpha namespace
  • Ingress called ingress-demo inside service-beta namespace

Steps:

  • Install ingress on AKS. my demo cluster does not have rbac enabled that's why there is => --set rbac.create=false
@dellaporta
dellaporta / bosh_cf_webui_linux.md
Last active October 26, 2024 11:29
Linux: Deploy BOSH Lite for Cloud Foundry to your local space

Deploy BOSH Lite for Cloud Foundry to local space on Linux

Indeed, it seems worthwhile to write down the few steps necessary to install BOSH Lite, to deploy Cloud Foundry (cf), and to push a web console for Cloud Foundry to your local space.

As a software developer you might be interested in a complete and working installation. As a computer geek as myself you might be more kin to know the ingredients of this recipe and the way they combine with each other. In this article I have tried to serve both clients.

In this mixture a few generally available components have found their usage, by the time of writing they were:

$ uname -mrs
Linux 4.15.0-58-generic x86_64

@dellaporta
dellaporta / bosh_cf_webui_macos.md
Last active October 26, 2024 11:28
macOS: Deploy BOSH Lite for Cloud Foundry to your local space

Deploy BOSH Lite for Cloud Foundry to local space on macOS

Indeed, it seems worthwhile to write down the few steps necessary to install BOSH Lite, to deploy Cloud Foundry (cf), and to push a web console for Cloud Foundry to your local space.

As a software developer you might be interested in a complete and working installation. As a computer geek as myself you might be more kin to know the ingredients of this recipe and the way they combine with each other. In this article I have tried to serve both clients.

In this mixture a few generally available components have found their usage, by the time of writing they were:

$ sw_vers
ProductName: Mac OS X

@slmingol
slmingol / 90f3831f-k8s-objects2-timeline-1024x800.png
Last active October 12, 2021 01:16
Kubernetes & OpenShift URLs
90f3831f-k8s-objects2-timeline-1024x800.png
@robscott
robscott / gke-iam-roles.md
Created October 2, 2018 20:20
GKE IAM Roles Compared

GKE IAM Roles

On GKE, there's an interesting overlap between what the IAM roles grant you for Kubernetes clusters. In general, the roles in the tables below line up with each other, but there are some strange exceptions. In each of the tables below are the results of a diff between related IAM roles (only the container.* permissions are included in these results).

Project Owner GKE Admin
container.hostServiceAgent.use
Project Editor GKE Developer
@eruffaldi
eruffaldi / gettoken.sh
Created September 25, 2018 09:23
Google OAuth 2.0 full example bash script.
#!/bin/bash
#1) on https://console.developers.google.com/ register project and associate API from library
# OUTPUT: client_id,client_secret
client_id="..."
client_secret="...."
#2) get authorization code at the following link using web browser
# OUTPUT: code
scope="https://www.googleapis.com/auth/drive"