Skip to content

Instantly share code, notes, and snippets.

Avatar

Erick Calder ekkis

  • Arix Int'l
  • LalaLand
View GitHub Profile
@ekkis
ekkis / ricard
Created Jan 13, 2020
EOS tools
View ricard
#!/usr/bin/env node
const fs = require('fs');
const d = 'ricardian';
if (!fs.existsSync(d)) fs.mkdirSync(d);
args().forEach(fn => doc(fn));
function args() {
var ret = process.argv.slice(2);
@ekkis
ekkis / get_table_rows
Created Jun 17, 2019
Retrieving data from EOS tables
View get_table_rows
table: async (table, opts = {}) => {
var eos = await self.init(opts);
var r, next = 0, ret = [];
do {
r = await eos.rpc.get_table_rows({
table,
code: opts.code || CONTRACT,
scope: opts.scope || ACCT,
limit: opts.limit || 100,
lower_bound: next,
@ekkis
ekkis / run
Last active Jun 24, 2019
EOS scripts
View run
#!/bin/bash
CMD=$1; shift
EOS=~/dev/eos/eosio
isRunning() {
s=$(echo $1 |sed 's/./[&]/') # this trick prevents grep from finding itself
ps aux |grep --silent $s
[ $? -eq 0 ] && echo Y || echo N
}
@ekkis
ekkis / configure.sh
Last active Apr 26, 2019
Capital Hero setup scripts
View configure.sh
PASS="$(node -e 'console.log(crypto.randomBytes(16).toString("hex"))')"
echo $PASS > .pass
echo "Password saved to .pass"
run() {
cmd="$@"
[ ! -z "$DEBUG" ] && echo "$cmd"
[ -z "NOEXEC" ] && $cmd
}
sql() {
View keybase.md

Keybase proof

I hereby claim:

  • I am ekkis on github.
  • I am ekkis (https://keybase.io/ekkis) on keybase.
  • I have a public key ASCLtGsr9sS4tNmvMm6TI6bRH4-fRlj5mlzVj9M6_8Rk_wo

To claim this, I am signing this object:

View FontAwesomeUnicode.csv
glass f000
music f001
search f002
envelope-o f003
heart f004
star f005
star-o f006
user f007
film f008
th-large f009
@ekkis
ekkis / ColourNamesCodes.csv
Last active Oct 16, 2015
Colour Name/Codes
View ColourNamesCodes.csv
AliceBlue F0F8FF
AntiqueWhite FAEBD7
Aqua 00FFFF
Aquamarine 7FFFD4
Azure F0FFFF
Beige F5F5DC
Bisque FFE4C4
Black 000000
BlanchedAlmond FFEBCD
Blue 0000FF
@ekkis
ekkis / cypher.js
Created Aug 24, 2015
Provides JQuery functionality to retrieve data from the Neo4j server
View cypher.js
var neo = {
url: 'http://localhost:7474',
user: 'neo4j',
password: 'nopass',
};
function cypher(query, success) {
query = { statements: [
{statement: query, resultDataContents: ["graph","row"]}
]};
@ekkis
ekkis / svnrepo-layout-flip
Created Jun 16, 2015
Converts a CVS repository to Subversion, changing the layout
View svnrepo-layout-flip
#!/usr/bin/perl
#
# svnrepo-layout-flip
# Copyright (C) 2009 Erick Calder
# All rights reserved.
#
# - Synopsis -
# the utility cvs2svn can convert an entire
# CVS repository to Subversion, but its choice
@ekkis
ekkis / domain-check
Created Jun 16, 2015
Checks a list of domains or e-mail addresses
View domain-check
#!/usr/bin/perl
use Socket;
$\ = $/;
$debug = 1;
@d = @ARGV;
unless (@d) {
print "Enter a list of domains or e-mail addresses to be checked, one per line:";
chomp(@d = <>);