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 / map.geojson
Last active January 18, 2020 11:32
Veiligheidsregio's Nederland
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jkctech
jkctech / dht11.c
Created January 18, 2020 11:31
Read a DHT11 sensor from a Raspberry Pi GPIO pin with C & WiringPi
#include <wiringPi.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define MAXTIMINGS 85
#define DHTPIN 7
int dht11_dat[5] = { 0, 0, 0, 0, 0 };
double temp;
double humidity;
@jkctech
jkctech / lifeliner_lines.geojson
Last active April 17, 2020 18:36
Lifeliner locaties en scheidingslijnen
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jkctech
jkctech / GyazoDeleter.md
Last active January 23, 2023 14:52
Mass delete Gyazo pictures on your account page through some JavaScript

There is (currently) no easy way to mass select or mass delete your captures on Gyazo. If you would like to delete all your captures without much hassle, try this script. (Last tested on 1st of May 2020)

Copy paste the contents of gyazodel.min.js in a chrome developer console on https://gyazo.com/captures.

2 buttons will appear in the navbar.

Click the "Delete All" button to execute an automatic mass deleter for all visible items (this will take about 5 seconds to complete).

@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.

@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 / 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 / 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 / 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 / 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 */
/* */