Skip to content

Instantly share code, notes, and snippets.

@XertroV
XertroV / onerednail.md
Last active Nov 18, 2020
onerednail.com
View onerednail.md

One Red Nail

A statement on the importance of philosophy and morality in daily life.

v1.2, 2020-11-19, Max Kaye. (revisions)

I no longer endorse this idea

I have changed my mind about this idea. I'm leaving the rest of the document (after this section) as it is for the moment. I might change things later.

@XertroV
XertroV / Onerednail-draft.md
Last active Mar 6, 2019
Draft for onerednail.com
View Onerednail-draft.md

One Red Nail

A statement on the importance of philosophy and morality in daily life.

The Physical

The left hand ring finger's nail is painted red.

The Background

View gist:6f267f3000fdb32d056011bf4b18443c
> var c = eth.contract([{
"constant": true,
"inputs": [],
"name": "getCount",
"outputs": [
{
"name": "count",
"type": "uint256"
}
],
@XertroV
XertroV / ctfHelpers.sol
Last active Jun 17, 2018
Eth CTF Helpers
View ctfHelpers.sol
pragma solidity ^0.4.24;
contract _useful {
mapping (address => bool) public owners;
address[] deployed;
event Deployed(address d);
event SD();
View ipfsPinned.js
const IPFS = require('ipfs-api');
const R = require('ramda');
const async = require('async');
const child_process = require('child_process')
const ipfs = IPFS('localhost', '5001', {protocol: 'http'});
let size = 0;
let nErrors = 0;
@XertroV
XertroV / gist:d503a1e9db4bc1fd617c5ee20a619c4c
Created Feb 22, 2018
Copy of chat log from Flux slack - #dev - 21-22 Feb 2018
View gist:d503a1e9db4bc1fd617c5ee20a619c4c

<continued from #general>

Sven Mason [15:52] I have not used Digital Ocean before (where the forum is currently hosted), it seems like there is more admin involved than eg AWS, but it is cheaper. Maybe AWS would take less admin resources than Digital Ocean once it is setup? Also AWS being the larger perhaps there is a higher chance supporters will have experience working with it? (this is if we chose a self-hosted environment). We could stay with Digital Ocean if Max wanted and try to fix what is going wrong there, to do that we could discuss admin access protocol with @max?

Max Kaye [16:51] Whoops - posted reply in #general @sventhebarbarian - Auto updates actually stopped working - it's manual updates that are breaking 😕 DO and AWS are equiv in terms of admin - DO is actually a bit nicer I think bc you can reset pws easily and share nodes much more easily (via a team) than you can with AWS

View gist:5001704845eeba1075c1abfb7fb1fc86
Error found:
in module Test.QuickCheck.Gen
at <path>/bower_components/purescript-quickcheck/src/Test/QuickCheck/Gen.purs line 79, column 16 - line 79, column 52
No type class instance was found for
Control.Monad.Rec.Class.MonadRec (State
{ newSeed :: Seed
, size :: Int
}
@XertroV
XertroV / nsw-byron-group-e-results.sh
Last active Sep 10, 2016
simple script to say group e results as they're updated
View nsw-byron-group-e-results.sh
MAXSOFAR='0';
GROUPEMAX='0'
while [ 1 ]; do
echo 'running';
CSV=$(curl -s http://votensw.info/data/byron-shire-council/first_preference_councillor.csv)
RESULTS=$(echo "$CSV" | tail -n 3 | head -n 1 | cut -d ',' -f 21 | tr -d $'\n' | tr -d $'\r');
GROUPETOTAL=$(echo "$CSV" | tail -n 25 | head -n 1 | cut -d ',' -f 21 | tr -d $'\n' | tr -d $'\r');
JIMMY=$(echo "$CSV" | tail -n 24 | head -n 1 | cut -d ',' -f 21 | tr -d $'\n' | tr -d $'\r')
echo "Got Results $RESULTS... Group E: $GROUPETOTAL... Jimmy: $JIMMY"
if [[ "$RESULTS" -eq "$MAXSOFAR" ]] ; then
@XertroV
XertroV / nsw-election-results-byron-alert.sh
Created Sep 10, 2016
little bash script to notify aurally when results come in for Byron Council Elections
View nsw-election-results-byron-alert.sh
NORESULTS='class="sum02"><tdcolspan="3">ProgressiveTotalVotes</td><tdclass="r"></td><tdclass="empty"></td><tdclass="empty"></td><tdclass="empty"></td></';
while sleep 1; do
echo 'running';
RESULTS=$(curl -s http://votensw.info/data/byron-shire-council/summary_councillor.html | tr -d ' ' | tr -d '\n' | sed 's/tr/\'$'\n/g' | grep sum02);
if [ "$RESULTS" == "$NORESULTS" ] ; then
echo 'no results' ;
# say 'no results' # debug only
else
echo 'results';
say 'results are in';
View gist:f6495d9fcc82ff96b05a4986c1316b61
# First: from the HTTP debug interface (Which hung with the RPC command...)
## See below for `debug.stacks()`
```
goroutine 156 [running]:
runtime/pprof.writeGoroutineStacks(0x6b42108, 0xc82c353ee0, 0x0, 0x0)
/usr/local/opt/go/libexec/src/runtime/pprof/pprof.go:516 +0x84
runtime/pprof.writeGoroutine(0x6b42108, 0xc82c353ee0, 0x2, 0x0, 0x0)
/usr/local/opt/go/libexec/src/runtime/pprof/pprof.go:505 +0x46
You can’t perform that action at this time.