Skip to content

Instantly share code, notes, and snippets.

View teezzan's full-sized avatar
💭
Problem Solver.

Yusuf Taiwo Hassan teezzan

💭
Problem Solver.
View GitHub Profile
package main
import (
"log"
"time"
"github.com/labstack/echo/v5"
"github.com/pocketbase/pocketbase"
"github.com/pocketbase/pocketbase/apis"
"github.com/pocketbase/pocketbase/core"
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
contract AdviceContract {
address owner;
mapping(address => bool) public Doctors;
struct Message {
uint256 time;
@teezzan
teezzan / README.md
Created October 16, 2021 06:15 — forked from betrcode/README.md
Using Python to check if remote port is open and accessible.
@teezzan
teezzan / readme-template.md
Created July 6, 2021 16:07 — forked from meg-gutshall/readme-template.md
A README.md template I created from a few different resources. It's a work in progress. ;) Please comment below with any suggestions for edits!

Project Title

Description

The What

A little info about your project and/or overview that explains what the project is about.

The Why

//Libraries for LoRa
#include <SPI.h>
#include <LoRa.h>
//Libraries for OLED Display
pragma solidity ^0.6.12;
// SPDX-License-Identifier: Unlicensed
interface IBEP20 {
function totalSupply() external view returns (uint256);
@teezzan
teezzan / app.js
Created January 19, 2021 16:22
Barcode New Upgrade
// var body = document.body,
// html = document.documentElement;
// var height = Math.max( body.scrollHeight, body.offsetHeight,
// html.clientHeight, html.scrollHeight, html.offsetHeight );
const { findAllPackage, removePackage, updatePackage, findPackagesLocation } = require("./database/db-func");
@teezzan
teezzan / Server.js
Created January 7, 2021 21:45
Test Script
const express = require("express");
const fs = require('fs')
const app = express();
const axios = require("axios");
const bodyParser = require('body-parser');
const _ = require("lodash");
const { v4: uuidv4 } = require('uuid');
global.window = {}
const { jsPDF } = require('jspdf/dist/jspdf.node')
const { applyPlugin } = require('./node_modules/jspdf-autotable/dist/jspdf.plugin.autotable');
let usb = require('usb')
function connectdevice(vID, pId) {
var device = usb.findByIds(vID, pId);
device.open();
var deviceINTF = device.interface(0);
if (deviceINTF.isKernelDriverActive())
deviceINTF.detachKernelDriver();
deviceINTF.claim();
git clone https://github.com/muratdemirtas/MT7601u.git
cd mt7601u/
sudo cp -v /lib/modules/$(uname -r)/build/Module.symvers src/os/linux
sudo make clean && make all && make install
sudo rm -rvf src/os/linux/Module.symvers
sudo ifconfig wlan0 down
sudo rmmod mt7601u
sudo ifconfig ra0 up
sudo ifconfig ra0 192.168.42.1
sudo iptables -F