Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am return on github.
  • I am return (https://keybase.io/return) on keybase.
  • I have a public key whose fingerprint is 4163 AB93 E2C7 3D2A 7943 8D00 4F34 E5D5 8A82 7ECE

To claim this, I am signing this object:

@return
return / AutoUpdateExampleHelper.cs
Last active July 18, 2017 23:42 — forked from sbrl/AutoUpdateExampleHelper.cs
A simple automatic update system, written in C# for a blog post.
using System;
using System.Net;
using System.IO;
using System.IO.Compression;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Diagnostics;
using System.Text;
using System.Security.Cryptography;
using System.Security.Permissions;
@return
return / .profile
Created August 1, 2016 20:42 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@return
return / readme.md
Created September 13, 2016 21:38 — forked from baraldilorenzo/readme.md
VGG-16 pre-trained model for Keras

##VGG16 model for Keras

This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition

K. Simonyan, A. Zisserman

@return
return / swift-6749-debug-16-05-2017-21-24-28.report
Created May 16, 2017 20:37
swift-3.1 runtime crash in Haiku (pthread_mutex_lock)
Debug information for team /boot/home/Desktop/swift_31_build/build/Ninja+cmark-ReleaseAssert+llvm-ReleaseAssert+swift-DebugAssert+stdlib-DebugAssert/swift-haiku-x86_64/bin/swift (6749):
CPU(s): 8x Intel Core™ i7-4790
Memory: 13.61 GiB total, 873.69 MiB used
Haiku revision: hrev51127 Apr 25 2017 13:02:39 (x86_64)
Active Threads:
thread 6751: team 6749 debug task
thread 6749: swift (main)
state: Exception (Segment violation)
@return
return / swift-3.1-build-without-fpic
Last active March 8, 2018 00:15
swift-3.1 build can't build without PIE on x86_64
~/Desktop/Git/haikuports/dev-lang/swift_lang> haikuporter swift_lang -G -j8 --no-source-packages
Checking if any package-infos need to be updated ...
updating dependency infos of swift_lang-3.1
Looking for stale dependency-infos ...
Checking if package dependencies need to be updated ...
updating dependency infos of swift_lang-3.1
----------------------------------------------------------------------
dev-lang::swift_lang-3.1
/boot/home/Desktop/Git/haikuports/dev-lang/swift_lang/swift_lang-3.1.recipe
----------------------------------------------------------------------
@return
return / boehm_gc-7.6.0-x86_64-haiku-test
Created June 19, 2017 05:43
boehm_gc-7.6.0-x86_64-haiku-test
PASS: cordtest
PASS: gctest
PASS: leaktest
PASS: middletest
PASS: smashtest
PASS: hugetest
PASS: realloc_test
PASS: staticrootstest
PASS: threadleaktest
PASS: threadkey_test
@return
return / swift-3.1-haiku-x86_64-compilation-test
Created June 23, 2017 09:05
strace of swiftc compiling on Haiku.
~/Desktop/swift_31_build/build/Ninja+cmark-ReleaseAssert+llvm-ReleaseAssert+swift-DebugAssert+stdlib-DebugAssert/swift-haiku-x86_64/bin> strace ./swiftc test.swift
[ 434] _kern_image_relocated(0xb8f) (379 us)
[ 434] _kern_set_area_protection(0x1faf, 0x5) = 0x0 No error (59 us)
[ 434] _kern_set_area_protection(0x1fb2, 0x5) = 0x0 No error (75 us)
[ 434] _kern_set_area_protection(0x1fb5, 0x5) = 0x0 No error (2324 us)
[ 434] _kern_set_area_protection(0x1fb7, 0x5) = 0x0 No error (36 us)
[ 434] _kern_set_area_protection(0x1fb9, 0x5) = 0x0 No error (37 us)
[ 434] _kern_set_area_protection(0x1fbb, 0x5) = 0x0 No error (60 us)
[ 434] _kern_set_area_protection(0x1fbd, 0x5) = 0x0 No error (33 us)
[ 434] _kern_set_area_protection(0x1fc0, 0x5) = 0x0 No error (58 us)
@return
return / swift-3.1-haiku-swiftc-strace
Created June 23, 2017 19:37
strace of swiftc on Haiku
~/Desktop/swift_31_build/build/Unix_Makefiles+cmark-ReleaseAssert+llvm-ReleaseAssert+swift-DebugAssert+stdlib-DebugAssert/swift-haiku-x86_64/bin> strace -C -s -t -T ./swiftc test.swift
[ 16303] _kern_image_relocated(0x6e81e) (450 us)
[ 16303] _kern_set_area_protection(0x16b362, 0x5) = 0x0 No error (69 us)
[ 16303] _kern_set_area_protection(0x16b365, 0x5) = 0x0 No error (28 us)
[ 16303] _kern_set_area_protection(0x16b368, 0x5) = 0x0 No error (94 us)
[ 16303] _kern_set_area_protection(0x16b36a, 0x5) = 0x0 No error (76 us)
[ 16303] _kern_set_area_protection(0x16b36c, 0x5) = 0x0 No error (19 us)
[ 16303] _kern_set_area_protection(0x16b36e, 0x5) = 0x0 No error (18 us)
[ 16303] _kern_set_area_protection(0x16b370, 0x5) = 0x0 No error (29 us)
[ 16303] _kern_set_area_protection(0x16b373, 0x5) = 0x0 No error (27 us)