This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Yabai - Configure scripting addition - automation | |
# Author: Jakub Andrysek | |
# Website: https://kubaandrysek.cz | |
# License: MIT | |
# GitHub: https://github.com/JakubAndrysek | |
# https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition | |
import os |
- manul
- web interface
cupsctl WebInterface=yes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# not work during my test | |
import sys | |
from PyQt5.QtBluetooth import QBluetoothLocalDevice, QBluetoothDeviceDiscoveryAgent, QBluetoothDeviceInfo, QLowEnergyController, QBluetoothUuid, QLowEnergyService | |
from PyQt5.QtCore import QObject, QCoreApplication, pyqtSlot | |
class BLEApp(QObject): | |
def __init__(self, parent=None): | |
super(BLEApp, self).__init__(parent) | |
self.deviceAddress = "E5:76:86:2B:B4:F8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: This script will scrape a website and save all the paths to a file. | |
# Usage: It will also exclude any paths that end with the extensions specified in the --exclude-extensions parameter. | |
# It will also limit the number of links to visit per page to the number specified in the --max_links_per_page parameter. | |
# It could be used to test a website for broken links. | |
# Be careful not to overload the website with requests. You could get banned. | |
# Example: python ValidateLinksScraping.py https://webscraper.io/test-sites --max_links_per_page 100 --exclude-extensions pdf,jpg,png | |
# Author: Kuba Andrysek | |
# Website: https://kubaandrysek.com | |
# Date: 2023-05-34 |