Skip to content

Instantly share code, notes, and snippets.

Fire up Lando!

Ensure all projects are up and running.

Seed data

You first need to put some users in the database. You do this by running this test command from inside your panda directory: lando yarn test:seed

This will out the users added to your screen.

@missioncloud
missioncloud / delete_recovery_points.py
Created April 20, 2019 20:08
Simple Python3 script to remove recovery points from an AWS Backup Vault. Used as an interim solution until a `force_delete` option becomes available.
import boto3
from time import sleep
from sys import argv
def get_recovery_points(vault_name: str) -> list:
pagination = True
restore_points = []
b = boto3.client('backup')
@michal-wrzosek
michal-wrzosek / api.Dockerfile
Created December 3, 2019 02:05
yarn workspaces and Docker
FROM node:10-alpine as build
WORKDIR /usr/src/app
COPY package.json .
COPY yarn.lock .
COPY packages/shared ./packages/shared
COPY packages/api ./packages/api
RUN yarn install --pure-lockfile --non-interactive
@xeoncross
xeoncross / mysql.py
Last active January 20, 2025 14:23
Example database class for wrapping mysql-connector for python
import mysql.connector
# from mysql.connector import Error
# pip3 install mysql-connector
# https://dev.mysql.com/doc/connector-python/en/connector-python-reference.html
class DB():
def __init__(self, config):
self.connection = None
self.connection = mysql.connector.connect(**config)
@dmitry-mukhin
dmitry-mukhin / list_cvs.py
Created August 31, 2022 12:05
Get all Uploadcare files in CVS
### Get all files stored in your Uploadcare project in CSV.
import pyuploadcare
import csv
from pyuploadcare import Uploadcare
uploadcare = Uploadcare(public_key='public',
secret_key='secret')