OSの情報を表示する
書式:uname [オプション]
- -m・・・プロセッサのハードウェア名を表示
- -n・・・ネットワークのホスト名を表示
文字列を画面に表示する
書式:echo [オプション] 文字列
#!/bin/bash | |
SCRIPTNAME=$(basename "$0") | |
function realpath () { | |
f=$@; | |
if [ -d "$f" ]; then | |
base=""; | |
dir="$f"; | |
else | |
base="/$(basename "$f")"; |
////////////////////////////////////////////////////////// | |
// Illustratorのアプリケーションデフォルトを調整する(簡易版) | |
////////////////////////////////////////////////////////// | |
with (app.preferences) { | |
/****************************************************/ | |
// 使用歴が長いユーザーはここを変更するとかなり使いやすくなる | |
//一般 > 詳細なツールヒントを表示 OFF |
import Foundation | |
/// 設定のデフォルト値 | |
// (ə)のような括弧で囲まれた発音記号の扱い | |
enum ParenTreatment: Int { | |
case none = 1, // そのまま | |
flatten, // 括弧を開く | |
remove // 発音記号ごと削除する | |
} | |
// デフォルトは(ə)などはそのまま |
1. Adobe-Japan1のUniJIS2004でデフォルトグリフが全角グリフのコードポイント。 | |
2. UniJIS2004でデフォルトグリフがプロポーショナルの4つの引用符「‘ ’ “ ”」を追加。 | |
3. Unicodeのすべての漢字のコードポイントを追加。 | |
上記から重複を除いた全角文字総数は95495個。 | |
↓正規表現 | |
[\x{00A7}-\x{00A8}\x{00B0}-\x{00B1}\x{00B4}\x{00B6}\x{00D7}\x{00F7}\x{0386}\x{0388}-\x{038A}\x{038C}\x{038E}-\x{03A1}\x{03A3}-\x{03CE}\x{03D0}-\x{03D1}\x{03D5}\x{03DB}\x{0401}-\x{040C}\x{040E}-\x{044F}\x{0451}-\x{045C}\x{045E}-\x{045F}\x{2003}\x{2010}\x{2015}-\x{2016}\x{2018}-\x{2019}\x{201C}-\x{201D}\x{2020}-\x{2021}\x{2025}-\x{2026}\x{2030}\x{2032}-\x{2033}\x{203B}-\x{203C}\x{2042}\x{2047}-\x{2049}\x{2051}\x{205A}\x{205D}\x{20DD}-\x{20DE}\x{2100}\x{2103}\x{2105}\x{2109}-\x{210A}\x{210F}\x{2113}\x{2116}\x{2121}\x{212B}\x{2135}\x{213B}\x{2150}-\x{2152}\x{2156}-\x{215A}\x{2160}-\x{216B}\x{2170}-\x{217B}\x{217F}\x{2189}\x{2190}-\x{2194}\x{2196}-\x{2199}\x{21C4}-\x{21C6}\x{21CB}-\x{21CC}\x{21D0}\x{21D2}\x{21D4}\x{21E6}-\x{21E9}\x{21F5}\x{2200}\x{2202}-\x{2203}\x{2205}\x{2207}-\x{2208}\x{220A}-\x{220B}\x{2211}-\x{2213}\x{221A}\x{221D}-\x{2220}\x{2227} |
#!/bin/bash | |
sudo diskutil repairPermissions / | |
qlmanage -r | |
qlmanage -r cache | |
rm -rf ~/Library/Preferences/com.apple.quicklook.ui.helper.plist | |
rm -rf ~/Library/Preferences/com.apple.quicklookconfig.plist | |
rm -rf ~/Library/Preferences/com.apple.QuickLookDaemon.plist |
--[[ Live-updating floating windows at your service! | |
https://www.hammerspoon.org/docs/hs.window.html | |
https://www.hammerspoon.org/docs/hs.canvas.html | |
https://www.hammerspoon.org/docs/hs.image.html | |
https://www.hammerspoon.org/docs/hs.mouse.html | |
https://www.hammerspoon.org/docs/hs.timer.html | |
https://www.lua.org/manual/5.4/manual.html#6.2 (coroutines) | |
https://github.com/Hammerspoon/hammerspoon/issues/2710#issuecomment-788266990 (thanks @asmagill) |
// ==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 = {}; |
// テキストが見つかったときに 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); |
# /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 |