Skip to content

Instantly share code, notes, and snippets.

@yarlson
yarlson / super_spinner.bash
Created January 18, 2022 13:00 — forked from zulaica/super_spinner.bash
Super Spinner: An Emoji-based spinner for bash
###
# Super Spinner
# An emoji-based spinner — because ASCII is boring.
#
# Usage:
# $ COMMAND & superSpinner $! "Message"
#
# Example:
# $ sleep 5 & superSpinner $! "Sleeping for 5 seconds"
#
import os
from flask import Flask, request, redirect
from requests_oauthlib import OAuth1Session
import webbrowser
app = Flask(__name__)
# Your API Key and API Secret Key from the Twitter Developer Dashboard
API_KEY = os.environ.get('CONSUMER_KEY')
@yarlson
yarlson / README.md
Created October 23, 2024 16:42
Docker Image Sync Script

Docker Image Sync Script

Direct host-to-host Docker image transfer utility that preserves layer caching without requiring a registry. Useful for transferring locally built images to remote hosts while maintaining Docker's layer efficiency.

Features

  • Preserves layer caching by transferring only missing layers
  • Parallel blob transfer with SSH optimization
  • No registry required

Usage

@yarlson
yarlson / README.md
Last active July 22, 2025 08:39
ds - Docker Shell Helper

ds - Docker Shell Helper

A simple zsh function for easily shelling into running Docker containers with tab completion.

Installation

Add this to your ~/.zshrc:

# Docker shell helper - shell into running containers