Skip to content

Instantly share code, notes, and snippets.

View mentos1386's full-sized avatar
🚀
0110100001100101011011000110110001101111

Tine Jozelj mentos1386

🚀
0110100001100101011011000110110001101111
View GitHub Profile
# github.com/libp2p/go-libp2p-host
../../go/pkg/mod/github.com/libp2p/go-libp2p-host@v0.0.3/helpers.go:8:3: cannot use h.ID() (type "github.com/libp2p/go-libp2p-peer".ID) as type "github.com/libp2p/go-libp2p-core/peer".ID in field value
# github.com/libp2p/go-libp2p-kbucket
../../go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.1.1/table.go:81:27: cannot use p (type "github.com/libp2p/go-libp2p-peer".ID) as type "github.com/libp2p/go-libp2p-core/peer".ID in argument to rt.metrics.LatencyEWMA
../../go/pkg/mod/github.com/libp2p/go-libp2p-kbucket@v0.1.1/table.go:246:66: cannot use p (type "github.com/libp2p/go-libp2p-peer".ID) as type "github.com/libp2p/go-libp2p-core/peer".ID in argument to rt.metrics.LatencyEWMA
# github.com/ipfs/go-ipns
../../go/pkg/mod/github.com/ipfs/go-ipns@v0.0.1/record.go:77:26: cannot use pid (type "github.com/libp2p/go-libp2p-peer".ID) as type "github.com/libp2p/go-libp2p-core/peer".ID in argument to v.KeyBook.PubKey
../../go/pkg/mod/github.com/ipfs/go-ipns@v0.0.1/record.go:82:2: cann
# github.com/ipfs/go-ipfs/core/bootstrap
../../go/pkg/mod/github.com/ipfs/go-ipfs@v0.4.23/core/bootstrap/bootstrap.go:220:14: undefined: config.BootstrapPeer
# github.com/ipfs/go-ipfs/dagutils
../../go/pkg/mod/github.com/ipfs/go-ipfs@v0.4.23/dagutils/diffenum.go:43:11: undefined: merkledag.EnumerateChildrenAsync
# github.com/libp2p/go-libp2p-autonat-svc
../../go/pkg/mod/github.com/libp2p/go-libp2p-autonat-svc@v0.0.5/svc.go:50:3: cannot use dialer (type "github.com/libp2p/go-libp2p-core/host".Host) as type "github.com/libp2p/go-libp2p-host".Host in field value:
"github.com/libp2p/go-libp2p-core/host".Host does not implement "github.com/libp2p/go-libp2p-host".Host (wrong type for ConnManager method)
have ConnManager() connmgr.ConnManager
want ConnManager() ifconnmgr.ConnManager
2019-12-16 09:10:40.071 DEBUG 1 --- [ XNIO-2 task-7] o.s.s.w.u.matcher.AntPathRequestMatcher : Checking match of request : '/img/loading.gif'; against '/img/**'
2019-12-16 09:10:40.074 DEBUG 1 --- [ XNIO-2 task-7] o.s.security.web.FilterChainProxy : /img/loading.gif has an empty filter list
2019-12-16 09:10:40.074 DEBUG 1 --- [ XNIO-2 task-7] o.s.web.servlet.DispatcherServlet : DispatcherServlet with name 'dispatcherServlet' processing GET request for [/img/loading.gif]
2019-12-16 09:10:40.074 DEBUG 1 --- [ XNIO-2 task-7] s.w.s.m.m.a.RequestMappingHandlerMapping : Looking up handler method for path /img/loading.gif
2019-12-16 09:10:40.075 DEBUG 1 --- [ XNIO-2 task-7] s.w.s.m.m.a.RequestMappingHandlerMapping : Did not find handler method for [/img/loading.gif]
2019-12-16 09:10:40.074 DEBUG 1 --- [ XNIO-2 task-9] io.undertow.request.security : Attempting to authenticate /app/01_hello, authentication required: false
2019-12-16 09:10:40.075 DEBUG 1 --- [ XNIO-2 task-6] o.s.s.w.he
2019-12-16 08:57:52.435 DEBUG 1 --- [ XNIO-2 task-7] o.s.web.servlet.DispatcherServlet : Last-Modified value for [/webjars/bootstrap/3.3.7/css/bootstrap.min.css.map] is: -1
2019-12-16 08:57:52.437 DEBUG 1 --- [ XNIO-2 task-9] io.undertow.request.security : Attempting to authenticate /img/loading.gif, authentication required: false
2019-12-16 08:57:52.439 DEBUG 1 --- [ XNIO-2 task-8] io.undertow.request : Matched default handler path /app/01_hello
2019-12-16 08:57:52.440 DEBUG 1 --- [ XNIO-2 task-8] o.s.b.w.s.f.OrderedRequestContextFilter : Bound request context to thread: HttpServletRequestImpl [ POST /app/01_hello ]
2019-12-16 08:57:52.440 DEBUG 1 --- [ XNIO-2 task-8] o.s.s.w.u.matcher.AntPathRequestMatcher : Checking match of request : '/app/01_hello'; against '/css/**'
2019-12-16 08:57:52.440 DEBUG 1 --- [ XNIO-2 task-8] o.s.s.w.u.matcher.AntPathRequestMatcher : Checking match of request : '/app/01_hello'; against '/img/**'
2019-12-16 08:57:52.441 DEBUG 1 --
#include <SPI.h>
#include <Ethernet.h>
#include "PubSubClient.h"
// Update these with values suitable for your network.
byte mac[] = { 0xEA, 0x66, 0xCC, 0x6A, 0xF7, 0xCB };
IPAddress myDns(192, 168, 0, 1);
// Hue lights
IPAddress hueLightsHubIP(192, 168, 20, 85);
package com.example.tinej.iota3;
import android.Manifest;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.RemoteException;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
async function bootstrap(): Promise<void> {
// create koa app
const app = new Koa();
const router = new Router();
// create connection with database
// note that its not active database connection
// TypeORM creates you connection pull to uses connections from pull on your requests
@Controller()
export class SomeController {
constructor(
@Inject('someValue') private someValue: string, // Inject
) {
}
@mentos1386
mentos1386 / index.html
Created November 25, 2017 17:49
SocketIO Debugger
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.js"></script>
<script>
$(function(){
var iosocket = io.connect('http://localhost:4010');
var room = 'message';
var log = $('#log');
@mentos1386
mentos1386 / yt-playlist-downloader.sh
Created October 15, 2017 21:38
Download Youtube playlist
#!/bin/bash
# Prameters
PLAYLIST_ID=$1;
TYPE=$2;
# Constants
FOLDER="$HOME/Youtube";
PROGRAM_DATA="$(pwd)/yt-playlist-downloader"