Skip to content

Instantly share code, notes, and snippets.

View christopheranderton's full-sized avatar

Christopher Anderton christopheranderton

View GitHub Profile
# reset spotlight position
defaults delete com.apple.Spotlight userHasMovedWindow
# ... or reset spotlight position and size
defaults delete com.apple.Spotlight userHasMovedWindow;defaults delete com.apple.Spotlight windowHeight;killAll Spotlight
# disable gamed
launchctl unload -w /System/Library/LaunchAgents/com.apple.gamed.plist

Import external filter lists

Custom filter lists

External filter lists of interest

Use these filter lists at your own risk: the more filter lists one adds, the higher the probability of breakage. Quality varies. Some filter lists could contains broad filter exceptions which defeat other block filters. The maintainers are responsible for the content of their respective filter list.

Feel free to add whatever filter list you think is worth it -- order alphabetically according to filter list title (as it appears inside the list). Example of the markdown for "Fanboy's Anti-thirdparty Fonts":

@unforswearing
unforswearing / wrap-automator.applescript
Last active February 4, 2017 10:21
an automator script to wrap punctuation around text
on run {input}
# this script handles cancellations properly, but is much slower than the shell script version
try
set bloog to (choose from list {"double-quote \"\"", "single-quote ''", "parenthesis ()", "curly-brace {}", "brace []", "angled-bracket <>"} with title "Select an Item" OK button name "Wrap" default items {"double-quote"} with empty selection allowed)
if bloog is false then
error number -128
end if
@genekogan
genekogan / _Instructions.md
Last active September 21, 2024 10:33
instructions for generating a style transfer animation from a video

Instructions for making a Neural-Style movie

The following instructions are for creating your own animations using the style transfer technique described by Gatys, Ecker, and Bethge, and implemented by Justin Johnson. To see an example of such an animation, see this video of Alice in Wonderland re-styled by 17 paintings.

Setting up the environment

The easiest way to set up the environment is to simply load Samim's a pre-built Terminal.com snap or use another cloud service like Amazon EC2. Unfortunately the g2.2xlarge GPU instances cost $0.99 per hour, and depending on parameters selected, it may take 10-15 minutes to produce a 512px-wide image, so it can cost $2-3 to generate 1 sec of video at 12fps.

If you do load the

@somian
somian / ShAss.md
Last active May 1, 2016 16:46
Annoyware experience: ShoppingAssistant

Google Chrome on GNU/Linux infected by extension

Probably "YouTube Video Downloader for Crome" or "Chrome YouTube Downloader"

It is freeware (free as in "a filthy beer bottle with drowned insects inside") I removed this as soon as I identified it as the probable culprit -- and so far, no more Shopping Assistant.

The odd thing is that Shopping Assistant only activated upon visiting certain sites and, amazingly, a site for a local Indian Restaurant (India Jewel in Kenmore NY) seems to be one (hacked server?)

@jaibeee
jaibeee / brew-perms.sh
Last active January 4, 2025 01:23
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
chgrp -R admin /usr/local
chmod -R g+w /usr/local
# allow admins to homebrew's local cache of formulae and source files
chgrp -R admin /Library/Caches/Homebrew
@ralavay
ralavay / remove-mac-os-adware.sh
Created August 26, 2015 07:36
Remove MAC OS adware
#!/usr/bin/env bash
#
# Stop pop-up adware in MAC OS
# https://support.apple.com/en-us/HT203987
# http://www.thesafemac.com/arg-identification/
# Allow to loop through path with spaces
# http://www.cyberciti.biz/tips/handling-filenames-with-spaces-in-bash.html
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
@guycalledseven
guycalledseven / osx_yosemite_disable_features.sh
Last active August 16, 2021 01:57
Disabling OSX Yosemite annoyances / features I have no use of
# Tested on OSX Yosemite 10.10.4
# there is also an updated version (work in progress) for El Capitan here https://gist.github.com/guycalledseven/31ffe35eca056838b06b
# XXX TODO
# should I disable com.google.Keystone.Agent ??
# http://applehelpwriter.com/2014/07/13/how-to-remove-googles-secret-update-software-from-your-mac/
# Stop DS_Store file creation on network connections
# restart Finder afterwards
@zlargon
zlargon / remove_malware.sh
Last active February 15, 2017 15:08
Remove unwanted adware that displays pop-up ads and graphics on your Mac. https://support.apple.com/en-us/HT203987
#!/bin/bash
echo "Remove unwanted adware that displays pop-up ads and graphics on your Mac"
echo "https://support.apple.com/en-us/HT203987"
echo ""
# 1. Downlite, VSearch, Conduit, Trovi, MyBrand, Search Protect, Buca Apps
echo "1. Remove Downlite, VSearch, Conduit, Trovi, MyBrand, Search Protect, Buca Apps"
echo ""
malware[0]="/System/Library/Frameworks/v.framework"
malware[1]="/System/Library/Frameworks/VSearch.framework"