Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am figueredo on github.
  • I am figueredo (https://keybase.io/figueredo) on keybase.
  • I have a public key ASA9rg46M6wtWTOYRCVMIUNgxGaXDF2gffati5RxNhrJ-wo

To claim this, I am signing this object:

attempts name qualify score
1 Anastasia yes 12.5
3 Dima no 9.0
2 Katherine yes 16.5
3 James no
2 Emily no 9.0
3 Michael yes 20.0
1 Matthew yes 14.5
1 Laura no
2 Kevin no 8.0
@figueredo
figueredo / fork.js
Created March 19, 2019 02:57
Fork Meshblu GitHub repositories by NPM package names
const readline = require('readline');
const Writeable = require('stream').Writable;
const Octokit = require('@octokit/rest');
const RegClient = require('npm-registry-client');
const GitUrlParse = require('git-url-parse');
const _ = require('lodash');
const NPM_BASE_URI = 'https://registry.npmjs.org'
// CLI
const config = require('config');
const KNoTCloud = require('knot-cloud');
async function main() {
const host = config.get('cloud.host');
const port = config.get('cloud.port');
const uuid = config.get('cloud.uuid');
const token = config.get('cloud.token');
const cloud = new KNoTCloud(host, port, uuid, token);
try {
const config = require('config');
const KNoTCloud = require('knot-cloud');
async function main() {
const host = config.get('cloud.host');
const port = config.get('cloud.port');
const uuid = config.get('cloud.uuid');
const token = config.get('cloud.token');
const cloud = new KNoTCloud(host, port, uuid, token);
try {
#include <KNoTThing.h>
#define LOCK_ID 1
#define LOCK_NAME "Lock"
#define CARD_READER_ID 2
#define CARD_READER_NAME "Card reader"
KNoTThing thing;
uint8_t lock;
@figueredo
figueredo / Vagrantfile
Last active June 15, 2018 22:20
KNoT development box
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "archlinux/archlinux"
config.vm.provision "shell", inline: <<-SHELL
# Upgrade the system
pacman -Syu --noconfirm
# Install packages from official repo
@figueredo
figueredo / ynabconverter.py
Created March 15, 2018 03:27
YNAB converter (used before I create bank2ynab)
#!/usr/bin/python
import sys, getopt, re
def usage(error):
print error
print "Usage: ynabconverter.py -i <input file> [-o <output file>]"
options, ignored = getopt.getopt(sys.argv[1:], 'i:o:');