This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- By Richard Kulesus, 2009. Released without license! | |
-- Use this for whatever! | |
-- I seriously despise code authors who copyright tiny bits of obvious code | |
-- like it's some great treasure. This is small and simple, and if it saves | |
-- the next guy some time and trouble coding applescript I'll feel good! | |
-- | |
-- Quickly change all the hot-corners to do what you want. | |
-- Particularly useful for presentations and full-screen games. | |
-- Customize the activity of each hot-corner with "all windows/application windows/dashboard/disable screen saver/none/show desktop/show spaces/sleep display/start screen saver" | |
-- The MODIFIERS are the keys which can be used to supplement hot-corner activation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIImage+Additions.h | |
// Sparrow | |
// | |
// Created by Shilo White on 10/16/11. | |
// Copyright 2011 Shilocity Productions. All rights reserved. | |
// | |
#define COLOR_PART_RED(color) (((color) >> 16) & 0xff) | |
#define COLOR_PART_GREEN(color) (((color) >> 8) & 0xff) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Remove *all* components of iLife '11 as installed by the "DVD" installer | |
rm -rf \ | |
"/Applications/iWeb.app" \ | |
"/Library/Audio/Apple Loops/Apple/iLife Sound Effects" \ | |
"/Applications/GarageBand.app" \ | |
"/Library/Audio/Apple Loops/Apple/Apple Loops for GarageBand" \ | |
"/Applications/iDVD.app" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface UIColor (isLight) | |
- (CGFloat)lightness; | |
- (CGFloat)perceivedLightness; | |
- (CGFloat)perceivedLightnessW3C; | |
- (BOOL)isLight; | |
- (BOOL)isPerceivedLightW3C; | |
- (BOOL)isPerceivedLight; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
"""Identify or remove files known to be involved in Adware/Malware | |
infection. | |
Most of the code applies to building a list of malware files. Thus, | |
both extension attribute and removal handling are included. | |
Cleans files as a Casper script policy; thus, it expects four total | |
arguments, the first three of which it doesn't use, followed by | |
--remove |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<AdwareDefinition> | |
<Version>1.0</Version> | |
<DefinitionAuthor>Matthew Warren</DefinitionAuthor> | |
<DefinitionSource>http://www.adwaremedic.com/signatures.xml</DefinitionSource> | |
<!-- Supplemental ADF based on AdwareMedic Signatures. Should be used as | |
a complement to the default HT-203987 definitions | |
--> | |
<Adware> | |
<AdwareName>FkCodec</AdwareName> | |
<!-- Does not remove related browser extensions --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AVCaptureDeviceFormat | |
'vide'/'420v' 192x 144, { 2- 30 fps}, fov:54.400, binned, max zoom:60.75 (upscales @6.75), AF System:1, ISO:33.0-792.0, SS:0.000016-0.500000> | |
'vide'/'420f' 192x 144, { 2- 30 fps}, fov:54.400, binned, max zoom:60.75 (upscales @6.75), AF System:1, ISO:33.0-792.0, SS:0.000016-0.500000> | |
'vide'/'420v' 352x 288, { 2- 30 fps}, fov:49.531, binned, max zoom:60.75 (upscales @3.35), AF System:1, ISO:33.0-792.0, SS:0.000016-0.500000> | |
'vide'/'420f' 352x 288, { 2- 30 fps}, fov:49.531, binned, max zoom:60.75 (upscales @3.35), AF System:1, ISO:33.0-792.0, SS:0.000016-0.500000> | |
'vide'/'420v' 480x 360, { 2- 30 fps}, fov:54.400, binned, max zoom:60.75 (upscales @2.70), AF System:1, ISO:33.0-792.0, SS:0.000016-0.500000> | |
'vide'/'420f' 480x 360, { 2- 30 fps}, fov:54.400, binned, max zoom:60.75 (upscales @2.70), AF System:1, ISO:33.0-792.0, SS:0.000016-0.500000> | |
'vide'/'420v' 640x 480, { 2- 30 fps}, fov:54.400, binned, max zoom:60.75 (upscales @2.03), AF System:1, ISO:33.0-792.0, SS:0.000016-0.500000> | |
' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
func format(bytes: Double) -> String { | |
guard bytes > 0 else { | |
return "0 bytes" | |
} | |
// Adapted from http://stackoverflow.com/a/18650828 | |
let suffixes = ["bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] | |
let k: Double = 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
class StreamReader { | |
let encoding: String.Encoding | |
let chunkSize: Int | |
let fileHandle: FileHandle | |
var buffer: Data | |
let delimPattern : Data | |
var isAtEOF: Bool = false | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Obfuscator.swift | |
// | |
// Created by Dejan Atanasov on 2017-05-31. | |
// | |
import Foundation | |
class Obfuscator: AnyObject { | |
OlderNewer