Skip to content

Instantly share code, notes, and snippets.

View glimpsed's full-sized avatar

Sergiu Gâtlan glimpsed

View GitHub Profile
Can't Copy/Paste in Google Docs on Firefox:
Set dom.event.clipboardevents.enabled on about:config to true
Speed-up Firefox's awesome bar / location bar:
browser.urlbar.delay to 0 speeds up the search response
layout.frame_rate 60
In "about:config" change "layout.frame_rate" from -1 to 60 (or whatever your monitor runs at).
For some stupid reason, Firefox renders as fast as your CPU can handle 100% of the time.
Even at 60 FPS, it uses ~1% CPU when idle so I'm guessing it was going like 6000FPS when unrestrained.
@glimpsed
glimpsed / Selective VPN traffic routes.txt
Last active April 27, 2023 09:22
How to route network traffic through a VPN (OpenVPN/TunnelBlick) ONLY for specific websites/IPs only on macOS / OS X (static routing)
Add the following line at the top of your .ovpnfile to prevent it from routing all network traffic on your Mac through
the VPN:
route-nopull
Next add the following line to allow the VPN to reroute traffic ONLY for a given IP address / domain (if you need to enable it
for a domain you can use its IP address):
route 1.2.3.4
@glimpsed
glimpsed / Hide macOS Dock icons
Created June 21, 2022 17:25
How to hide macOS Dock icons
Use native PlistBuddy command to do it:
/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/[AppName].app/Contents/Info.plist
Don't forget to change the [App Name].
If you wish gonna back, run command:
/usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/[AppName].app/Contents/Info.plist
via https://apple.stackexchange.com/a/349641
@glimpsed
glimpsed / Fix drag and drop broken in macOS
Created June 19, 2022 10:48
Fix drag and drop broken in macOS AKA drag and dropped files/folders getting stuck to the mouse pointer in macOS
Right click and copy a file or a folder, then right click to paste it in the target destination.
This should kick start the ability to drag and drop once again.
@glimpsed
glimpsed / Block Spotify updates.txt
Created September 1, 2021 17:06
Block Spotify updates
Open Admin Command Prompt and type these commands one by one:
del %localappdata%\Spotify\Update
mkdir %localappdata%\Spotify\Update
icacls %localappdata%\Spotify\Update /deny "%username%":D
icacls %localappdata%\Spotify\Update /deny "%username%":R
Description of given commands:
Removes directory C:\Users\<your username>\AppData\Spotify\Update
@glimpsed
glimpsed / Fix Windows 10 Bluetooth toggle not appearing
Last active July 26, 2020 17:16
Fix Windows 10 Bluetooth toggle not appearing
Turn off windows 10 fast-startup and then turn off your computer then on again. steps:
WinKey -> type to search "Power & sleep settings"
"additional power settings"
"choose what the power buttons do"
"change settings that are currently unavailable"
untick "Turn on fast startup"
Save changes
turn off computer then turn it on
#!/usr/bin/env bash
# ~/.macos — https://mths.be/macos
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
# Ask for the administrator password upfront
sudo -v
@glimpsed
glimpsed / null root containers (removed duplicates)
Created May 20, 2019 22:22
Null root containers (removed duplicates)
18fgsa/s3-resource-simple - root:::0:::::
a5huynh/oauth2_proxy - root:::0:::::
acaleph/consul-alerts - root:::0:::::
aequitas/ftp-resource - root:::0:::::
allinurl/goaccess - root:::0:::::
alpine/socat - root:::0:::::
anapsix/alpine-java - root:::0:::::
andyshinn/dnsmasq - root:::0:::::
appropriate/curl - root:::0:::::
avhost/docker-matrix-riot - root:::0:::::
@glimpsed
glimpsed / etc-hosts-on-win.md
Created March 6, 2019 02:05 — forked from zenorocha/etc-hosts-on-win.md
/etc/hosts on Windows

1. Get your IP Address

echo `ifconfig $(netstat -nr | grep -e default -e "^0\.0\.0\.0" | head -1 | awk '{print $NF}') | grep -e "inet " | sed -e 's/.*inet //' -e 's/ .*//' -e 's/.*\://'`

2. Modify your hosts file

notepad

@glimpsed
glimpsed / BACKUP DNS
Last active February 6, 2019 16:27
Backup dns servers
CloudFlare:(SPEED):
1.1.1.1
1.0.0.1
IBM Quad9 (FILTERING):
9.9.9.9
Google:
8.8.8.8
8.8.4.4