Skip to content

Instantly share code, notes, and snippets.

@jamesgpearce
jamesgpearce / App.js
Last active June 22, 2025 21:18
Modified version of TinyBase Expo example to demonstrate synchronization. This updates https://github.com/expo/examples/tree/master/with-tinybase
import { useCallback, useState } from 'react';
import * as SQLite from 'expo-sqlite';
import {
FlatList,
Platform,
StyleSheet,
Text,
TextInput,
TouchableOpacity,
} from 'react-native';
#!/bin/zsh
# Fetch changes from the remote repository and prune (delete) remote tracking branches that no longer exist on the remote
git fetch --prune && \
# Display a list of local branches and their associated remote branches
git branch -vv | \
# Extract lines related to deleted remote branches
grep ': gone]' | \
# Extract branch names from the lines that were extracted
awk '{print $1}' | \
@jgrodziski
jgrodziski / docker-aliases.sh
Last active July 6, 2025 04:58
Useful Docker Aliases
############################################################################
# #
# ------- Useful Docker Aliases -------- #
# #
# # Installation : #
# copy/paste these lines into your .bashrc or .zshrc file or just #
# type the following in your current shell to try it out: #
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash
# #
# # Usage: #