Skip to content

Instantly share code, notes, and snippets.

View cyysky's full-sized avatar

CHONG YOE YAT cyysky

View GitHub Profile
@wberdowski
wberdowski / Popcat no-click bot POC.js
Last active December 8, 2023 04:38 — forked from DaWe35/Popcat click bot.js
Ban-proof popcat bot
/*
1) Open https://popcat.click
2) Open console (F12 or CTRL+SHIFT+I)
3) Insert code & run
4) Monitor bot progress in the console
Note: popcat.click server registers only 800 pops every 30 seconds per IP address (that's why this bot is slow and runnig it in multiple tabs won't work).
If you'll send 800 or more clicks 10 times in a row, you'll get banned for 12 hours ("ban" cookie is set).
This bot addresses this issue and will NOT get you banned.
/*
1) Open https://popcat.click
2) Open console (F12)
3) Insert code & run
*/
var event = new KeyboardEvent('keydown', {
key: 'g',
ctrlKey: true
@mengwangk
mengwangk / yolov5.py
Created February 16, 2021 12:35
YOLOV5 - Backend yolov5.py
import torch
import os
import logging
from dotenv import load_dotenv, find_dotenv
from PIL import Image
load_dotenv(find_dotenv())
yolo_model = os.getenv("YOLO_MODEL", "yolov5s")
logging.info(f"YOLO model - {yolo_model}")
@immengineer
immengineer / GenTLUSB3OpenCV.py
Created May 7, 2019 05:53
Harvester & OpenCV DisplayImage
from harvesters.core import Harvester
import sys
import traceback
import cv2
def main():
h = Harvester()
h.add_cti_file('C:/Program Files/JAI/SDK/bin/JaiUSB3vTL.cti')
h.update_device_info_list()
ia = h.create_image_acquirer(0)
@willprice
willprice / README.md
Last active February 8, 2023 21:27
Install OpenCV 4.1.2 for Raspberry Pi 3 or 4 (Raspbian Buster)

Install OpenCV 4.1.2 on Raspbian Buster

$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.2/build
$ sudo make install
@herrfeder
herrfeder / sricam.md
Last active December 9, 2023 03:33
Offensive IOT Blog - This blog post has been created for completing the requirements of the SecurityTube Offensive Internet of Things course. http://www.securitytube-training.com/online-courses/offensive-internet-of-things-exploitation/index.html

Student ID: IoTE-775

This Blog/Gist will be very detailed with a lot of additional listings to see the process and methodology of Examination.

Sricam SP009 Hardware and Software Examination

In this gist I will try to examine and exploit the Sricam SP009. I purchased it from Attify with the IOT Exploitation Kit.

  1. First Recon
  • doing Research on Manufacturer Details
@aolkin
aolkin / Melexis MLX90614.md
Last active April 1, 2024 02:13
Quick library to read from the MLX90614 with python on a Raspberry Pi, using the Adafruit_I2C library

Note that the following code must be run at every boot for this to work, because of the repeated-start requirement:

sudo su -c 'echo "Y" > /sys/module/i2c_bcm2708/parameters/combined'

@debuggerboy
debuggerboy / static_dir_to_root_flask.txt
Created September 6, 2015 09:13
Serving Static Files From Root “/” and not “/static” Using Flask
There’s some discussion about how to do this here, involving Werkzeug’s middleware.
http://stackoverflow.com/questions/4239825/static-files-in-flask-robot-txt-sitemap-xml-mod-wsgi
This is another way to do it, assuming you have a folder called “static” under where the main application .py file is located:
from flask import Flask, request
app = Flask(__name__, static_url_path='')
@app.route('/')
def root():
@mschoebel
mschoebel / main.go
Created March 6, 2014 20:02
Snippet: login/logout (Golang)
package main
import (
"fmt"
"github.com/gorilla/mux"
"github.com/gorilla/securecookie"
"net/http"
)
// cookie handling
@bsdnoobz
bsdnoobz / read-camera.py
Last active December 22, 2023 18:20
Displaying webcam feed using OpenCV and Python+PySide.
#!/usr/bin/env python
from PySide.QtCore import *
from PySide.QtGui import *
import cv2
import sys
class MainApp(QWidget):
def __init__(self):