Skip to content

Instantly share code, notes, and snippets.

@gabe565
gabe565 / change-arc-icon.md
Last active August 23, 2024 18:36
Change Arc Browser Icon

Change Arc Browser Icon

arc

A collection of commands that change the Arc Browser icon on macOS.

Commands

Theme Command
Candy Arc defaults write company.thebrowser.Browser currentAppIconName candy
@santaklouse
santaklouse / CrossOver.sh
Last active August 24, 2024 08:56
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS
@haxibami
haxibami / gdrive-dl.md
Created April 18, 2022 10:53
GoogleDriveで閲覧できる任意の動画をダウンロードする

Google Drive で閲覧できる任意の動画をダウンロードする

概要

youtube-dl のフォークであるyt-dlpには、ブラウザの Cookie を抽出してアクセスに使用する機能(--cookies-from-browser)が付加されている。これを使うと、Google Drive で自らのアカウントが閲覧できる任意の動画を(設定の如何にかかわらず)ダウンロードできる。この意味するところは各自考えられたし。1

必要なもの

Footnotes

  1. というかこんなものを使わなくても、手の込んだ JS やら DRM やらがない時点で <video> 要素から引っ張り放題ではある。

@Yarakashi-Kikohshi
Yarakashi-Kikohshi / BB-symbol.md
Last active April 16, 2024 11:32
黒板文字を使いたい

Blackboard Bold Symbol

黒板太字(Blackboard Bold) や重ね打ち体(doublestroke) と呼ばれる二重線で書かれるようなアルファベットを数式で利用したい.

もっとも標準的に黒板太字を利用する方法は,amsfonts(あるいはamssymb) を読み込むことである.1

Exsample

Footnotes

  1. amssymb を読み込むとamsfonts が読み込まれる.

@Dids
Dids / IPA_Install_Apple_Silicon.md
Last active July 3, 2024 21:14
Installing IPAs on the M1

Installing IPAs on Apple Silicon (M1)

  1. Open Apple Configurator 2 and plug in your iPhone or iPad
  2. Click Add, login to the App Store and select the application you want to install
  3. Open up ~/Library/Group\ Containers/K36BKF7T3D.group.com.apple.configurator/Library/Caches/Assets and wait until the TemporaryItems directory appears
  4. Copy the application from the newly created temporary directory, but do note that it will disappear once Apple Configurator is done installing
  5. Double click the .ipa on your Apple Silicon (M1) device and install it
  6. Fix permissions on the installed application by running sudo xattr -rd com.apple.quarantine /Applications/<your_app>.app (if you skip this step, you're unable to start the application)

Note that it's easier if you already have the application installed, as Apple Configurator will prompt you about overwriting the existing installation, at which point the temporary file (the .ipa) will still exist, until you choose an action in the prompt.

@t3yamoto
t3yamoto / index.md
Last active July 8, 2024 11:20
Boxで開いているフォルダをBoxDrive(Finder)で開きたい時に便利なブックマークレット

Boxで開いているフォルダをBoxDrive(Finder)で開きたい時に便利なブックマークレット

以下の様に、ブラウザでBoxのフォルダを開いている時に、当該フォルダをBoxDrive(Finder)で開きたくなることがある。そんな時にこのブックマークレットを使用すれば、いい感じにパスをコピーできる。

6A4A264E-CB08-4D8C-8CE5-A0024379A771

インストール方法

以下のスクリプトをChromeのブックマークに任意の名前で登録する。 ([ブックマークマネージャー] > [新しいブックマークを登録])

@sharunkumar
sharunkumar / adb-dns.bat
Created February 7, 2020 07:08
Enabling / Disabling private DNS in android via ADB
rem to disable private dns
adb shell settings put global private_dns_mode off
rem to enable private dns with hostname (example with dns.adguard.com)
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier dns.adguard.com
@dannote
dannote / final-cut-pro-trial-reset.swift
Last active August 2, 2024 15:28
Final Cut Pro X trial reset
#!/usr/bin/swift
import Foundation
let path = URL(fileURLWithPath: NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath)
let data = try! NSData(contentsOf: path) as Data
let dictionary = try! NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as! NSDictionary
let mutableDictionary = dictionary.mutableCopy() as! NSMutableDictionary
for (key, value) in mutableDictionary {
@gdurastanti
gdurastanti / parallels-reset.sh
Created August 9, 2017 14:00
Reset Parallels' trial
#!/bin/sh
# Reset Parallels Desktop's trial and generate a casual email address to register a new user
rm /private/var/root/Library/Preferences/com.parallels.desktop.plist /Library/Preferences/Parallels/licenses.xml
jot -w pdu%d@gmail.com -r 1