Skip to content

Instantly share code, notes, and snippets.

View whiteyhat's full-sized avatar
Building on top of bitcoin

Carlos Roldan whiteyhat

Building on top of bitcoin
View GitHub Profile
.top-header {background-color: #fff;}
.top-header .timer-row__progress-bar {background:#D00AAA;}
.top-header .timer-row {background: #AAAAAA;}
.close-icon {color:#000;}
.payment-tabs__slider {background: #D00AAA; }
.separatorGem {background: #D00AAA;}
.action-button {color: #fff; background-color: #D00AAA;border-color: #D00AAA;}
.action-button:hover {background-color: #7faacc;}
.action-button:focus, .action-button.focus {color: #fff;background-color: #D00AAA;
border-color: #D00AAA;}
@whiteyhat
whiteyhat / .zshrc
Created March 14, 2020 11:35 — forked from sokardys/.zshrc
export TERM="xterm-256color"
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/sokardys/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@whiteyhat
whiteyhat / .zshrc
Created March 14, 2020 10:50 — forked from robertcoopercode/.zshrc
Zsh configuration file
#------------------
# Shell Variables
#------------------
# Specify VS Code as default editor for the React Native Simulator
export REACT_EDITOR=code-insiders
# Set VS Code Insiders as default code editor
export EDITOR=code-insiders
# Android SDK
export ANDROID_HOME=~/Library/Android/sdk
@whiteyhat
whiteyhat / docker-compose.yml
Last active October 2, 2020 10:50
Docker Compose for Rasa X
version: "3.4"
networks:
web:
external: true
default:
services:
rasa-x:
restart: always
image: "rasa/rasa-x:latest"
@whiteyhat
whiteyhat / Dockerfile
Last active August 30, 2019 19:48
Docker image to run Rasa X
FROM python:3.6-slim as builder
# if this installation process changes, the enterprise container needs to be
# updated as well
WORKDIR /build
COPY . .
RUN python setup.py sdist bdist_wheel
RUN find dist -maxdepth 1 -mindepth 1 -name '*.tar.gz' -print0 | xargs -0 -I {} mv {} rasa.tar.gz
FROM python:3.6-slim
"use strict";
const User = use("App/Models/User");
const Invoice = use("App/Models/Invoice");
const Refill = use("App/Models/Refill");
const lnService = require("ln-service");
const { subscribeToInvoices } = require("ln-service");
const { subscribeToTransactions } = require("ln-service");
const { getChainTransactions } = require("ln-service");
const LndService = use("App/Services/LndService");
const Logger = use("Logger");
@whiteyhat
whiteyhat / start.js
Last active August 28, 2019 16:51
File that runs on startup to subscribe to LN and ONCHAIN transactions
"use strict";
const User = use("App/Models/User");
const Invoice = use("App/Models/Invoice");
const Refill = use("App/Models/Refill");
const lnService = require("ln-service");
const { subscribeToInvoices } = require("ln-service");
const { subscribeToTransactions } = require("ln-service");
const { getChainTransactions } = require("ln-service");
const LndService = use("App/Services/LndService");
const Logger = use("Logger");
@whiteyhat
whiteyhat / subscriptions.ts
Created August 18, 2019 16:42
Subscribe to invoices using EXPRESS + SERVERLESS (Lambda)
import LndService from "./services/LndService";
import paymentsService from "./services/paymentsService";
const { subscribeToInvoices } = require("ln-service");
const lnService = require('ln-service');
class Subscriptions {
public initWS = async () => {
// Since BTCPay Server closes WS every 90 seconds it must be looped
try {
Verifying my Blockstack ID is secured with the address 12TwTCpT9HATMP6AX3C61XKZzmPXZj3A4B https://explorer.blockstack.org/address/12TwTCpT9HATMP6AX3C61XKZzmPXZj3A4B
@whiteyhat
whiteyhat / gist:ffa15b8116819e0bb1bc4605cf8b1260
Last active July 21, 2019 12:51
ERROR LOG WHEN DOCKERIZINg ADONIS.JS
CXX(target) Release/obj.target/secp256k1/src/publickey.o
In file included from ../src/publickey.cc:7:0:
../src/publickey.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE publicKeyCreate(Nan::NAN_METHOD_ARGS_TYPE)':
../src/util.h:15:76: warning: 'v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const' is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
compressed = value->BooleanValue(info.GetIsolate()->GetCurrentContext()).ToChecked() ? v_true : v_false; \
^
../src/publickey.cc:20:3: note: in expansion of macro 'UPDATE_COMPRESSED_VALUE'
UPDATE_COMPRESSED_VALUE(flags, info[1], SECP256K1_EC_COMPRESSED, SECP256K1_EC_UNCOMPRESSED);
^~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,