Skip to content

Instantly share code, notes, and snippets.

View UkemeSkywalker's full-sized avatar

Ukeme David Eseme UkemeSkywalker

View GitHub Profile
# Dependencies
FROM node:20-alpine AS deps
WORKDIR /app
COPY package*.json ./
RUN npm ci
# Builder
FROM node:20-alpine AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
apiVersion: batch/v1
kind: CronJob
metadata:
name: juno-backup
spec:
schedule: "0/1 * * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
@UkemeSkywalker
UkemeSkywalker / old-cronjob-backup.yaml
Created January 17, 2024 12:27
Old Cronjob Backup
apiVersion: batch/v1
kind: CronJob
metadata:
name: juno-backup
spec:
schedule: "0/1 * * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
@UkemeSkywalker
UkemeSkywalker / backup-cronjob.yaml
Created January 13, 2024 20:24
This manifest is meant to clone a pvc, then run a pod with that pvc, archive the pvc data as a tarball, then push it to cloud storage using rclone
apiVersion: batch/v1
kind: CronJob
metadata:
name: juno-backup
spec:
schedule: "0/1 * * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
# Used by `image`, `push` & `deploy` targets, override as required
IMAGE_REG ?= ghcr.io
IMAGE_REPO ?= benc-uk/python-demoapp
IMAGE_TAG ?= latest
# Used by `deploy` target, sets Azure webap defaults, override as required
AZURE_RES_GROUP ?= temp-demoapps
AZURE_REGION ?= uksouth
AZURE_SITE_NAME ?= pythonapp-$(shell git rev-parse --short HEAD)
// SPDX-License-Identifier: GPT-3
pragma solidity ^0.8.4;
contract todo{
struct todoItem {
string itemTitle;
string creator;
bool checked;
//import ethers from "ethers";
const { ethers } = require("ethers")
const abi =require('./abi.json')
const providerUrl = 'https://eth-mainnet.g.alchemy.com/v2/r6kmiWHx9rjvq823B9Ka4-7I-sCS3yR6'
const contractAddress='0xdAC17F958D2ee523a2206206994597C13D831ec7'
const getSomething =()=>{
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
contract blog {
address owner;
struct blogTemplate{
string postTitle;