Skip to content

Instantly share code, notes, and snippets.

View prem0132's full-sized avatar

prem prem0132

View GitHub Profile
@prem0132
prem0132 / ubuntu-pod.yaml
Last active July 27, 2024 15:03
run an ubuntu pod for debug
apiVersion: v1
kind: Pod
metadata:
name: ubuntu
namespace: staging
labels:
app: ubuntu
spec:
containers:
- name: ubuntu
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: nginx
spec:
strategy:
type: Recreate
selector:
matchLabels:
@prem0132
prem0132 / load_dotenv.sh
Created January 20, 2022 14:22 — forked from mihow/load_dotenv.sh
Load environment variables from dotenv / .env file in Bash
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
@prem0132
prem0132 / gitlab-move-vars.py
Last active June 3, 2021 04:25
migrate gitlab vars
import gitlab
gl = gitlab.Gitlab('https://gitlab.com', private_token='************')
src_project = gl.projects.get('1111111')
dst_project = gl.groups.get('22222222')
variables = src_project.variables.list(all=True)
for variable in variables:
@prem0132
prem0132 / main.tf
Created May 22, 2020 01:46
Authorize cross-account CEN to VPC and attach the VPC to CEN
provider "alicloud" {
access_key = "xxxxxxxxxxxxxxxxx"
secret_key = "xxxxxxxxxxxxxxxxx"
alias = "alicloud-non-prod"
}
provider "alicloud" {
access_key = "xxxxxxxxxxxxxxxxx"
secret_key = "xxxxxxxxxxxxxxxxx"
alias = "alicloud-prod"
@prem0132
prem0132 / azure-pipelines.yml
Created August 5, 2019 16:48
azure-pipelines.yml for snowflake-dbt-demo
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
@prem0132
prem0132 / sources.list
Created October 29, 2018 15:09
Ubuntu 18.04 Bionic default /etc/apt/sources.list
#deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted