Skip to content

Instantly share code, notes, and snippets.

View JakubAndrysek's full-sized avatar

Kuba Andrýsek JakubAndrysek

View GitHub Profile

Hit Counter with PHP and SVG

A simple, customizable hit counter using PHP, MySQL, and SVG. It tracks the number of hits on a specific URL and displays it in a visually appealing way. This project is designed to be easy to set up and integrate into any website.

@JakubAndrysek
JakubAndrysek / web-nfc.d.md
Created February 22, 2025 09:13
web-nfc for NextJS

web-nfc for NextJS

Creating a custom module to support Web NFC in NextJS projects (TypeScript). Add the following code to your project to be able to compile and run the Web NFC API in NextJS.

Declare module

Declare the module in a .d.ts file in the root of your project or in the types directory.

#!/bin/sh
echo -e "\
╔════════════════════════════════════════════╗
║ BASH KEYBOARD SHORTCUTS ║
╚════════════════════════════════════════════╝
\033[1mCursor Movement:\033[0m
\033[1mCtrl + A\033[0m |← Move cursor to the \033[3mbeginning\033[0m of the line
\033[1mCtrl + E\033[0m →| Move cursor to the \033[3mend\033[0m of the line
@JakubAndrysek
JakubAndrysek / ImageConversion.md
Last active January 26, 2025 20:32
Converting one colour line image for laser engraving

Converting one colour line image for laser engraving

  • Download image
  • Remove background and keep only one colour line
  • Run script that will replace all non transparent colours with black

Example

@JakubAndrysek
JakubAndrysek / PyPI user statistics - all downloads.md
Last active February 17, 2025 22:09
PyPI user statistics - all downloads

PyPI user statistics - all downloads

This API tool allows users to retrieve the total downloads for specific PyPI projects, with options for caching and formatted outputs.

Features

  • Fetches download statistics for PyPI projects (mkdoxy and pyspacemouse by default).
@JakubAndrysek
JakubAndrysek / Google takeout MacOS.md
Last active December 14, 2024 17:38
Google takeout MacOS
@JakubAndrysek
JakubAndrysek / FlaskServer.py
Last active January 26, 2025 20:33
ChatGPT - plugin actions + Python Flask backend
from flask import Flask, request, jsonify
import random
app = Flask(__name__)
data = {}
@app.route('/')
def home():

Nextbike API

List citie

https://maps.nextbike.net/maps/nextbike-official.json?list_cities=1
@JakubAndrysek
JakubAndrysek / limit-google-form-responses.js
Last active April 16, 2024 21:23
This Google Apps Script code will automatically close a Google Form when it reaches a maximum number of responses. It will also send an email notification to the form owner when the limit is reached.
/**
* Google Apps Script code to close a Google Form when it reaches a maximum number of responses.
* Author: Jakub Andrýsek
* Website: https://kubaandrysek.cz
* Email: [email protected]
* GitHub: https://github.com/JakubAndrysek
* License: MIT
* File: https://gist.github.com/JakubAndrysek/fbcdf78f7bc91d905d22350e7cbcdb31
*/