Skip to content

Instantly share code, notes, and snippets.

View feedly-colorful-list-view.user.js
// ==UserScript==
// @name Feedly Colorful Listview
// @namespace http://feedly.colorful.list.view
// @description Colorizes items headers based on their source
// @include http*://feedly.com/*
// @include http*://*.feedly.com/*
// @version 0.11.3
// ==/UserScript==
const colors = {};
@kingtosh
kingtosh / user.js
Created Aug 29, 2022 — forked from myaumyau/user.js
Firefox user.js
View user.js
// テキストが見つかったときに Find Toolbar をフラッシュするか。
// 0: Find Toolbar は前から前からフラッシュしており、見つかったときにフラッシュしない
// 1: 見つかったときに Find Toolbarフラッシュする。
user_pref("accessibility.typeaheadfind.flashBar", 0);
// 自動更新
user_pref("app.update.auto", false);
// タブプレビュー機能
user_pref("browser.ctrlTab.previews", true);
@kingtosh
kingtosh / nsmb.conf
Created Aug 3, 2022 — forked from jbfriedrich/nsmb.conf
macOS 11.2 NSMB configuration
View nsmb.conf
# /etc/nsmb.conf - macOS 11.3 - 2021-04-29
#------------------------------------------------------------------------------
# SMB configuration for macOS 11.3 <-> Synology
#------------------------------------------------------------------------------
# Additional information:
# -----------------------
# https://support.apple.com/de-de/HT211927
# https://support.apple.com/en-us/HT208209
# https://apple.stackexchange.com/questions/309016/smb-share-deadlocks-since-high-sierra
# https://photographylife.com/afp-vs-nfs-vs-smb-performance
View References For Learning & Using Applescript.md

REFERENCES FOR LEARNING & USING APPLESCRIPT Modified: 2018/06/19 18:47


NOTES

AppleScript is a rather peculiar scripting language to learn.

@kingtosh
kingtosh / kensington-trackball.json
Created Jun 21, 2022 — forked from matsuoshi/kensington-trackball.json
Karabiner setting, for Kensington Trackball
View kensington-trackball.json
{
"title": "for Kensington Trackball",
"rules": [
{
"description": "L_btn + R_btn to Button 2",
"manipulators": [
{
"type": "basic",
"from": {
"simultaneous": [
@kingtosh
kingtosh / 0-README.md
Created Jun 4, 2022 — forked from mattintosh4/0-README.md
Automator 用シェルクリプト集 その1
View 0-README.md

Shell script for Automator Part.1

Automator のシェルスクリプトアクションで使えるサンプル集です。「アプリケーション」や「サービス」を作成するときにどうぞ。


入力の種類について

@kingtosh
kingtosh / launchd_memo.md
Created Apr 26, 2022 — forked from kozy4324/launchd_memo.md
launchd, launchctlについて(導入編)
View launchd_memo.md

launchd, launchctl

man

$ man launchd
$ man launchctl
$ man launchd.plist

$ man plutil

View Take control of macOS
csrutil disable
sudo nvram boot-args="intcoproc_unrestricted=1 kext-dev-mode=1 amfi_allow_any_signature=1 amfi_unrestrict_task_for_pid=1 PE_i_can_has_debugger=1 cs_enforcement_disable=1 amfi_get_out_of_my_way=0x1 amfi=0xff"
sudo spctl --master-disable
sudo defaults write /Library/Preferences/com.apple.security.coderequirements Entitlements -string always
sudo defaults write /Library/Preferences/com.apple.security.coderequirements AllowUnsafeDynamicLinking -bool YES
sudo defaults write /Library/Preferences/com.apple.security.libraryvalidation.plist DisableLibraryValidation -bool YES
View Run Menu Item - Collapse All Groups.jsx
/* An example of running a menu item command.
Use Script Listener to find the menu name, often by inserting the menu command into an action */
// Collapse all layer groups/sets
app.runMenuItem(stringIDToTypeID('collapseAllGroupsEvent'));
// another example:
// More info:
@kingtosh
kingtosh / createramdiskatboot.command
Created Apr 15, 2022 — forked from Egregius/createramdiskatboot.command
Use RAM disk for macOS caches and logs
View createramdiskatboot.command
#!/bin/bash
while [ ! -d /Volumes ]
do
echo "waiting..."
sleep 0.5
done
if [ ! -d /Volumes/RamDisk ]; then
echo "creating ramdisk..."
sleep 0.5
diskutil partitionDisk $(hdiutil attach -nomount ram://$((2048*16000))) 1 GPTFormat APFS 'RamDisk' '100%'