Skip to content

Instantly share code, notes, and snippets.

View weblogix's full-sized avatar

Randy weblogix

View GitHub Profile
@weblogix
weblogix / continuity_handoff_fix.md
Created January 3, 2019 04:54
[Continuity and Handoff fix] #mac

rm -Rf /Library/Preferences/com.apple.Bluetooth.plist

@weblogix
weblogix / 1Password_Canary.md
Last active August 27, 2018 02:49
[Google Chrome tweaks] tweaks to Google Chrome/Canary

Enables 1Password to work with Google Canary

cp ~/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/*.com.agilebits.1password.json  ~/Library/Application\ Support/Google/Chrome\ Canary/NativeMessagingHosts/
@weblogix
weblogix / japanese-chrome-extensions.md
Created July 18, 2018 02:52
[Chrome Extensions for Learning Japanese] #japanese

Chrome Extensions for Learning Japanese

A few useful Chrome extensions that i'm using to help learn Japanese.

  • IPA Furigana - Looks up the readings for kanji words and inserts them as furigana
  • rikaikun - Translate Japanese by hovering over words.
  • Yomichan - Japanese dictionary with Anki integration
  • Wanikanify - Take the kanji you've studied and inject them into the web!
@weblogix
weblogix / bluetooth_reset_settings.sh
Created April 12, 2018 03:54
MacOS Bluetooth reset
# Reset Bluetooth settings on MacOS 10.12 (probably above, too)
sudo rm -f /Library/Preferences/com.apple.Bluetooth.plist
rm -f ~/Library/Preferences/ByHost/com.apple.Bluetooth.*
<Reboot>
@weblogix
weblogix / Configuration.md
Last active September 28, 2020 01:56
[Ubuntu Installation notes] #ubuntu #linux

Mac-like keys

Gnome-tweak-tool

  • Keyboard & Mouse -> Ctrl Position -> Swap Left Win and Left Ctrl
@weblogix
weblogix / injectcssjs.js
Created February 16, 2018 03:39
[Append CSS/JS via Javascript] #js #css
function loadjscssfile(filename, filetype) {
if (filetype == "js") { //if filename is a external JavaScript file
var fileref = document.createElement('script')
fileref.setAttribute("type", "text/javascript")
fileref.setAttribute("src", filename)
} else if (filetype == "css") { //if filename is an external CSS file
var fileref = document.createElement("link")
fileref.setAttribute("rel", "stylesheet")
fileref.setAttribute("type", "text/css")
fileref.setAttribute("href", filename)
@weblogix
weblogix / file.md
Last active January 3, 2019 04:53
Clear MacOS icon cache #mac #icon #cache

sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3; killall Dock; killall Finder

@weblogix
weblogix / conditionals.txt
Last active September 27, 2017 01:52
[Shell Scripting Cheatsheet]
Primary Meaning
[ -a FILE ] True if FILE exists.
[ -b FILE ] True if FILE exists and is a block-special file.
[ -c FILE ] True if FILE exists and is a character-special file.
[ -d FILE ] True if FILE exists and is a directory.
[ -e FILE ] True if FILE exists.
[ -f FILE ] True if FILE exists and is a regular file.
[ -g FILE ] True if FILE exists and its SGID bit is set.
[ -h FILE ] True if FILE exists and is a symbolic link.
[ -k FILE ] True if FILE exists and its sticky bit is set.
@weblogix
weblogix / webdev_tools.md
Last active September 14, 2017 01:19
[Web development services] Useful web development tools & services
@weblogix
weblogix / general-apps.md
Last active June 2, 2023 02:16
[Mac Apps] Essential Mac applications #spotify #apps

Essential Mac applications

Email

  • Mailspring - Productivity focused & cross-platform email client

Organization

  • bitwarden - Open-source cross-platform password manager

Music/Sound

  • eqMac2 - system-wide audio equalizer