Skip to content

Instantly share code, notes, and snippets.

View hoai97nam's full-sized avatar

JoeB hoai97nam

View GitHub Profile

Intro

I am normal guy with coding hobby

I wish I could turn everything automactically by programming

Be willing to discuss about related topics

Don't hesitate to contact me at

from telethon.sync import TelegramClient
from telethon.tl.functions.messages import GetDialogsRequest
from telethon.tl.types import InputPeerEmpty, InputPeerChannel, InputPeerUser
from telethon.errors.rpcerrorlist import PeerFloodError, UserPrivacyRestrictedError
from telethon.tl.functions.channels import InviteToChannelRequest
import sys
import csv
import traceback
import time
@hoai97nam
hoai97nam / scrape
Created June 18, 2020 23:08
scrape
from telethon.sync import TelegramClient
import csv
from telethon.sync import TelegramClient
api_id = yourID
api_hash = 'yourhash'
phone = '+yourphone'
client = TelegramClient(phone, api_id, api_hash)
client.connect()
@hoai97nam
hoai97nam / run with streaming video
Created June 18, 2020 22:20
run with streaming video
./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights -c 1
$ ./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights traffic.mp4
@hoai97nam
hoai97nam / configure mode
Created June 18, 2020 22:19
configure mode
$ sudo nvpmodel -m 0
$ make
@hoai97nam
hoai97nam / Download darknet
Created June 18, 2020 22:17
Download darknet
$ git clone https://github.com/pjreddie/darknet yolov3
@hoai97nam
hoai97nam / checking modules
Created June 18, 2020 22:16
checking modules
$ cd /opencv/build
$ apt search ccmake
$ sudo apt-get install cmake-curses-gui
$ ccmake ..
@hoai97nam
hoai97nam / build Opencv
Created June 18, 2020 22:15
build Opencv
$ git clone https://github.com/jetsonhacks/buildOpenCVTX2.git`
$ ./buildOpenCV.sh
@hoai97nam
hoai97nam / clone jetson kernel
Created June 18, 2020 22:13
clone jetson kernel
$ git clone https://github.com/jetsonhacks/buildJetsonTX2Kernel.git`
$ cd buildJetsonTX2Kernel