Skip to content

Instantly share code, notes, and snippets.

View IOIO72's full-sized avatar
๐Ÿš‚

Tamio Honma IOIO72

๐Ÿš‚
View GitHub Profile
@IOIO72
IOIO72 / arrange_app_windows.sh
Created September 17, 2025 00:24
Predefine an arrangement of windows by app via Aerospace
#!/bin/zsh
# Check if aerospace CLI is installed
if ! command -v aerospace &> /dev/null; then
echo "Error: Aerospace is not installed or not in your PATH." >&2
echo "Please install it with: brew install --cask nikitabobko/tap/aerospace" >&2
exit 1
fi
# Checks if at least one argument was passed.
@IOIO72
IOIO72 / ConditionalWrapper.tsx
Created August 28, 2024 14:59
Wrap React children conditionally
import React, { PropsWithChildren, ReactNode } from 'react';
export interface ConditionalWrapperProps extends PropsWithChildren {
condition: boolean;
wrapper: (a: ReactNode) => {};
}
const ConditionalWrapper: React.FC<ConditionalWrapperProps> = ({
condition,
wrapper,
@IOIO72
IOIO72 / upgrade_casks.sh
Created July 13, 2023 08:32
Homebrew outdated casks greedy with excludes
#!/bin/bash
# List of casks to exclude
excluded_casks=("autodesk-fusion360" "setapp")
# Get the list of outdated casks
outdated_casks=$(brew outdated --casks --greedy --quiet)
# Loop through the outdated casks and upgrade them, excluding the ones in the excluded_casks list
for cask in $outdated_casks; do
@IOIO72
IOIO72 / finished2folders.sh
Last active April 27, 2022 17:13
WHDLoad ZIP to LHA conversion (The A500 mini)
find . -maxdepth 1 -name '*.zip' -exec mvexistsuffix {} zip lha \;
@IOIO72
IOIO72 / quickcam-fusion ubuntu.md
Created November 28, 2020 23:34
Logitech QuickCam Fusion

Device:

046d:08c1 Logitech, Inc. QuickCam Fusion

Microphone works finde on Ubuntu, bute Cheese doesn't show a picture.

Solution: Add your user to the video group and reboot.

$ sudo adduser  video
@IOIO72
IOIO72 / nexdock-dex.md
Last active May 18, 2023 06:43
NexDock Touch Configurations (http://nexdock.com)

Samsung DeX

Because I'm a german user, the screenshots contain the german labels.

Set Mouse Speed

Screenshot_20201102-004740_Settings

Screenshot_20201102-004756_Samsung DeX home

@IOIO72
IOIO72 / activate.js
Last active September 1, 2020 11:03
Alfred Workflow JavaScript Snippets
// Activate App by name
function run(argv) {
const appname = argv[0];
const app = Application(appname);
app.activate();
}
@IOIO72
IOIO72 / clock-wip.markdown
Last active March 31, 2020 00:45
Clock [WIP]
@IOIO72
IOIO72 / index.pug
Last active March 25, 2020 23:45
Wash Hands
h1 Wash your hands
p
a(href="https://www.who.int/gpsc/clean_hands_protection/") WHO: Clean protect against infection
.hands.hands--full-screen
.hand.hand--right
.hand.hand--left