Skip to content

Instantly share code, notes, and snippets.

View winksaville's full-sized avatar

Wink Saville winksaville

  • Soquel, CA. USA
View GitHub Profile
@winksaville
winksaville / diff-2.11.2.patch
Created August 12, 2017 18:21
aur/hypre diff for 2.11.2
diff --git a/.SRCINFO b/.SRCINFO
index 5e5609d..4f9d4b1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
# Typed up manually
pkgbase = hypre
pkgdesc = A library for solving large, sparse linear systems on massively parallel computers
- pkgver = 2.11.0
+ pkgver = 2.11.2
@winksaville
winksaville / libftd2xx-1.4.6.patch
Last active September 13, 2017 00:26
Patch for AUR libftd2xx for 1.4.6
diff --git a/55-ft2232.rules b/55-ft2232.rules
index 527296b..f05dc78 100755
--- a/55-ft2232.rules
+++ b/55-ft2232.rules
@@ -3,5 +3,6 @@ ACTION!="add", GOTO="ft2232_rules_end"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="cff8", MODE="0666", GROUP="tty"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="0666", GROUP="tty"
+ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", MODE="0666", GROUP="tty"
Here is the last few lines of the output plus some debug I've added to scheduler.c:
```
---- Passed: itertools/Iter.skip_while
---- Passed: itertools/Iter.take
---- Passed: itertools/Iter.take_while
---- Passed: itertools/Iter.zip
---- Passed: serialise/Simple
---- Passed: serialise/Arrays
---- Passed: serialise/Failures
---- Passed: serialise/BoxedMachineWord
@winksaville
winksaville / scheduler.c
Created December 24, 2017 04:06
Added debug to scheduler.c, see "printf's"
#define PONY_WANT_ATOMIC_DEFS
#include "scheduler.h"
#include "cpu.h"
#include "mpmcq.h"
#include "../actor/actor.h"
#include "../gc/cycle.h"
#include "../asio/asio.h"
#include "../mem/pool.h"
#include "ponyassert.h"
@winksaville
winksaville / Setup-git-send-email.md
Created March 20, 2018 18:25
Setup git send-email using git credentials

Setup git send-email: following these instructions I had some problems. But the following worked:

  • I’m using 2-factor auth on my gmail account so I had to get a “app-password”, see google documentation
  • Modify the global/local .gitconfig file with a sendemail section: [sendemail] smtpEncryption = tls smtpServer = smtp.gmail.com smtpUser = [email protected] smtpServerPort = 587
  • Also add a credential section with a helper.store entry:
@winksaville
winksaville / big-rebase.txt
Created April 10, 2018 18:40
Content of file for a big rebase --interactive --recreate-merges
label onto
# Branch Merging-in-work-from-branch
reset [new root]
pick 027dbf80 Initial commit
pick cc10751a Adding benchmark namespace and removing broken flags
pick e65ca767 Fix printing of time
label branch-point
pick bd5c1cd7 Remove duplicated macros header
pick ab8645c9 benchmark_min_time now works as expected
@winksaville
winksaville / loadObjectImpl-ubuntu-18.04-docker.asm
Created June 21, 2018 01:23
The disassembly of loadObjecImpl from Ubuntu 18.04 LLVM-3.9.1
Dump of assembler code for function _ZN4llvm15RuntimeDyldImpl14loadObjectImplERKNS_6object10ObjectFileE:
=> 0x00007ffff65fc870 <+0>: push r15
0x00007ffff65fc872 <+2>: push r14
0x00007ffff65fc874 <+4>: push r13
0x00007ffff65fc876 <+6>: push r12
0x00007ffff65fc878 <+8>: mov r12,rdx
0x00007ffff65fc87b <+11>: push rbp
0x00007ffff65fc87c <+12>: push rbx
0x00007ffff65fc87d <+13>: mov r13,rsi
0x00007ffff65fc880 <+16>: sub rsp,0x158
@winksaville
winksaville / gdb-log.txt
Created June 21, 2018 01:27
gdb-log running libponyc.tests on Ubuntu-18.04 with its LLVM-3.9.1 dynamic library
root@df5469b996ee:/home/pony/wink/prgs/pony/ponyc# gdb -q --args ./build/debug/libponyc.tests --gtest_filter=CodegenOptimisationTest.MergeSendMessageReordering
Reading symbols from ./build/debug/libponyc.tests...done.
(gdb) set pagination off
(gdb) set disassembly-flavor intel
(gdb) break _ZN4llvm15RuntimeDyldImpl14loadObjectImplERKNS_6object10ObjectFileE
Function "_ZN4llvm15RuntimeDyldImpl14loadObjectImplERKNS_6object10ObjectFileE" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (_ZN4llvm15RuntimeDyldImpl14loadObjectImplERKNS_6object10ObjectFileE) pending.
(gdb) r
Starting program: /home/pony/wink/prgs/pony/ponyc/build/debug/libponyc.tests --gtest_filter=CodegenOptimisationTest.MergeSendMessageReordering
@winksaville
winksaville / main.y.zig
Last active July 19, 2018 18:41
Some zig code and compileLog at the bottom showing some types
const std = @import("std");
const warn = std.debug.warn;
fn Buffer(comptime buffer_size: usize) type {
return struct {
const Self = this;
pub buffer: [buffer_size]u8,
// Initialize if allocated in the stack
[00:07:10] C:\projects\zig-d3l86\llvm+clang-6.0.0-win64-msvc-release\include\llvm/ADT/IntrusiveRefCntPtr.h(167): warning C4800: 'clang::TargetInfo *const ': forcing value to bool 'true' or 'false' (performance warning) [C:\projects\zig-d3l86\build-msvc-release\zig.vcxproj]
[00:07:10] C:\projects\zig-d3l86\llvm+clang-6.0.0-win64-msvc-release\include\llvm/ADT/IntrusiveRefCntPtr.h(167): warning C4800: 'clang::SourceManager *const ': forcing value to bool 'true' or 'false' (performance warning) [C:\projects\zig-d3l86\build-msvc-release\zig.vcxproj]
[00:07:10] C:\projects\zig-d3l86\llvm+clang-6.0.0-win64-msvc-release\include\llvm/ADT/IntrusiveRefCntPtr.h(167): warning C4800: 'clang::FileManager *const ': forcing value to bool 'true' or 'false' (performance warning) [C:\projects\zig-d3l86\build-msvc-release\zig.vcxproj]
[00:07:10] C:\projects\zig-d3l86\llvm+clang-6.0.0-win64-msvc-release\include\llvm/ADT/IntrusiveRefCntPtr.h(167): warning C4800: 'clang::vfs::FileSystem *const ': forcing value to bool 'true'