Skip to content

Instantly share code, notes, and snippets.

View christopheranderton's full-sized avatar

Christopher Anderton christopheranderton

View GitHub Profile
@christopheranderton
christopheranderton / montserrat-font-family-styles.css
Last active May 5, 2023 08:18
Montserrat Font Family Styles (Montserrat, Montserrat Alternates, Montserrat Subrayada, Montserrat Arabic). Weights, Font feature settings, Download sources…
/* == Montserrat Font Family Styles == */
/* @group Montserrat
-------------------------------------------------------------- */
/* = Weights Montserrat
-------------------------------------------------------------- */
.thin {
@christopheranderton
christopheranderton / search-engines.md
Created October 19, 2017 18:22
Online Search engines for web, media, deep web, dark web and others. Not complete.
@christopheranderton
christopheranderton / update-outdated-brew-casks.sh
Last active February 4, 2024 17:29
Upgrade outdated brew casks. One liner, and the ”official” way to do it without using different hacks or scripts. However, it does not really replace some scripts out there, as in-app updates is not seen by Homebrew.
# Upgrade / Update outdated casks installed.
# --------------------------------------------------------------------------------
# Looks for outdated casks and installs the the latest version.
# User data (like application preferences) is intact.
# Updated one liner (thanks Henrik242)
# --------------------------------------------------------------------------------
brew upgrade $(brew outdated --cask --greedy --quiet)
@christopheranderton
christopheranderton / mac-browsers-cli-search.sh
Last active May 3, 2017 13:34
Launch and Search Functions using different macOS / OS X browsers using the Terminal + Search Google Images in your default browser using from the CLI.
# For use in your .bash_profile or .functions file
# -------------------------------------------------
# Search using single words
# Example: gchrome terminal
# Search using multiple words
# Example: gchrome "wopr terminal"
# Launch browser of choice
# Example: gchrome
@christopheranderton
christopheranderton / brew-cask-alias-upgrade-browsers.sh
Last active February 13, 2018 08:45
Bash Profile aliases to force upgrade web browsers installed via Homebrew cask.
# Info: This only works on browsers installed with brew cask.
# For use in your .bash_profile .functions, .alias or whatever you want.
# Wrap it up in a function instead. Looks nicer.
# Brew don't recongnize in-app updates. So, either use in-app (faster updates) or cask reinstall.
# Remove your browsers manually (your preferences still there), and install them again with:
# brew cask install google-chrome google-chrome-canary opera opera-beta opera-developer opera-neon vivaldi webkit-nightly firefox firefoxdeveloperedition
alias upgradebrowsers="echo '$(tput bold)==> Upgrading Browsers with Force... $(tput sgr0)'; brew cask reinstall google-chrome caskroom/versions/google-chrome-canary opera opera-beta opera-developer opera-neon vivaldi webkit-nightly firefox firefoxdeveloperedition; brew cask cleanup; echo '$(tput bold)==> Flushing cfprefsd twice to be sure... $(tput sgr0)'; killall cfprefsd; killall cfprefsd; echo '$(tput bold)==> All Browsers has been upgraded... $(tput sgr0)'"
alias upgradeopera="echo
@christopheranderton
christopheranderton / opera-mac-internal-pages-and-more.md
Last active February 26, 2024 04:15
A list of internal (and external) pages and useful information for macOS/OS X users (and others) of the Chromium/Blink based version of the web browser Opera.

Opera Development Icon

@christopheranderton
christopheranderton / unicode-horizontal-row-shell.sh
Last active March 16, 2017 12:17
Prints a Funky Horizontal Row of a Unicode Character. Includes examples using lolcat and lolcat with animation. Great to add a little bling bling to your shell scripts.
## Prints a Horizontal Row of a Unicode Character
# Screenshot: http://imgur.com/a/Z2nKx
# Use for: Pattern or Separator
# Requirements: tput, Unicode font(s),
# True Color Terminal, LOLCAT (optional)
# Tested on OS X/macOS (10.11.6) and
# Ubuntu Linux (March 2017)
@christopheranderton
christopheranderton / macosx-contextmenu-automator-stripmetadata.md
Created February 2, 2017 13:45
Add a ”Strip Metdata” Service to your context menu (Right-Click Menu) in macOS/Mac OS X. This Service uses ExifTool and Tag (both via Homebrew) or xattr.

1. What you need

  • macOS/Mac OS X (tested only on El Capitan, but should work on Sierra and older versions)
  • Xcode Command Line Tools / Xcode
  • Homebrew (http://brew.sh/)
  • Tag (via Homebrew)
  • ExifTool (via Homebrew)

2. Installing Homebrew, Tag and ExifTool

@christopheranderton
christopheranderton / macosx-contextmenu-automator-svg2eps.md
Last active October 25, 2023 09:38
Add a ”SVG to EPS Converter” Service to your context menu (Right-Click Menu) in macOS/Mac OS X (Tested in Mac OS X El Capitan 10.11.6, but should work in some older versions and Sierra as well) using Homebrew installed svg2pdf and pdftops (Poppler) with Automator.app

1. What you need

  • macOS/Mac OS X (tested only on El Capitan, but should work on Sierra and older versions)
  • Xcode Command Line Tools / Xcode
  • Homebrew (http://brew.sh/)
  • svg2pdf (via Homebrew)
  • Poppler (via Homebrew)

2. Installing Homebrew, svg2pdf and Poppler

@christopheranderton
christopheranderton / macosx-contextmenu-automator-touch.md
Last active February 3, 2024 17:45
Add a simple ”Touch” Service to your context menu (Right-Click Menu) in MacOS X (Tested in Mac OS X 10.10.5, but should work in older and newer versions as well) with Automator.app
  1. Open up Automator.app located in your Applications folder.
  2. Choose ”Service” in the dialog sheet when creating a new document.
  3. In the Services receives selected: menu at the top of the ”Canvas” on the right, change to ”Files & Folders”.
  4. In the sidebar to the left, search for Get Selected Finder Items
  5. Drag this Action to the ”canvas” on the right side.
  6. Again, go to the sidebar at the left and this time search for Run Shell Script
  7. Drag the Run Shell Script action to the ”canvas” on the right side.
  8. At the right in the Run Shell Script action, change the Pass input from to stdin to as arguments
  9. Copy paste this into the action text box, removing the Cat command in the text box: