Skip to content

Instantly share code, notes, and snippets.

Avatar
🕵️
Happily Coding 😃

Konstantinos Paparas kelsos

🕵️
Happily Coding 😃
View GitHub Profile
@kelsos
kelsos / PKGBUILD
Created Feb 4, 2020
GH CLI PKGBUILD
View 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 Jun 26, 2019
Locked Transfer Draft
View LockedTransfer.rst

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.

@kelsos
kelsos / StackTrace.java
Created Oct 3, 2017
Geth Mobile Stacktrace
View StackTrace.java
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
View SikorkaRegistry.java
// 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.*;
View SikorkaRegistry.java
// 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 Sep 15, 2017
MenuTint Utility
View MenuTint.kt
@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
View raptr_playtime.json
[
{
"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 Aug 18, 2017
Workaround for coverage enabled debug on library
View part.gradle
//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)
View info.cs
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 Mar 28, 2016
mbrc library create sql
View mbrc-library.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);