Skip to content

Instantly share code, notes, and snippets.

View jthelin's full-sized avatar

Jorgen Thelin jthelin

View GitHub Profile
@jthelin
jthelin / vs2013-build-error.txt
Created April 3, 2016 05:47
Error during build of Orleans code in Visual Studio 2013 due to C# 6.0 code features.
1>------ Rebuild All started: Project: Orleans, Configuration: Debug Any CPU ------
1> Orleans.csproj -- Build Properties =
1> TeamProject=
1> SolutionRoot=
1> SourcesDirectory=
1> BinariesDirectory=
1> BinariesRoot=
1> BuildDirectory=
1> BuildProjectFolderPath=
1> MSBuildProjectDirectory=E:\Depot\GitHub\orleans\src\Orleans
@jthelin
jthelin / Build.log
Last active February 3, 2016 23:46
JSON grain problems
1>------ Rebuild All started: Project: Orleans, Configuration: Debug Any CPU ------
1> Orleans.csproj -- Build Properties =
1> TeamProject=
1> SolutionRoot=
1> SourcesDirectory=
1> BinariesDirectory=
1> BinariesRoot=
1> BuildDirectory=
1> BuildProjectFolderPath=
@jthelin
jthelin / FCPrivateBatteryStatus.m
Created January 31, 2016 04:19
How to get raw battery info (mAh remaining, etc.) from iOS using private APIs. For internal testing only, NOT APP STORE DISTRIBUTION!
#import <Foundation/Foundation.h>
#include <dlfcn.h>
NSDictionary *FCPrivateBatteryStatus()
{
static mach_port_t *s_kIOMasterPortDefault;
static kern_return_t (*s_IORegistryEntryCreateCFProperties)(mach_port_t entry, CFMutableDictionaryRef *properties, CFAllocatorRef allocator, UInt32 options);
static mach_port_t (*s_IOServiceGetMatchingService)(mach_port_t masterPort, CFDictionaryRef matching CF_RELEASES_ARGUMENT);
static CFMutableDictionaryRef (*s_IOServiceMatching)(const char *name);
@jthelin
jthelin / OLW-dev12-build-after.log
Created December 9, 2015 21:18
Errors from building OLW using dev12 tools without 4.5.2 targeting pack installed.
In order to run this tool you need either Visual Studio 2015 or
Microsoft Build Tools 2015 tools installed.
Visit this page to download either:
http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs
Attempting to fall back to MSBuild 12 for building only
MSBuild auto-detection: using msbuild version '12.0' from 'C:\Program Files (x86)\MSBuild\12.0\bin'.
@jthelin
jthelin / hello-scala.sh
Created September 11, 2015 07:15
hello-scala.sh - running a scala program / script directly from bash.
#!/bin/sh
exec scala "$0" "$@"
!#
object HelloWorld extends App {
println("Hello, world!")
}
HelloWorld.main(args)
@jthelin
jthelin / hadoop-native-2.6.0-VS2013.diff
Created September 9, 2015 18:35
hadoop-native-2.6.0-VS2013.diff
diff --git a/.gitignore b/.gitignore
index 8b132cb..1acc80f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,4 @@ hadoop-common-project/hadoop-common/src/test/resources/contract-test-options.xml
hadoop-tools/hadoop-openstack/src/test/resources/contract-test-options.xml
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-registry/src/main/tla/yarnregistry.toolbox
yarnregistry.pdf
+hadoop-common-project/hadoop-common/src/main/winutils/x64/
diff --git a/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj b/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj
@jthelin
jthelin / keybase.md
Created June 9, 2015 01:11
keybase.md

Keybase proof

I hereby claim:

  • I am jthelin on github.
  • I am jthelin (https://keybase.io/jthelin) on keybase.
  • I have a public key whose fingerprint is 1092 5015 E853 FB69 1AE0 25F9 6A1D 11AB B18A AB4D

To claim this, I am signing this object:

@jthelin
jthelin / CleanAll.cmd
Created June 7, 2015 01:59
CleanAll.cmd - Script to clean all working files from a Visual Studio solution tree.
@REM CleanAll.cmd - Script to clean all working files from a Visual Studio solution tree.
@REM - Place this file in the solutuon root directory.
@setlocal
@echo off
@if NOT "%ECHO%"=="" @echo %ECHO%
set CMDHOME=%~dp0
@echo Deleting build output files
@jthelin
jthelin / DShell.cmd
Created March 12, 2015 18:15
DShell.cmd - Simple wrapper around Hadoop's distributed shell prog org.apache.hadoop.yarn.applications.distributedshell.Client
@setlocal
@Echo OFF
if "%1" == "" (
set ShellCmd=-help
) else (
set ShellCmd=-shell_command %1
shift
)
@jthelin
jthelin / Dockerfile-Orleans-Silo-Mono
Created March 6, 2015 03:51
Experimental Dockerfile for running Orleans silo on Mono
FROM mono:3.12
MAINTAINER Jorgen Thelin <jthelin@microsoft.com>
ENV REFRESHED_AT 2015-03-05
RUN apt-get -yqq update && \
apt-get -yqq install curl unzip
RUN mkdir /usr/local/orleans
RUN cd /usr/local/orleans && \