Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Problem Solver.

Yusuf Taiwo Hassan teezzan

💭
Problem Solver.
View GitHub Profile
View Message.sol
//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 Oct 16, 2021 — forked from betrcode/README.md
Using Python to check if remote port is open and accessible.
View README.md
@teezzan
teezzan / readme-template.md
Created Jul 6, 2021 — 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!
View readme-template.md

Project Title

Description

The What

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

The Why

View Lorahop.ino
//Libraries for LoRa
#include <SPI.h>
#include <LoRa.h>
//Libraries for OLED Display
View MiGcoin.sol
pragma solidity ^0.6.12;
// SPDX-License-Identifier: Unlicensed
interface IBEP20 {
function totalSupply() external view returns (uint256);
@teezzan
teezzan / app.js
Created Jan 19, 2021
Barcode New Upgrade
View app.js
// 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");
View Server.js
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');
View test.js
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();
View install.sh
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
@teezzan
teezzan / index.js
Created Sep 4, 2020
Add Text to Video Using Nodejs
View index.js
var ffmpeg = require('fluent-ffmpeg');
var axios = require('axios');
// make sure you set the correct path to your video file
var proc = ffmpeg('./input.mp4')
.videoFilters({
filter: 'drawtext',
options: {
fontfile:'font.ttf',
text: 'THIS IS TEXT',