Skip to content

Instantly share code, notes, and snippets.

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

Reberth reberthkss

🏠
Working from home
View GitHub Profile
@reberthkss
reberthkss / SKILL.md
Created April 20, 2026 00:24
SQLite-to-postgress for python projects SKILL
name sqlite-to-postgres
description Migrate a Python app from SQLite to PostgreSQL with zero-downtime production cutover. Covers planning, parallel backend, cutover runbook, cleanup, and the common incidents that bite real migrations. Use when user says "migrate sqlite to postgres", "postgres migration", "db cutover", or hits the sqlite3 concurrency bug (singleton + threadpool race).
allowed-tools Bash, Read, Write, Edit, Glob, Grep, Agent

SQLite → PostgreSQL Migration Playbook

Battle-tested 4-PR structure. Zero downtime. 7-day rollback window. Works for any Python sync-sqlite3 codebase regardless of framework (FastAPI / Flask / Django / bare asyncio).

from src.entities.errors.NotFoundTodoItem import NotFoundTodoItem
from src.usecases.errors.invalidusererror import InvalidUserError
from src.entities.todolist import TodoList
from src.usecases.ports.todolistrepository import TodoListRepository
class DeleteTodoItem:
def __init__(self, todolistrepository):
self.todolistrepository: TodoListRepository = todolistrepository
plugins {
...
}
android {
...
}
dependencies {
import React, {createContext, useCallback, useContext, useEffect, useMemo, useState} from "react";
import NetInfo, {NetInfoState} from "@react-native-community/netinfo";
import changeNavigationBarColor from "react-native-navigation-bar-color";
interface NetworkState {
readonly networkState: NetInfoState | null
}
interface NetworkAction {
isConnected: () => Boolean
import React, {createContext, useCallback, useContext, useEffect, useMemo, useState,} from 'react';
import {PlayerTemplate} from "../../player_template";
import {useSafeNetworkContext} from "../../../../context/NetworkContextProvider";
interface PlayerState {
paused: boolean;
muted: boolean;
volume: number;
maxVolume: number,
minVolume: number,
const BasicPlayer = () => {
const player = useSafePlayer();
const remoteURL =
'';
useEffect(() => {
MusicControl.enableBackgroundMode(true);
// MusicControl.handleAudioInterruptions(true);
// Basic Controls
MusicControl.enableControl('play', true)
data class TodoDetail (
val title: String,
val description: String
)
class TodoDetailViewModel: ViewModel() {
private val _state = MutableLiveData<String>()
val state: LiveData<String>
get() = _state
private val _detailError = MutableLiveData<Throwable>()
import * as functions from "firebase-functions";
import * as admin from "firebase-admin"
const express = require('express');
const app = express();
const firebaseApp = admin.initializeApp();
// @ts-ignore
app.get("/:notificationType/:summonerName", async (req, res) => {
try {
import React, {createContext, useCallback, useContext, useMemo, useState} from "react";
import { Auth } from "aws-amplify";
export enum AuthenticationStatus {
UNAUTHENTICATED,
SIGNING_IN,
WAITING_OTP,
CONFIRMING_OTP,
APPROVED_OTP,
AUTHENTICATED,