Skip to content

Instantly share code, notes, and snippets.

View kangaroo's full-sized avatar

Geoff Norton kangaroo

View GitHub Profile
$ nslookup -type=aaaa github.com
Server: 10.35.2.1
Address: 10.35.2.1#53
Non-authoritative answer:
*** Can't find github.com: No answer
Authoritative answers can be found from:
[2014-02-05 00:54:53,579: ERROR/MainProcess] Task api.tasks.build_node[71ebc123-05a7-457f-990c-e98f23daf2a9] raised unexpected: NameError("global name 'PKEY' is not defined",)
Traceback (most recent call last):
File "/opt/deis/controller/venv/local/lib/python2.7/site-packages/celery/app/trace.py", line 238, in trace_task
R = retval = fun(*args, **kwargs)
File "/opt/deis/controller/venv/local/lib/python2.7/site-packages/celery/app/trace.py", line 416, in __protected_call__
return self.run(*args, **kwargs)
File "/opt/deis/controller/api/tasks.py", line 54, in build_node
provider_id, fqdn, metadata = provider.build_node(node.flat())
File "/opt/deis/controller/provider/vagrant.py", line 93, in build_node
_host_ssh(commands=[mkdir, cp_tpl], creds=node['creds'])
vagrant@packer-virtualbox:/vagrant$ make
bin/forego start
forego | starting etcd on port 5000
forego | starting discoverd on port 5100
forego | starting gitreceive on port 5200
forego | starting shelf on port 5300
forego | starting strowger on port 5400
forego | starting host on port 5500
forego | starting controller on port 5600
etcd | [etcd] Feb 8 06:40:15.341 WARNING | Using the directory packer-virtualbox.etcd as the etcd curation directory because a directory was not specified.
total 47664
drwxr-xr-x 5 plasma staff 170 Feb 4 22:47 .
drwxr-xr-x 3 plasma staff 102 Feb 4 22:39 ..
-rwxr-xr-x 1 plasma staff 49932 Feb 4 22:47 corerun
-rwxr-xr-x 1 plasma staff 24339008 Feb 4 22:47 libcoreclr.dylib
-rwxr-xr-x 1 plasma staff 4248 Feb 4 22:47 libmscordaccore.dylib
basalt:debug plasma$ cat ~/Work/h.cs
using System;
class D {
static int Main(string[] args) {
Console.WriteLine ("hi");
return 7;
}
}
basalt:debug plasma$ ls -al
diff --git a/src/pal/src/exception/machexception.cpp b/src/pal/src/exception/machexception.cpp
index f42840d..d809bde 100644
--- a/src/pal/src/exception/machexception.cpp
+++ b/src/pal/src/exception/machexception.cpp
@@ -206,6 +206,7 @@ Return value :
PAL_ERROR CorUnix::CPalThread::EnableMachExceptions()
{
+ return ERROR_SUCCESS;
#if !DISABLE_EXCEPTIONS
basalt:vm plasma$ make VERBOSE=1
cd /Users/plasma/Work/coreclr/binaries/CMake && /usr/local/Cellar/cmake/3.1.0/bin/cmake -H/Users/plasma/Work/coreclr -B/Users/plasma/Work/coreclr/binaries/CMake --check-build-system CMakeFiles/Makefile.cmake 0
cd /Users/plasma/Work/coreclr/binaries/CMake && /usr/local/Cellar/cmake/3.1.0/bin/cmake -E cmake_progress_start /Users/plasma/Work/coreclr/binaries/CMake/CMakeFiles /Users/plasma/Work/coreclr/binaries/CMake/src/vm/CMakeFiles/progress.marks
cd /Users/plasma/Work/coreclr/binaries/CMake && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 src/vm/all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f src/vm/dac/CMakeFiles/cee_dac.dir/build.make src/vm/dac/CMakeFiles/cee_dac.dir/depend
cd /Users/plasma/Work/coreclr/binaries/CMake && /usr/local/Cellar/cmake/3.1.0/bin/cmake -E cmake_depends "Unix Makefiles" /Users/plasma/Work/coreclr /Users/plasma/Work/coreclr/src/vm/dac /Users/plasma/Work/coreclr/binaries/CMake /Users/plasma/Work/coreclr/b
basalt:Work plasma$ clang -S t.c
basalt:Work plasma$ cat t.s
.section __TEXT,__text,regular,pure_instructions
.section __TEXT,__const
.align 4
LCPI0_0:
.quad -461168601842738790 ## x86_fp80 15.6000000000000000003
.short 16386
.space 6
.section __TEXT,__text,regular,pure_instructions
basalt:vm plasma$ clang -cc1as -version
LLVM (http://llvm.org/):
LLVM version 3.5svn from Apple Clang 6.0 (build 600.0.56)
Optimized build.
Default target: x86_64-apple-darwin14.1.0
Host CPU: core-avx2
basalt:vm plasma$ clang -cc1as -help
OVERVIEW: Clang Integrated Assembler
USAGE: clang -cc1as [options] <inputs>
diff --git a/src/pal/src/locale/locale.cpp b/src/pal/src/locale/locale.cpp
index eb7c73d..9fe1791 100644
--- a/src/pal/src/locale/locale.cpp
+++ b/src/pal/src/locale/locale.cpp
@@ -156,6 +156,16 @@ static const struct CalIdPair requiredCalendars[] =
static CFComparisonResult (*s_CFStringCompareWithOptionsAndLocale)(CFStringRef, CFStringRef, CFRange, CFOptionFlags, CFLocaleRef) = NULL;
+static UniChar * ToUniChar(WCHAR *buffer)
+{