Skip to content

Instantly share code, notes, and snippets.

View s4kibs4mi's full-sized avatar
🎯
Focusing

Sakib Sami s4kibs4mi

🎯
Focusing
View GitHub Profile
GOROOT=/usr/local/Cellar/go/1.11/libexec #gosetup
GOPATH=/Users/sakib/go #gosetup
/usr/local/Cellar/go/1.11/libexec/bin/go build -o /private/var/folders/7p/v66nf1vx2d54b5bmsn4q0tx80000gn/T/___go_build_main_go /Users/sakib/go/src/github.com/s4kibs4mi/iot-test/main.go #gosetup
/private/var/folders/7p/v66nf1vx2d54b5bmsn4q0tx80000gn/T/___go_build_main_go #gosetup
Connected
==============================
ID : Msn4VLdTy, Delivered : 0 times
ID : Msc4_LdTy, Delivered : 0 times
ID : psnf_LdHm, Delivered : 0 times
ID : Hsn4_RdHm, Delivered : 0 times
ID : tnUdURdTm, Delivered : 3 times
ID : tcIKILKTm, Delivered : 2 times
ID : tnUdILdHy, Delivered : 3 times
ID : acUKURKHy, Delivered : 4 times
ID : acIdULdHm, Delivered : 3 times
ID : tcUdULKTy, Delivered : 3 times
ID : tnUdIRKTy, Delivered : 1 times
ID : acUdULKHy, Delivered : 2 times
ID : anIKULKTm, Delivered : 4 times
ID : acUdURKTy, Delivered : 3 times
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: protos/user.proto
package protos
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: protos/common.proto
/*
Package protos is a generated protocol buffer package.
It is generated from these files:
protos/common.proto
protos/user.proto
syntax = "proto3";
package protos;
message ErrorDetails {
string Field = 1;
repeated string Details = 2;
}
message Error {
syntax = "proto3";
package protos;
import "protos/common.proto";
message User {
string ID = 1;
string Name = 2;
string Username = 3;
@s4kibs4mi
s4kibs4mi / install-scala-sbt-and-java-on-ubuntu.md
Created September 21, 2017 21:27 — forked from alexislucena/install-scala-sbt-and-java-on-ubuntu.md
Ubuntu: Install Scala, SBT and Java on Ubuntu 16.04

Install Scala 2.11.8

$ sudo apt-get remove scala-library scala
$ sudo wget www.scala-lang.org/files/archive/scala-2.11.8.deb
$ sudo dpkg -i scala-2.11.8.deb

Check Scala version

$ scala -version
@s4kibs4mi
s4kibs4mi / gronthodotcom-dump_27-02-2017.json
Created February 27, 2017 13:17 — forked from prantu/gronthodotcom-dump_27-02-2017.json
JSON dump file of Book Name and their download link (PDF) from my favourite book site, grontho.com. This is a output of my project written with scrapy in python. Cheers.
[
{
"bookNumber": 1,
"bookLink": "http://50.30.47.15/Ebook/English/Peace_and_its_Discontents.pdf",
"bookTitle": "Peace and It’s Discontents",
"pageLink": "http://www.grontho.com/peace-and-its-discontents/"
},
{
"bookNumber": 2,
"bookLink": "No PDF link is available",
-include_lib("emqttd/include/emqttd.hrl").
-export([load/1, unload/0]).
-export([on_client_connected/3, on_client_disconnected/3]).
-export([on_client_subscribe/4, on_client_unsubscribe/4]).
-export([on_session_created/3, on_session_subscribed/4, on_session_unsubscribed/4, on_session_terminated/4]).
-export([on_message_publish/2, on_message_delivered/4, on_message_acked/4]).
load(Env) ->
emqttd:hook('client.connected', fun ?MODULE:on_client_connected/3, [Env]),
@s4kibs4mi
s4kibs4mi / EMQ_erlang.mk
Created February 17, 2017 11:35
EMQ erlang.mk content
# Copyright (c) 2013-2015, Loïc Hoguin <essen@ninenines.eu>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES