Skip to content

Instantly share code, notes, and snippets.

View jkctech's full-sized avatar
📟
112Centraal.nl

JKCTech jkctech

📟
112Centraal.nl
View GitHub Profile
@jkctech
jkctech / README.md
Last active August 2, 2025 01:29
Automatic screenshot cropper for mobile screenshots on social media.

Auto Cropper

A small snippet that crops screenshots from social media platforms like Instagram to only contain the picture. This is done by looking for the first row / column on the top / bottom / top / left of the screen (Starting from the center) where all pixels are the same color. This -usually- marks the end of a picture.

This tool is NOT perfect and compression algorithms like JPEG might mess up the working of this tool. It's more of a "Best guess" method.

  1. Install "PIL" for Python: python -m pip install Pillow
@jkctech
jkctech / README.md
Last active October 26, 2022 17:45
Foscam FFMPEG video + audio streamsaver

Foscam FFMPEG video + audio streamsaver

Small mini application for recording BOTH the video and audio stream of a Foscam IP camera.

Installation

  1. Copy camera.service to /etc/systemd/system/camera.service
  2. Copy record.sh to a place you prefer.
  3. Change values in both your copied files according to the specs listed below.
  4. Restart the service daemon by running sudo systemctl daemon-reload
  5. Start the service by running sudo systemctl start camera.service
@jkctech
jkctech / README.md
Created January 16, 2023 15:51
Bypass for Ziggo modems forced password strength

Bypass for Ziggo modems forced password strength

In my use case I HAD to implement an 8 character password for my WiFi network. However, this was not accepted since Ziggo modems require you to have at least 10 characters as a password.

I fixed that :)

In the sourcecode of the WebUI it's easy to spot where the strength validation is happening. By simply disabling the return statements (Therefore just ignoring the errors) we can force the modem to accept the new password even though it does not meet the required limits.

@jkctech
jkctech / key.md
Created February 4, 2023 14:12
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@jkctech
jkctech / webrelay.py
Created August 18, 2024 20:14
Simple web relay using Flask and Selenium to return raw content of webpage. Useful for scraping dynamic loaded webpages.
import time
import logging
from flask import Flask
from flask import request
from flask import Response
from selenium import webdriver
# SETTINGS
port = 80