Skip to content

Instantly share code, notes, and snippets.

View glimpsed's full-sized avatar

Sergiu Gâtlan glimpsed

View GitHub Profile
@glimpsed
glimpsed / brew.sh
Last active October 17, 2016 03:57
Homebrew maintenance & OS X apps installation
#!/usr/bin/env bash
brew update
# Upgrade already-installed formulae.
brew upgrade --all
# Install apps
brew install wget firefox vlc dropbox filezilla the-unarchiver tunnelblick virtualbox seashore appcleaner adium fog beardedspice cdock the-escapers-flux maintenance progressive-downloader
#!/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 / 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 / vbox.sh
Created September 26, 2016 10:13
Fix permissions for Virtualbox failing to launch on macOS Sierra (org.virtualbox.app.VirtualBox Service exited with abnormal code: 1)
for bin in VirtualBox VirtualBoxVM VBoxNetAdpCtl VBoxNetDHCP VBoxNetNAT VBoxHeadless; do
sudo chmod u+s "/Applications/VirtualBox.app/Contents/MacOS/${bin}"
done

Keybase proof

I hereby claim:

  • I am glimpsed on github.
  • I am serghei (https://keybase.io/serghei) on keybase.
  • I have a public key ASDcYh6NEF0KSc8Vb5bRvRWIx4ddhtDtyRAKohJPATqYWQo

To claim this, I am signing this object:

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 / OS X tips and tricks
Last active March 8, 2018 03:58
OS X tips and tricks
Fix slow Finder:
rm ~/Library/Caches/CloudKit/CloudKitMetadata*;killall cloudd
Fix macOS not remembering keyboard shortcuts:
rm ~/Library/Preferences/com.apple.symbolichotkeys.plist
rm ~/Library/Preferences/com.apple.symbolichotkeys.plist.lockfile
log out
set keyboard shortcuts
log out
@glimpsed
glimpsed / brutal-terminal-stuff
Created April 10, 2015 08:53
brutal command-line stuff
sudo pkill -9 -v python
translation: "as the superuser, kill, with extreme prejudice, every process which is not python".
@glimpsed
glimpsed / osx-software-update-urls.txt
Last active April 4, 2018 14:47 — forked from stefanschmidt/osx-software-update-urls.txt
URLs for the OS X update catalog
10.3 (Panther): http://swscan.apple.com/scanningpoints/scanningpointX.xml
10.4 (Tiger): http://swscan.apple.com/content/catalogs/index-1.sucatalog
10.5 (Leopard): http://swscan.apple.com/content/catalogs/others/index-leopard.merged-1.sucatalog
10.6 (Snow Leopard): http://swscan.apple.com/content/catalogs/others/index-leopard-snowleopard.merged-1.sucatalog
10.7 (Lion): http://swscan.apple.com/content/catalogs/others/index-lion-snowleopard-leopard.merged-1.sucatalog
10.8 (Mountain Lion): http://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
10.9 (Mavericks): http://swscan.apple.com/content/catalogs/others/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
10.9 (Mavericks incl. seeds): http://swscan.apple.com/content/catalogs/others/index-10.9seed-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
10.10 (Yosemite): http://swscan.apple.com/content/catalogs/others/index-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.suc