Skip to content

Instantly share code, notes, and snippets.

View christopheranderton's full-sized avatar

Christopher Anderton christopheranderton

View GitHub Profile
.gnaget-schack-pattern {
background-color: #ffdd00;
background-image: linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%), linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%);
background-size:100px 100px;
background-position: 0 0, 50px 50px;
}
.gnaget-schack-pattern-alt {
background-color: rgba(255, 221, 0, 1);
background-image: linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black), linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black);
background-size:60px 60px;
@christopheranderton
christopheranderton / github-brand-colors-aug-2015.css
Last active April 28, 2020 19:30
Official Github Brand Colors (August 20, 2015) from the GitHub internal CSS framework (Primer) version 2.3.3 at: http://primercss.io/colors/ [Note: Photoshop users. You can download the raw file (.css) and import the swatches just like a .aco file (more recent versions of Photoshop).
/* # OFFICIAL GITHUB BRAND COLORS
--------------------------------------------------------------------
Official Github Brand Colors (August 20, 2015) from the
GitHub internal CSS framework (Primer) version 2.3.3
Source URI: http://primercss.io/colors/
1.a = Github Branding Color Swatches
-------------------------------------------------------------------- */
.swatch-github-blue {
background-color:#4078c0;
# Sneaky installs (goes for many Wondershare and iSkysoft branded apps amongst others ”controlled by the mothership”.
# ----------------
$HOME/Library/Application Support/Helper/Wondershare Helper Compact.app
$HOME/Library/Application Support/Wondershare/Helper/*
$HOME/Library/Application Support/Helper/iSkysoft Helper Compact.app
$HOME/Library/Preferences/com.Wondershare.Video Editor.plist
$HOME/Library/Preferences/com.wondershare.helper_compact.plist
/Users/Shared/.Wondershare.dat
/Users/Shared/Wondershare.plist
$HOME/Library/Helper/*
@christopheranderton
christopheranderton / mute-macosx-startup-sound.sh
Last active July 5, 2019 13:21
Enable ”Mute” for the Startup sound on Mac OS X.
#!/bin/sh
osascript -e 'set volume with output muted'
This file has been truncated, but you can view the full file.
{
"app": "FSMonitor",
"doc_version": 1,
"events": [
{
"date" : "22:59:09",
"path" : "\/Users\/picard\/Library\/Preferences\/com.tristan.FSMonitor.plist.7ZKvz9b",
"category" : "🆕",
"flags" : "0x14100"
},
This file has been truncated, but you can view the full file.
22:59:09 🆕 0x14100 /Users/picard/Library/Preferences/com.tristan.FSMonitor.plist.7ZKvz9b
22:59:10 🛠 0x10400 /private/var/db/uuidtext/D0/AFA1DFF9A03096BBC6039FB407A3B8
22:59:10 🆕 0x2a500 /Applications/Wondershare Filmora.app
22:59:11 ↗️ 0x15900 /Library/Caches/com.apple.iconservices.store/DD70283E-F2E6-64BE-2B72-CF8C46B036A9.isdata.tmp
22:59:11 ↘️ 0x10800 /Library/Caches/com.apple.iconservices.store/DD70283E-F2E6-64BE-2B72-CF8C46B036A9.isdata
22:59:11 🆕 0x2a500 /Applications/Wondershare Filmora.app
22:59:11 🆕 0x20100 /Applications/Wondershare Filmora.app/Contents
22:59:11 🆕 0x1f100 /Applications/Wondershare Filmora.app/Contents/_CodeSignature/CodeResources
22:59:11 🆕 0x2e100 /Applications/Wondershare Filmora.app/Contents/_CodeSignature
22:59:11 🆕 0x20100 /Applications/Wondershare Filmora.app/Contents/Frameworks
@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 / 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 / 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 / mining-crap-hosts.txt
Last active December 18, 2017 15:16
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