Shortcuts.appでShell Scriptを実行する際、/opt/homebrew/bin
にパスが通らない問題があった。
スクリプトの先頭行に以下の一文を追記して解決した。
PATH=$PATH:/opt/homebrew/bin
#!/usr/bin/env python3 | |
import subprocess | |
import plistlib | |
import time | |
def send_notification(title, message, sound=None): | |
command = 'display notification "{}" with title "{}" sound name "{}"'\ | |
.format(message, title, sound) \ |
<!-- | |
Generated with: https://hidutil-generator.netlify.app/ | |
Put in new file: ~/Library/LaunchAgents/com.local.KeyRemapping.plist | |
load with: | |
$ launchctl load ~/Library/LaunchAgents/com.local.KeyRemapping.plist | |
unload with (if you change it): | |
$ launchctl unload ~/Library/LaunchAgents/com.local.KeyRemapping.plist | |
should preserve through reboots. |
/** | |
* @file captureFont.jsxで記憶したフォントを選択しているテキストに適用する | |
* @version 1.0.0 | |
* @author sttk3.com | |
* @copyright © 2023 sttk3.com | |
*/ | |
//@target 'illustrator' | |
//@targetengine 'com.sttk3.attributes' |
/** | |
* @file 選択しているテキストのフォントをtargetengineに記憶する。pasteFont.jsxとセットで利用する | |
* @version 1.0.0 | |
* @author sttk3.com | |
* @copyright © 2023 sttk3.com | |
*/ | |
//@target 'illustrator' | |
//@targetengine 'com.sttk3.attributes' |
#!/bin/bash | |
SCRIPTNAME=$(basename "$0") | |
function realpath () { | |
f=$@; | |
if [ -d "$f" ]; then | |
base=""; | |
dir="$f"; | |
else | |
base="/$(basename "$f")"; |
#!/bin/bash | |
# Extract AMFIPass.kext | |
# By chris1111 | |
# get AMFIPass path | |
if [ "$2" == "" ]; then | |
echo -n "Please move to terminal window ➤ \ OpenCore-Patcher.app \ | |
Followed by ENTER: " |
/* | |
Description: Adds the filenames of linked or embedded images on top | |
Author: Sergey Osokin, email: hi@sergosokin.ru | |
Check my other scripts: https://github.com/creold | |
Donate (optional): | |
If you find this script helpful, you can buy me a coffee | |
- via Buymeacoffee: https://www.buymeacoffee.com/aiscripts | |
- via FanTalks https://fantalks.io/r/sergey | |
- via DonatePay https://new.donatepay.ru/en/@osokin |
/* | |
copyColorsToClipboard.jsx by https://github.com/Inventsable | |
For revisions email: tom@inventsable.cc | |
Illustrator script to copy selected color values in the form [TYPE]=[VALUES] to a user's clipboard, | |
preferring SPOT color names over values | |
Discussion: https://community.adobe.com/t5/illustrator-discussions/copy-color-values-to-clipboard/m-p/13791617 | |
Modification by Sergey Osokin, https://github.com/creold: | |
- Added path collection within groups |
// ==UserScript== | |
// @name Bing Chat IME fix | |
// @namespace https://gist.github.com/koseki/d377f8f2e6df6655a1e160a4e03421d1 | |
// @version 0.4 | |
// @description macOS の Edge で Bing chat を使うと日本語入力確定時に勝手に送信されてしまう問題の対応です | |
// @author koseki | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net | |
// @match https://www.bing.com/* | |
// @grant none | |
// ==/UserScript== |