Skip to content

Instantly share code, notes, and snippets.

View JakubAndrysek's full-sized avatar

Kuba Andrýsek JakubAndrysek

View GitHub Profile
#!/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@kubaandrysek.cz
* GitHub: https://github.com/JakubAndrysek
* License: MIT
* File: https://gist.github.com/JakubAndrysek/fbcdf78f7bc91d905d22350e7cbcdb31
*/
@JakubAndrysek
JakubAndrysek / Setup PHP Xdebug on Mac M1 with PhpStorm.md
Last active April 16, 2024 19:53
Setup PHP Xdebug on Mac M1 with PhpStorm

Setup PHP Xdebug on Mac M1 with PhpStorm

  • Install PHP
  • brew install php
@JakubAndrysek
JakubAndrysek / AppsRunningMac.scpt
Last active April 16, 2024 19:50
Get JSON of running apps + paths on macOS
-- Get JSON of runnin apps + paths on macOS
-- Author: JakubAndrysek + (https://www.alfredforum.com/topic/11318-solved-how-to-load-an-applications-icon-with-applescript/?do=findComment&comment=59154)
-- Version: 1.0
-- License: MIT
-- Link: https://gist.github.com/JakubAndrysek/2f4f4de69443fc0438ddb6320caf2349
-- Description: This script lists all running non-background processes and their paths in JSON format.
tell application "System Events"
set runningProcesses to (every process whose background only is false)