- Some notes about this approach:
- An OSX Installer USB drive for
Install OS X El Capitanis created - Clover is then installed on the USB drive
- Clover Configurator is then run on the USB drive
- The USB drive contents are copied to the VM host
- VNC is used to connect to the guest UI
- An OSX Installer USB drive for
- The qxl virtual video device is used (part of the standard kvm qemu install)
This file contains hidden or 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 | |
| # This script will fetch the Googlevideo ad domains and append them to the Pi-hole block list. | |
| # Run this script daily with a cron job (don't forget to chmod +x) | |
| # More info here: https://discourse.pi-hole.net/t/how-do-i-block-ads-on-youtube/253/136 | |
| # File to store the YT ad domains | |
| FILE=/etc/pihole/youtube.hosts | |
| # Fetch the list of domains, remove the ip's and save them | |
| curl 'https://api.hackertarget.com/hostsearch/?q=googlevideo.com' \ |
This file contains hidden or 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
| # generated by Slic3r 1.37.2-prusa3d on Thu Dec 7 09:48:20 2017 | |
| # Figured out by trial and error engineer metacollin | |
| # Released as public domain. | |
| # USE GLUESTICK FOR PRINT BED ADHESION | |
| avoid_crossing_perimeters = 0 | |
| bed_shape = 0x0,250x0,250x210,0x210 | |
| bed_temperature = 110 | |
| before_layer_gcode = ;BEFORE_LAYER_CHANGE\n;[layer_z]\n\n | |
| bottom_solid_layers = 8 | |
| bridge_acceleration = 1000 |
This file contains hidden or 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/env ruby | |
| require 'cocoapods' | |
| def get_public_changes_between_versions(path, podspec, old_tag, new_tag) | |
| pathlist = Pod::Sandbox::PathList.new(Pathname.new(path)) | |
| headers = [] | |
| spec = Pod::Specification.from_file podspec | |
| # https://github.com/CocoaPods/cocoadocs.org/issues/35 |
This file contains hidden or 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
| // port of http://stackoverflow.com/a/17948778/3071224 | |
| import UIKit | |
| import Foundation | |
| extension CGSize { | |
| static func aspectFit(aspectRatio : CGSize, var boundingSize: CGSize) -> CGSize { | |
| let mW = boundingSize.width / aspectRatio.width; | |
| let mH = boundingSize.height / aspectRatio.height; |
#Loading Tweaks in the Simulator
With the latest updates to the simulator, this turns out to be pretty simple:
You need to be using kirb/theos
In order not to require MobileSubstrate to be loaded and your tweak to be compiled for i386/x86_64, add
In your makefile:
This file contains hidden or 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
| # taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/ | |
| # generate server.xml with the following command: | |
| # openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes | |
| # run as follows: | |
| # python simple-https-server.py | |
| # then in your browser, visit: | |
| # https://localhost:4443 | |
| import BaseHTTPServer, SimpleHTTPServer | |
| import ssl |