Skip to content

Instantly share code, notes, and snippets.

View tarmo888's full-sized avatar
Developing on Obyte network

Tarmo tarmo888

Developing on Obyte network
View GitHub Profile
@tarmo888
tarmo888 / main.lua
Created December 22, 2022 09:34
"Shooting Stars" by @XorDev for Love2D
local prevW, prevH = 1280, 720
function love.load(arg)
love.filesystem.setIdentity('ShootingStars')
local pixelcode = [[
/*
"Shooting Stars" by @XorDev
I got hit with inspiration for the concept of shooting stars.
This is what I came up with.
@tarmo888
tarmo888 / lock-with-interest.js
Created October 5, 2020 18:28
rewards interest for locking up funds
/*jslint node: true */
'use strict';
const constants = require('ocore/constants.js');
const conf = require('ocore/conf');
const db = require('ocore/db');
const eventBus = require('ocore/event_bus');
const validationUtils = require('ocore/validation_utils');
const headlessWallet = require('headless-obyte');
var sessionData = {};
@tarmo888
tarmo888 / bouncer-forwarder.js
Last active October 5, 2020 18:23
bounces the payment to inserted address
/*jslint node: true */
'use strict';
const constants = require('ocore/constants.js');
const conf = require('ocore/conf');
const db = require('ocore/db');
const eventBus = require('ocore/event_bus');
const validationUtils = require('ocore/validation_utils');
const headlessWallet = require('headless-obyte');
Array.prototype.forEachAsync = async function(fn) {
@tarmo888
tarmo888 / php7-apache2-redis.sh
Last active August 20, 2017 04:15
php7.0-fpm (FastCGI Process Manager), Apache2 (mod_mpm_event & mod_proxy_fcgi) and Redis on WSL (Windows Subsystem for Linux)
#!/bin/bash
sudo apt-get install apache2 php7.0-fpm -y
sudo apt-get install php7.0-mbstring php7.0-xml php7.0-gd php7.0-curl php7.0-zip -y
sudo apt-get install redis-server php-redis -y
sudo a2enconf php7.0-fpm
sudo a2enmod proxy
sudo a2enmod proxy_fcgi
sudo a2enmod rewrite
#sudo a2dismod status