Skip to content

Instantly share code, notes, and snippets.

View sentient06's full-sized avatar

Giancarlo Mariot sentient06

  • United Kingdom
  • 22:18 (UTC +01:00)
View GitHub Profile
@mmillar-bolis
mmillar-bolis / Launchctl_Unload-10.14.sh
Created November 23, 2020 07:46
A Quick Little Script to Force Disable Certain LaunchDaemons in macOS
#!/bin/bash
# I have managed to map out some undesirable daemons and agents. Most of these
# can be disabled without too much consequence.
## Daemons
# com.apple.analyticsd - Anonymized application analytics daemon
# com.apple.appleseed.fbahelperd - Feedback Assistant Helper Daemon
# com.apple.awacsd - Apple Wide Area Connectivity Service Daemon
# com.apple.backupd - Apple TimeMachine service
@sentient06
sentient06 / gist:9208633
Created February 25, 2014 13:23
iCloud Junk Mail Redirection
on run {input, parameters}
set spamAccount to "spam@icloud.com"
set tempFolderName to "JunkMail"
set tempFolderPath to path to home folder
set maxSendAttempts to 5
set maxSentDeleteAttempts to 10
set deleteSentMessage to false
set deleteJunkMessage to false
@dtao
dtao / increment_decrement.py
Created May 25, 2012 16:10
Sublime Text plugin to increment/decrement all selected numbers
import sublime
import sublime_plugin
class NumberCommand(sublime_plugin.TextCommand):
def run(self, edit):
selection = self.view.sel()
for region in selection:
try:
value = int(self.view.substr(region))
self.view.replace(edit, region, str(self.op(value)))