Skip to content

Instantly share code, notes, and snippets.

@SilverEzhik
SilverEzhik / Fix DuckDuckGo middle click.js
Last active August 29, 2019 14:59
Fix DuckDuckGo middle click. What the heck is that JavaScript madness?
// ==UserScript==
// @name Fix DuckDuckGo middle click
// @description What the heck is that JavaScript madness?
// @include https://*duckduckgo.com/*
// @version 1
// @grant none
// @run-at document-idle
// ==/UserScript==
function undoClicky() {
@SilverEzhik
SilverEzhik / Disable Homebrew auto-update every time you run it.md
Last active February 6, 2020 14:47
Disable Homebrew auto-update every time you run it

Homebrew does something annoying and does its long update process almost every time you run it, which is irritating.

Here's a way to fix it while still keeping auto-updating on.

Add this to your .bashrc or equivalent:

HOMEBREW_NO_AUTO_UPDATE=1
@SilverEzhik
SilverEzhik / Vim Launcher.scpt
Last active May 13, 2023 14:17 — forked from charlietran/TerminalVim.scpt
Double click files to open them in vim in a new iTerm window.
on run {input, parameters}
-- handle opening multiple files
set str to ""
repeat with i from 1 to length of input
set cur to item i of input
set str to str & " " & quote & POSIX path of cur & quote
end repeat
tell application "iTerm"
create window with profile "fast" -- use a profile with a lighter shell
@SilverEzhik
SilverEzhik / Mac OS Mojave Language Switcher (+ more) Dark Menu Bar Fix.txt
Created July 10, 2019 11:32
To fix the language switcher and other stuff like the notifications and Spotlight in Mac OS with hybrid dark mode (dark menu bar and light theme apps), do this.
To fix the language switcher and other stuff like the notifications and Spotlight in Mac OS with hybrid dark mode (dark menu bar and light theme apps), do this:
defaults write com.apple.HIToolbox NSRequiresAquaSystemAppearance -bool no
defaults write com.apple.notificationcenterui NSRequiresAquaSystemAppearance -bool no
defaults write com.apple.menuextra.textinput NSRequiresAquaSystemAppearance -bool no
defaults write com.apple.TISwitcher NSRequiresAquaSystemAppearance -bool no
defaults write com.apple.Spotlight NSRequiresAquaSystemAppearance -bool no