Skip to content

Instantly share code, notes, and snippets.

View binki's full-sized avatar

Nathan Phillip Brink binki

View GitHub Profile
@binki
binki / gist:9236c1cab32c9409c97e
Created February 13, 2015 04:52
win32 java-1.8 default heap size
C:\Users\NathanPhillip>java -showversion -XshowSettings:vm
VM settings:
Max. Heap Size (Estimated): 247.50M
Ergonomics Machine Class: client
Using VM: Java HotSpot(TM) Client VM
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode)
<a href="javascript:void(window.open('https://pushbullet.com/push/link?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)))">Push</a></a>
<!-- Source: http://pastebin.com/183UqMc1 -->
var compareNonColl, compareAscii, compareLength;
-*- mode: compilation; default-directory: "~/Documents/Visual Studio 2015/Projects/ArrayThingError/ArrayThingError/" -*-
Compilation started at Wed May 13 19:07:40
bash -c "for m in *akefile; do break; done; if [[ ${m} != \"*akefile\" ]]; then make; else set -o pipefail; 'c:/Program Files (x86)/MSBuild/14.0/Bin/MSBuild.exe' //m; fi"
Microsoft (R) Build Engine version 14.0.22823.1
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 2015-05-13 19:07:40.
The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.Net.CoreRuntime.targets (64,11)" does not exist in the project, and will be ignored.
The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets (75,11)" does not exist in the project, and will be ignored.
-*- mode: compilation; default-directory: "~/Documents/Visual Studio 2015/Projects/ArrayThingError/ArrayThingError/" -*-
Compilation started at Wed May 13 19:21:20
bash -c "for m in *akefile; do break; done; if [[ ${m} != \"*akefile\" ]]; then make; else set -o pipefail; 'c:/Program Files (x86)/MSBuild/14.0/Bin/MSBuild.exe' //m; fi"
Microsoft (R) Build Engine version 14.0.22823.1
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 2015-05-13 19:21:20.
The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.Net.CoreRuntime.targets (64,11)" does not exist in the project, and will be ignored.
The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets (75,11)" does not exist in the project, and will be ignored.
@binki
binki / onedrivemv.sh
Created August 7, 2015 14:15
Move workreceipts from OneDrive to where my employer wants them and fix the filename date.
#!/bin/bash
for f in "${HOME}/OneDrive/IFTTT/iOS Photos/workreceipts/"*; do
if [ -e "${f}" ]; then
dspec=$(echo "${f##*/}" | sed -e 's/_/ /g' -e 's/\.[^.]*$//' -e 's/ at / /' -e 's/\([0-9][0-9]\)\([0-9]*[AP]M\)/\1:\2/')
# lol. Windows doesn’t allow colons in filenames. Guess why.
erf="${HOME}/Documents/SugarSync Shared Folders/Nathan Brink/expense_reports/$(date +%Y-%m --date "${dspec}")/$(date -Iseconds --date "${dspec}" | sed -e s/:/./g).${f##*.}"
mkdir -p "${erf%/*}"
mv "${f}" "${erf}"
else
true
#include <stdio.h>
/*
* GCC spits out warnings that I think it shouldn’t as the standard
* says that “None of the expressions from any other generic
* association of the generic selection is evaluated.” (9899:2011
* 6.5.1.1)
*/
/* #define p(x) _Generic(x, long: printf("%ld\n", x), int: printf("%d\n", x), const char *: printf("%s\n", x), char *: printf("%s\n", x))*/
/*
#!/usr/bin/env python
import math
size = int(input('Enter the desired size of your table>'))
justwidth = 1 + int(math.log10(size*size))
for y in range(1, size+1):
print(' '.join([str(x*y).rjust(justwidth) for x in range(1, size + 1)]))
@binki
binki / outlook-user.eml
Created October 5, 2015 22:08
outlook vs mozilla mailnews quoting
Return-Path: <jsmith@ohnopublishing.net>
X-Original-To: ohnobinki@ohnopublishing.net
Delivered-To: ohnobinki@ohnopublishing.net
Received: from WINF5A6PNAUAJ2 (c-68-48-94-14.hsd1.mi.comcast.net [68.48.94.14])
(Authenticated sender: jsmith)
by ohnopublishing.net (Postfix) with ESMTPSA id 8A48B9E505
for <ohnobinki@ohnopublishing.net>; Mon, 5 Oct 2015 22:02:52 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ohnopublishing.net;
s=ohnopublishing; t=1444082574;
bh=UV+KCasCyJRcs9NObvKzNKy4cEGfsgOKPS/G1E0RlQo=;
@binki
binki / mailnews-user.eml
Created October 5, 2015 22:12
outlook vs mozilla mailnews
Return-Path: <jsmith@ohnopublishing.net>
X-Original-To: ohnobinki@ohnopublishing.net
Delivered-To: ohnobinki@ohnopublishing.net
Received: from [192.168.1.127] (c-68-48-94-14.hsd1.mi.comcast.net [68.48.94.14])
(Authenticated sender: jsmith)
by ohnopublishing.net (Postfix) with ESMTPSA id A9FD69E505
for <ohnobinki@ohnopublishing.net>; Mon, 5 Oct 2015 22:11:52 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ohnopublishing.net;
s=ohnopublishing; t=1444083113;
bh=geyN2d7+66FqM0DcZfmaDgk0rnjyz8hxv8u7byUd+Ok=;