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
#!/bin/bash | |
####based on https://gist.github.com/patrick-blom/593dd02338490941f4ba09f714e821c3 with API support instead of basic auth#### | |
####Jira cloud doesn't support basic auth#### | |
####add a worklog to a specific jira issue#### | |
####get API token from https://id.atlassian.com/manage/api-tokens#### | |
#arguments: | |
#-i: issue or ticket number | |
#-t: time in minutes | |
#-c: comment for the worklog |
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
# import all required libraries | |
import board | |
import neopixel | |
from adafruit_neokey.neokey1x4 import NeoKey1x4 | |
import usb_hid | |
from adafruit_hid.keyboard import Keyboard | |
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS | |
from adafruit_hid.keycode import Keycode | |
import time |
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
import board | |
import neopixel | |
import usb_hid | |
import touchio | |
import time | |
from time import sleep | |
from adafruit_hid.mouse import Mouse | |
from random import randint | |
HOW_LONG = 10 # How long between jiggles in seconds |