Skip to content

Instantly share code, notes, and snippets.

@JohannesRudolph
JohannesRudolph / fix-refresh-rate.sh
Last active November 30, 2020 08:27 — forked from judas-christ/fix-refresh-rate.sh
How to change refresh rate on an external display on macOS. Useful if for some reason macOS decides to no longer drive your 4k display at 60Hz and gives you no option to correct.
# install cscreen
brew cask install cscreen
# list displays
cscreen -l
# find your external screen in the list and write the number (not the ID) down somewhere
# in the following instructions, use that number instead of <SCREEN>
# list display modes for your external screen
@JohannesRudolph
JohannesRudolph / browser.js
Created December 17, 2016 08:01 — forked from pamelafox/browser.js
Browser banner warning
(function(wndw) {
var Browsers, OS, Platform, Versions, browser_name, browser_version, os, platform;
Versions = {
Firefox: /firefox\/([\d\w\.\-]+)/i,
IE: /msie\s([\d\.]+[\d])/i,
Chrome: /chrome\/([\d\w\.\-]+)/i,
Safari: /version\/([\d\w\.\-]+)/i,
Ps3: /([\d\w\.\-]+)\)\s*$/i,
Psp: /([\d\w\.\-]+)\)?\s*$/i
};