💾 Create APFS RAM disks up to 128 GiB
✅ Safe teardown - unmounts & detaches cleanly
👮🏼♂️ Input validation - enforces valid size and context
The Public APIs repository is manually curated by community members like you and folks working at APILayer. It includes an extensive list of public APIs from many domains that you can use for your own products. Consider it a treasure trove of APIs well-managed by the community over the years.
| [ | |
| "Every year, nearly four million cats are eaten in Asia", | |
| "On average, cats spend 2/3 of every day sleeping", | |
| "Unlike dogs, cats do not have a sweet tooth", | |
| "When a cat chases its prey, it keeps its head level", | |
| "The technical term for a cat's hairball is a bezoar", | |
| "A group of cats is called a clowder", | |
| "Female cats tend to be right pawed, while male cats are more often left pawed", | |
| "A cat cannot climb head first down a tree because its claws are curved the wrong way", | |
| "Cats make about 100 different sounds", |
| #!/usr/bin/env bash | |
| # Normalize --long-flags to -s short ones for use with getopts. | |
| normalize_flags() { | |
| local shortopt longopt | |
| local -a args=() | |
| local -A spec=() | |
| # Process option definitions until we hit the -- separator | |
| while [[ "$#" -gt 0 && "$1" != -- ]]; do |
Hey, everyone! Here are some of the many unblocked game sites I know: LAST UPDATED: 4/2/2024
| #!/bin/bash | |
| TOKEN="xxxxxxxxxxxxxxxxxxx" | |
| ZONE_ID=2222222222222222222222222 | |
| # EMAIL=me@gmail.com | |
| # KEY=11111111111111111111111111 | |
| # Replace with | |
| # -H "X-Auth-Email: ${EMAIL}" \ | |
| # -H "X-Auth-Key: ${KEY}" \ |
| # Manual opt parsing example | |
| # | |
| # Features: | |
| # - supports short and long flags (ie: -v|--verbose) | |
| # - supports short and long key/value options (ie: -f <file> | --filename <file>) | |
| # - supports short and long key/value options with equals assignment (ie: -f=<file> | --filename=<file>) | |
| # - does NOT support short option chaining (ie: -vh) | |
| # - everything after -- is positional even if it looks like an option (ie: -f) | |
| # - once we hit an arg that isn't an option flag, everything after that is considered positional | |
| function optparsing_demo() { |
| """ | |
| Copyright (c) 2022, Zach Lagden | |
| All rights reserved. | |
| """ | |
| import discord | |
| from discord.ext import commands | |
| from datetime import datetime | |
| import coloredlogs |
This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.
| Description | Syntax |
|---|---|
| Get the length of a string | ${#VARNAME} |
| Get a single character | ${VARNAME[index]} |
| # -*- mode: sh -*- | |
| # vim: syn=sh | |
| # check to make sure virtualenv installed | |
| if ! command which -s virtualenv; then | |
| >&2 echo "You don't have virtualenv installed in your path. To install it:" | |
| >&2 echo "pip install virtualenv" | |
| return 1 | |
| fi |