Skip to content

Instantly share code, notes, and snippets.

View sentient06's full-sized avatar

Giancarlo Mariot sentient06

  • United Kingdom
  • 08:05 (UTC)
View GitHub Profile
@sentient06
sentient06 / Launchctl_Unload-10.14.sh
Created February 8, 2021 18:09 — forked from mmillar-bolis/Launchctl_Unload-10.14.sh
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 / ruby-ips.rb
Created September 14, 2020 21:36
Ruby script to apply IPS patches.
#!/usr/bin/env ruby
# -*- encoding: US-ASCII -*-
# ruby-ips.rb --Kernigh, March 2009
# This program is in the public domain and has no copyright.
require 'optparse'
filename = nil
sflag = false
@sentient06
sentient06 / RokuRemote.rb
Last active June 6, 2019 10:56
Roku remote
# To run this code, use the IP address of the roku device as such:
# ruby ./RokuRemote.rb 192.168.99.99
require 'io/console'
require 'uri'
require 'net/http'
unless ARGV[0]
puts "Need IP of device"
exit 0
@sentient06
sentient06 / .eslintrc
Created August 11, 2016 09:06 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
@sentient06
sentient06 / config.log
Created November 30, 2015 22:37
Homebrew issue 1049, gcc48, OSX 10.6.8
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ ../configure --build=x86_64-apple-darwin10.8.0 --prefix=/usr/local/Cellar/gcc48/4.8.4 --libdir=/usr/local/Cellar/gcc48/4.8.4/lib/gcc/4.8 --enable-languages=c,c++,objc,obj-c++ --program-suffix=-4.8 --with-gmp=/usr/local/opt/gmp4 --with-mpfr=/usr/local/opt/mpfr2 --with-mpc=/usr/local/opt/libmpc08 --with-cloog=/usr/local/opt/cloog018 --with-isl=/usr/local/opt/isl011 --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --disable-werror --with-pkgversion=Homebrew gcc48 4.8.4 --with-bugurl=https://github.com/Homebrew/homebrew-versions/issues --enable-plugin --disable-nls --enable-multilib
## --------- ##
## Platform. ##
@sentient06
sentient06 / EventManagerTest.js
Created July 21, 2015 14:39
Testing the observers concept in pure JavaScript
var EventManager = EventManager || {
handlers: {}
};
EventManager.subscribe = function(event, fn) {
if (typeof(this.handlers[event]) === 'undefined')
this.handlers[event] = [];
this.handlers[event].push(fn);
};
@sentient06
sentient06 / gist:9208633
Created February 25, 2014 13:23
iCloud Junk Mail Redirection
on run {input, parameters}
set spamAccount to "[email protected]"
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
@sentient06
sentient06 / gist:7561493
Created November 20, 2013 11:11
Sorting NSDictionary values
//
// main.m
// NSDictionarySorting
//
// Created by Giancarlo Mariot on 20/11/2013.
// Copyright (c) 2013 Giancarlo Mariot. All rights reserved.
//
#import <Foundation/Foundation.h>
@sentient06
sentient06 / gist:7527634
Created November 18, 2013 13:23
New World ROM alternative checking
//
// main.m
// StringsGrep
//
// Created by Giancarlo Mariot on 18/11/2013.
// Copyright (c) 2013 Giancarlo Mariot. All rights reserved.
//
#import <Foundation/Foundation.h>
@sentient06
sentient06 / gist:7303670
Last active August 23, 2022 13:31
C code that generates a small console app to check Macintosh Old World ROM files.
//
// ROMTest.c
// ROMTest
//
// Created by Giancarlo Mariot on 04/11/2013.
// Copyright (c) 2013 Giancarlo Mariot. All rights reserved.
//
// Adapted from C++ code by Dennis Nedry.
// Reference: http://68kmla.org/forums/viewtopic.php?f=15&t=12920
//