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 / 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 = wink@saville.com smtpServerPort = 587
  • Also add a credential section with a helper.store entry:
@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"
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 / 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"
@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 / diff-pkgver-7019.patch
Last active August 12, 2017 18:22
aur/aster-hg diff for 7019
diff --git a/.SRCINFO b/.SRCINFO
index c0b8366..04a74f7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -8,7 +8,7 @@ pkgbase = aster-hg
arch = x86_64
license = GPL
depends = med
- depends = metis4
+ depends = metis
(python2venv) wink@wink-desktop:~/dev/codeaster
$ TFELHOME="/home/wink/aur/tfel/src/tfel-2.0.3" INCLUDES="/opt/petsc/linux-c-opt/include /usr/include" LIBPATH="/opt/petsc/linux-c-opt/lib /usr/lib/openmpi /usr/lib" LIB="mumps_common esmumps scotch scotcherr scotcherrexit scotchmetis mpi mpi_mpifh metis pord gfortran scalapack" ./devtools/bin/install_env --internetINFO checking repository /home/wink/dev/codeaster/src
INFO settings added into /home/wink/dev/codeaster/src/.hg/hgrc
INFO checking repository /home/wink/dev/codeaster/data
INFO checking repository /home/wink/dev/codeaster/validation
Do you want to automatically configure and build Code_Aster (y/n) ? y
INFO configure and build Code_Aster by running:
. $HOME/dev/codeaster/devtools/etc/env_unstable.sh
cd /home/wink/dev/codeaster/src
./waf configure
@winksaville
winksaville / gist:1e0ef24ad21fe534d452d5a0684635c7
Created May 19, 2017 16:23
Errors from Alsatian when using tsconfig.base.full
yarn build v0.23.4
$ tsc
core/running/test-runner.ts(86,38): error TS2454: Variable 'currentTestFixtureResults' is used before being assigned.
core/running/test-runner.ts(93,26): error TS2454: Variable 'currentTestResults' is used before being assigned.
core/running/test-runner.ts(97,26): error TS2454: Variable 'currentTestResults' is used before being assigned.
test/builders/test-builder.ts(10,5): error TS2322: Type '{ description: string; focussed: false; ignoreReason: undefined; ignored: false; isAsync: false; ...' is not assignable to type 'ITest'.
Types of property 'timeout' are incompatible.
Type 'null' is not assignable to type 'number'.
test/unit-tests/cli/alsatian-cli-options/help-requested-option.spec.ts(27,16): error TS6133: 'options' is declared but never used.
test/unit-tests/cli/alsatian-cli-options/tap-option.spec.ts(27,15): error TS6133: 'options' is declared but never used.
@winksaville
winksaville / output.txt
Created May 4, 2017 19:11
Output from sh -c 'node --version; npm --version; npm ls' > output.txt
v7.10.0
4.5.0
alsatian@1.3.0 /home/wink/foss/alsatian
├─┬ @types/glob@5.0.30
│ ├── @types/minimatch@2.0.29
│ └── @types/node@7.0.16 deduped
├─┬ @types/gulp@4.0.2
│ ├── @types/node@7.0.16 deduped
│ ├─┬ @types/orchestrator@0.0.31
│ │ └── @types/q@0.0.34
@winksaville
winksaville / js
Created March 21, 2017 16:02
client.nyc.js
"use strict";
var cov_2b132h5ihl = function() {
var path = "dist/client/client.js",
hash = "dd64b65bd32ed754e47b7760300298d1e98129b0",
global = new Function('return this')(),
gcv = "__coverage__",
coverageData = {
path: "dist/client/client.js",
statementMap: {
"0": {