Skip to content

Instantly share code, notes, and snippets.

View kelsos's full-sized avatar
🕵️
Happily Coding 😃

Konstantinos Paparas kelsos

🕵️
Happily Coding 😃
View GitHub Profile
@kelsos
kelsos / PKGBUILD
Created February 4, 2020 18:53
GH CLI PKGBUILD
pkgname=gh-cli
pkgver=0.5.4
pkgrel=1
pkgdesc="the GitHub CLI"
arch=('x86_64')
url="https://github.com/cli/cli"
license=('MIT')
depends=()
makedepends=()
provides=("${pkgname%-bin}" "gh")
@kelsos
kelsos / LockedTransfer.rst
Last active June 26, 2019 09:45
Locked Transfer Draft

LockedTransfer

A LockedTransfer is a message used to reserve tokens for a new mediated transfer.

Preconditions

For a LockedTransfer to be considered valid the following conditions have to be true.

  • There is a channel which matches the given chain id, token network address, and channel identifier.
@kelsos
kelsos / StackTrace.java
Created October 3, 2017 18:56
Geth Mobile Stacktrace
go.Universe$proxyerror: abi: cannot unmarshal []common.Address in to []interface {}
at org.ethereum.geth.BoundContract.call(Native Method)
at io.sikorka.android.contract.SikorkaRegistry.getContractAddresses(SikorkaRegistry.kt:78)
at io.sikorka.android.contract.SikorkaRegistry.getContractAddresses$default(SikorkaRegistry.kt:64)
at io.sikorka.android.node.contracts.ContractRepository$getDeployedContracts$1$1.call(ContractRepository.kt:19)
at io.sikorka.android.node.contracts.ContractRepository$getDeployedContracts$1$1.call(ContractRepository.kt:10)
at io.rea
@kelsos
kelsos / SikorkaRegistry.java
Last active October 3, 2017 17:48
Abigen Result
// This file is an automatically generated Java binding. Do not modify as any
// change will likely be lost upon the next re-generation!
package io.sikorka.android.contract;
import org.ethereum.geth.*;
import org.ethereum.geth.internal.*;
@kelsos
kelsos / SikorkaRegistry.java
Created October 3, 2017 15:14
Abigen Result
// This file is an automatically generated Java binding. Do not modify as any
// change will likely be lost upon the next re-generation!
package io.sikorka.android.contract;
import org.ethereum.geth.*;
import org.ethereum.geth.internal.*;
@kelsos
kelsos / MenuTint.kt
Last active September 15, 2017 05:44
MenuTint Utility
@file:Suppress("unused")
/*
* Copyright (C) 2015. Jared Rummler <jared.rummler@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
[
{
"title": "World of Warcraft (PC)",
"total_playtime_seconds": "4870691",
"total_playtime_hours": 1352.97,
"last_played_timestamp": "1501187022",
"last_played_date": "Thu, 27 Jul 2017 20:23:42 +0000"
},
{
@kelsos
kelsos / part.gradle
Last active August 18, 2017 06:32
Workaround for coverage enabled debug on library
//https://issuetracker.google.com/issues/37121729
preBuild.doFirst {
transformClassesAndResourcesWithPrepareIntermediateJarsForDebug.doLast {
def task = transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
final def classes = task.outputs.files.first()
copy {
from classes
into "${buildDir}/tmp/"
}
def merger = new JarMerger(classes)
@kelsos
kelsos / info.cs
Created April 5, 2017 18:18
old window
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using MusicBeeRemote.Core.Logging;
using MusicBeeRemote.Core.Network;
using MusicBeeRemote.PartyMode.Core.View;
@kelsos
kelsos / mbrc-library.sql
Created March 28, 2016 19:55
mbrc library create sql
create table LibraryGenre (
Id integer primary key AUTOINCREMENT,
Name varchar(255) not null,
DateAdded integer default (strftime('%s', 'now')),
DateUpdated integer default 0,
DateDeleted integer default 0
);
create unique index uidx_librarygenre_name on LibraryGenre (Name);