Skip to content

Instantly share code, notes, and snippets.

View christopheranderton's full-sized avatar

Christopher Anderton christopheranderton

View GitHub Profile
@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 / 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 / update-outdated-brew-casks.sh
Last active March 17, 2025 14:04
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 / 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 / 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 / shutdown-restart-sleep-macosx.sh
Created October 19, 2017 18:39
CLI OS X/macOS: Shutdown, Restart and Sleep Commands
# Classic BSD Style
#---------------------------------------------------------------
# Shutdown hardcore style
sudo shutdown -h now
# Shutdown at once hardcore style
sudo shutdown -r now
# Shutdown hardcore style in 30 minutes
@christopheranderton
christopheranderton / forums.opera.com.css
Created November 5, 2017 21:38
Userstyle for Opera forums (November 2017). Quick & VERY dirty <== Work in progress
html, body, span, li, ul, table, td, tr, form, input, li ul, ul li, ol, button {
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantrell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
/* Hack-ish things for some browsers on Linux and Windows */
font-variant-ligatures: none;
-webkit-font-variant-ligatures: none;
text-rendering: optimizeLegibility;
font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
text-shadow: rgba(0, 0, 0, .01) 0 0 1px;
}
@christopheranderton
christopheranderton / mining-crap-hosts.txt
Last active July 15, 2024 20:53
Host entries to block some known mining domains. Should work in uBlock Origin as well. Updated at least once a month.
# MINERS & FRIENDS
# ------------------------------------------------------------
0.0.0.0 1beb2a44.space
0.0.0.0 1safe.link
0.0.0.0 2giga.li
0.0.0.0 2giga.link
0.0.0.0 300ca0d0.space
0.0.0.0 310ca263.space
0.0.0.0 320ca3f6.space
0.0.0.0 330ca589.space
@christopheranderton
christopheranderton / shady-nox-app-player-mac.txt
Created December 22, 2017 09:54
Shady Apps on Mac: NOX App Player for Mac EULA
We are committed to protecting your privacy while you use NOX APP PLAYER. The use of NOX APP PLAYER requires the collection and use of your Personal Information (defined below), and it is important for you to understand how your Personal Information is used. In using NOX APP PLAYER, you will be supplying us with your Personal Information.
By using NOX APP PLAYER, you agree that we (and our affiliate/subsidiary companies) will handle all Personal Information in accordance with this Privacy Policy, as revised from time to time. This Privacy Policy is incorporated into and forms part of the End User License Agreement that you have agreed to.
We regularly review this Privacy Policy and may from time to time revise or add specific instructions, policies and terms - such instructions, policies and terms form part of this Privacy Policy. Where any changes to this Privacy Policy are reasonably material to you, we will (where reasonably practicable) notify you. By continuing to use our services after any amendmen
@christopheranderton
christopheranderton / decoding-canon-icc-names.md
Last active September 24, 2022 20:21
Decoding Canon Printer ICC Profile Names (macOS/OS X/Others). Work in progress. Comment if you have any input, or if you see any issues.

Decoding Canon Printer ICC Profile Names

Work in progress.


Canon ICC Profile Naming Conventions

ICC Profiles from Canon follows a simple naming convention. The file always (with few exceptions) starts with Canon, and then the printer model number/name (or printer series), the paper/media type in short form sometimes with a number corresponding to the quality (usually on the scale 1-5, where the lower number is the highest quality, and the higher number is the lowest quality) of the slider in the Print Quality Dialog on your Operating System.