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 / 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 / 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 / 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
Last active May 20, 2023 14:30
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 / Master.cpp
Last active March 22, 2022 08:26
Automatic C++ class and header builder
/* ************************************************************************** */
/* */
/* :::::::: */
/* Master.cpp :+: :+: */
/* +:+ */
/* By: JKCTech <admin@jkctech.nl> +#+ */
/* +#+ */
/* Created: 2022/01/27 11:35:30 by JKCTech #+# #+# */
/* Updated: 2022/03/21 10:01:43 by JKCTech ######## odam.nl */
/* */
@jkctech
jkctech / archoniabot.py
Last active November 23, 2021 20:38
Scraper for Archonia stock
import requests
# ========== SETTINGS ==========
str_available = "Beschikbaar!"
str_unavailable = "Niet beschikbaar!"
str_preorder = "Pre-order!"
str_unknown = "Onbekend"
filename = "links.txt"
pushover_enabled = True
@jkctech
jkctech / dacobot.py
Last active October 17, 2021 21:08
Small 15-minute-made bot to scrape a catalog on the website www.dacoproducts.com and check for availability for specific items. Intended to be connected to a pushnotification system as a standalone.
import requests
# ========== SETTINGS ==========
# Item codes you want to look for.
# (https://www.dacoproducts.com/K2Order.php)
# Selected on 'Stock N°' column but with all spaces stripped
# Example: "DCB003b + DVD PAL" => "DCB003b+DVDPAL"
items = ["DCB000", "DCB002"]
@jkctech
jkctech / chest_pickup.mcfunction
Last active October 17, 2021 15:49
Fixes for One Chest Survival 1.17
# DETECT
execute as @a at @s if entity @s[scores={crouching=1..},nbt={SelectedItem:{id:"minecraft:book",Count:1b}}] if block ~ ~-0.8 ~ minecraft:chest run tag @s add pickup
execute as @a at @s if entity @s[scores={crouching=1..},nbt={SelectedItem:{id:"minecraft:book",Count:1b}}] if block ~ ~-0.8 ~ minecraft:barrel run tag @s add pickup
# GIVE ITEMS
execute as @a[tag=pickup] at @s if entity @e[type=armor_stand,distance=..1.5,sort=nearest,limit=1,tag=ultimate_chest] run item replace entity @s weapon.mainhand with knowledge_book{display:{Name:'{"text":"Ultimate Chest","color":"gold","bold":true,"italic":false}',Lore:['{"text":"Drop on a chest or barrel for a permanent Ultimate Chest","color":"aqua","italic":false}']},chest:1,Enchantments:[{}]} 1
execute as @a[tag=pickup] at @s if entity @e[type=armor_stand,distance=..1.5,sort=nearest,limit=1,tag=village_chest] run item replace entity @s weapon.mainhand with knowledge_book{display:{Name:'{"text":"Village Chest","color":"gold","bold":true,"italic":false}',Lore
@jkctech
jkctech / PhilosophersChecker.py
Created September 21, 2021 15:44
Test the 42 Philosophers project by testing if it dies within X seconds or not.
#!/usr/bin/python
import subprocess
import fcntl
import time
import os
import signal
import sys
if len(sys.argv) != 2:
@jkctech
jkctech / README.md
Last active April 21, 2021 20:52
Google Trends Company (and stocks) correlation collector

Google Trends Company (and stocks) correlation collector

By: Jeffrey Koopman (18-01-2021)

Updated at 21-04-2021

Used to collect Google Trends data from companies in correlation to their stocks.