- 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
| // Create a sample URL. | |
| NSURL *url = [NSURL URLWithString:@"http://www.bbc.co.uk/tv/programmes/genres/drama/scifiandfantasy/schedules/upcoming.json"]; | |
| // Create a download task. | |
| NSURLSessionDataTask *task = [[NSURLSession sharedSession] dataTaskWithURL:url | |
| completionHandler:^(NSData *data, | |
| NSURLResponse *response, | |
| NSError *error) | |
| { | |
| if (!error) |
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
| cmake_minimum_required(VERSION 2.8.6) | |
| if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) | |
| set(CMAKE_CONFIGURATION_TYPES Release CACHE STRING "Release configuration" FORCE) | |
| set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE) | |
| # Set the possible values of build type for cmake-gui | |
| set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Release") | |
| endif() | |
| project(PythonTestBigEndianIssue C) |
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
| #include <time.h> | |
| void timespec_diff(struct timespec *start, struct timespec *stop, | |
| struct timespec *result) | |
| { | |
| if ((stop->tv_nsec - start->tv_nsec) < 0) { | |
| result->tv_sec = stop->tv_sec - start->tv_sec - 1; | |
| result->tv_nsec = stop->tv_nsec - start->tv_nsec + 1000000000; | |
| } else { | |
| result->tv_sec = stop->tv_sec - start->tv_sec; |
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
| # updates your info.plist with the current git tag as version and commit number | |
| # in that tag as build numer, then ammends the changed file to git | |
| # run this after your normal commit but before you push | |
| # | |
| # this to be placed in the same directory as the xcode project file | |
| # info.plist to be in the path [folder with projectfile]/[project name]/[project name]-Info.plist | |
| # | |
| # richy486@gmail.com | |
| # twitter.com/richy486 |
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
| # xcode-build-bump.sh | |
| # @desc Auto-increment the build number every time the project is run. | |
| # @usage | |
| # 1. Select: your Target in Xcode | |
| # 2. Select: Build Phases Tab | |
| # 3. Select: Add Build Phase -> Add Run Script | |
| # 4. Paste code below in to new "Run Script" section | |
| # 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
| # 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
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
| // "License": Public Domain | |
| // I, Mathias Panzenböck, place this file hereby into the public domain. Use it at your own risk for whatever you like. | |
| // In case there are jurisdictions that don't support putting things in the public domain you can also consider it to | |
| // be "dual licensed" under the BSD, MIT and Apache licenses, if you want to. This code is trivial anyway. Consider it | |
| // an example on how to get the endian conversion functions on different platforms. | |
| #ifndef PORTABLE_ENDIAN_H__ | |
| #define PORTABLE_ENDIAN_H__ | |
| #if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__) |
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
| all: section_hacking | |
| section_hacking: | |
| gcc -g -O0 -Werror -Wall -o section_hacking section_hacking.c plugin.c | |
| clean: | |
| rm -f *.o section_hacking |
Points:
- Checkout git repository to subdir
src/gocovusingLocal subdirectory for repooption of Jenkins Git Plugin. - Add Jenkins $WORKSPACE to $GOPATH
- Convert gocov output. absolute path to relative path.
mkdir -p $JENKINS_HOME/gopath
export GOROOT=$JENKINS_HOME/workspace/golang
export GOPATH=$JENKINS_HOME/gopath:$WORKSPACE
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
| /* | |
| * Genarate rsa keys. | |
| */ | |
| package main | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/x509" |