Skip to content

Instantly share code, notes, and snippets.

View davidshare's full-sized avatar
💭
DevOps Engineer/Software Developer

David Itam Essien davidshare

💭
DevOps Engineer/Software Developer
View GitHub Profile
@davidshare
davidshare / Jenkins file
Created August 9, 2019 15:59
Declarative jenkins pipeline
```#!groovy
// define the images and resources to be used in running the pipeline
pipeline {
agent {
kubernetes {
label 'proj-backend-agent'
defaultContainer 'jnlp'
yaml """
apiVersion: v1
@davidshare
davidshare / env-to-kubernetes-secret.bash
Last active December 24, 2021 04:15
A simple bash script that takes a .env file with key and value separated by "=". It base64 encodes the value and produces a key value pair separated by a colon
#!/bin/bash
input="env_file_path"
secret_name="my-secret_name"
rm ./deployment_env.yaml ./secret_pair.txt
while IFS='=' read -r key value
do
if [[ ! -z "$key" && ! -z "$value" && "$key" != "#"* ]]
then
encoded=$(echo -n "$value" | base64 -w0)

Keybase proof

I hereby claim:

  • I am davidshare on github.
  • I am davidessien (https://keybase.io/davidessien) on keybase.
  • I have a public key ASAHz1FqtTa4qUwjpIBGO5Np6KcusJS8fNoNM9pgirHLHAo

To claim this, I am signing this object:

@davidshare
davidshare / blog resources.md
Created November 26, 2021 07:02
Resources for blogging
@davidshare
davidshare / index.css
Last active March 16, 2022 15:49
Edward speak boot camp first task
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
*,
*::before,
*::after {
margin: 0;
padding: 0;
outline: 0;
box-sizing: border-box;
text-decoration: none;
@davidshare
davidshare / index.css
Created April 8, 2022 19:34
The html for my portfolio site
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
*,
*::before,
*::after {
margin: 0;
padding: 0;
outline: 0;
box-sizing: border-box;
text-decoration: none;
list-style: none;
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 10
selector:
matchLabels:
// app/(dashboard)/journals/new/pages.tsx
import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from "@/components/ui/resizable";
const NewJournal = () => {
return (