Skip to content

Instantly share code, notes, and snippets.

@jbfriedrich
jbfriedrich / nsmb.conf
Last active April 19, 2024 17:34
macOS 11.2 NSMB configuration
# /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
@doraTeX
doraTeX / ocr.sh
Last active April 19, 2024 13:04
A shell script to perform OCR on images/PDFs using macOS built-in OCR engine
#!/bin/bash
SCRIPTNAME=$(basename "$0")
function realpath () {
f=$@;
if [ -d "$f" ]; then
base="";
dir="$f";
else
base="/$(basename "$f")";
@rmcdongit
rmcdongit / macOS_SytemPrefs.md
Last active April 19, 2024 05:35
Apple System Preferences URL Schemes

macOS 10.15 System Preference Panes

Below are a list of System Preference pane URLs and paths that can be accessed with scripting to assist users with enabling macOS security settings without having to walk them through launching System Preferences, finding panes, and scrolling to settings. Not all panes have an accessible anchor and some are OS specific.

To find the Pane ID of a specific pane, open the System Preferences app and select the desired Preference Pane. With the pane selected, open the ScriptEditor.app and run the following script to copy the current Pane ID to your clipboard and display any available anchors:

tell application "System Preferences"
	set CurrentPane to the id of the current pane
	set the clipboard to CurrentPane
@monokano
monokano / 本当の標準字形に戻す.jsx
Last active April 17, 2024 20:44
Illustratorの選択テキストを本当の標準字形に戻すスクリプト
//Illustratorの選択テキストを本当の標準字形に戻す
var selObj = activeDocument.selection;
if (selObj.length > 0) {
//オブジェクト選択
for (var i = 0; i < selObj.length; i++) {
if (selObj[i] != undefined){
if (selObj[i].typename== "TextFrame") {
var myText = selObj[i].textRange;
@MightyPork
MightyPork / usb_hid_keys.h
Last active April 17, 2024 19:25
USB HID Keyboard scan codes
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/
@monokano
monokano / InDesignデフォルト調整.jsx
Last active April 17, 2024 12:42
InDesignのアプリケーションデフォルトを調整するスクリプト
//////////////////////////////////////////////////////////
// InDesignのアプリケーションデフォルトを調整する
//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
// 全バージョン共通
//すべての黒を正確に表示
with (app.colorSettings) {
idealizedBlackToScreen=false; //スクリーン
@sscotth
sscotth / keystroke the clipboard extended.workflow
Last active April 17, 2024 12:21
Paste as keystrokes (macOS)
# Why?
# To paste text into windows that normally don't allow it or have access to the clipboard.
# Examples: Virtual machines that do not yet have tools installed, websites that hijack paste
#
# Extended vs Simple?
# * Includes an initial delay to allow you to change active windows
# * Adds small delay between keypresses for slower responding windows like SSH sessions
# * Better handling of numbers
# * VMWare bug fix
#
@ChristopherA
ChristopherA / macOS-Preferences-Defaults.sh
Last active April 17, 2024 11:06
macOS Preferences Defaults
#!/usr/bin/env zsh
#===========================================================================
# * INFO
#
# macOS Preferences Defaults
# By Christopher Allen @ChristopherA https://github.com/christophera/
# My most basic macOS preferences, in this gist to make it easy to load on
# multiple machines and VMs. Ideally runs on all macOS versions since Yosemite,
@teriyakichan
teriyakichan / helixfonteditor.html
Last active April 14, 2024 15:31
Font editor for Helix keyboard.
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8"/>
<title>Helix Font Editor</title>
<script>
var colmax = 32;
var rowmax = 7;
var fontw = 6;
var fonth = 8;
@Tosainu
Tosainu / cute_AA.txt
Last active April 12, 2024 21:36
顔文字詰め合わせ
あせ (・_・;) 顔文字
あせ (・∀・;) 顔文字
あせ (^ω^;;) 顔文字
あせ (゚∀゚ ;) 顔文字
あせ (゚∀゚ ;)タラー 顔文字
あたふた ヽ(´・ω・`ヽ) 顔文字
あつい (。>﹏<) 顔文字
あつい (。>﹏<)あㄘ”ゅい 顔文字
あつい (>﹏<。Ξ。>﹏<) 顔文字
あつい ι(´Д`υ) 顔文字