Skip to content

Instantly share code, notes, and snippets.

View christopheranderton's full-sized avatar

Christopher Anderton christopheranderton

View GitHub Profile
@thejoltjoker
thejoltjoker / ps_scale_fix.sh
Created December 23, 2018 00:02
Fix Adobe Photoshop CC 2019 default proportional scaling.
echo "TransformProportionalScale 0" > ~/Library/Preferences/Adobe\ Photoshop\ CC\ 2019\ Settings/PSUserConfig.txt
@Haugen
Haugen / README.md
Last active February 15, 2019 10:39
DN

Read DN

This is quick and dirty experimental code that lets you read articles on dn.se. Try it out! Not all articles send the premium content to the browser though. In those cases, there is nothing this script can do. Suggestions or improvements? Did it work for you? Please let me know.

To use this you need:

Once installed, att the custom script below and browse to an article on http://dn.se/ that would normally be behind a paywall. Wait until the page has loaded. Can you read the article?

@pattiereaves
pattiereaves / README.md
Last active May 7, 2018 08:15
My favorite automator scripts

Attaching automator scripts to keyboard shortcuts

Once you create an automator script, you can run them by going to the application menu and choosing services (for example, Chrome > Services > j2m). Or you can one-up your game and attach the service to a keyboard shortcut.

To do that, go to System Preferences > Keyboard > Shorcuts.

Then, in the shortcuts, go to Servies and then scroll down to Text.

You should be see the service you have created in that list and can add a keyboard shortcut to it.

@dvingerh
dvingerh / google.viewimage.user.js
Last active May 25, 2020 11:59
Google Images - View Image button
// ==UserScript==
// @name Google Images - View Image button
// @description Brings back the View Image button that Google has removed.
// @namespace Violentmonkey Scripts
// @grant GM_addStyle
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://raw.githubusercontent.com/pie6k/jquery.initialize/master/jquery.initialize.min.js
// @include *google*
//
// ==/UserScript==
@mcandre
mcandre / high-sierra-workstation.vmx
Last active November 20, 2019 04:58
High Sierra VMware Workstation VMX
.encoding = "windows-1252"
config.version = "8"
virtualHW.version = "14"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
@smithrobs
smithrobs / fbalbumsipper.js
Created August 4, 2017 18:42
facebook album sipper
var https = require('https')
,querystring = require('querystring')
,config = require('./config')
,client = require('scp2')
,fs = require('fs');
var access_token;
var getImageLinks = (photoIds) => {
https.get('https://graph.facebook.com/' + photoIds[0] + '?fields=width,height,images&access_token=' + access_token, (res) => {
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
// ==UserScript==
// @name DN Reader
// @namespace http://dn.se/
// @version 0.1
// @description Tear down this wall.
// @author olmen
// @match https://www.dn.se/*
// @grant none
// ==/UserScript==
@cboulanger
cboulanger / pdfocr.sh
Last active April 1, 2021 08:45
OCR of a scanned PDF, using imagemagick, ghostscript, poppler and tesseract
#!/bin/bash
# builds on:
# https://ubuntuforums.org/showthread.php?t=1370827
# Prerequisites:
# On Mac OS:
# brew install --with-libtiff --with-ghostscript imagemagick
# brew install --all-languages tesseract
# brew install poppler
@junian
junian / uninstall-vs-for-mac.sh
Last active January 25, 2019 22:04
Uninstall Visual Studio for Mac
#!/bin/sh
# based on guide from Microsoft https://docs.microsoft.com/en-us/visualstudio/mac/uninstall
# Uninstall Visual Studio for Mac
echo "Uninstalling Visual Studio for Mac ..."
sudo rm -rf "/Applications/Visual Studio.app"
rm -rf ~/Library/Caches/VisualStudio
rm -rf ~/Library/Preferences/VisualStudio