rcc configure credentials
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
from RPA.Word.Application import Application | |
from win32com.client import constants | |
from typing import Any | |
from enum import Enum | |
class CursorPosition(Enum): | |
NO_MOVE = 0 | |
START = 1 |
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
from RPA.Excel.Application import Application | |
from RPA.Tables import Table | |
from typing import Any, List, Union | |
class DevExcel(Application): | |
def __init__(self, autoexit: bool = True) -> None: | |
super().__init__(autoexit) | |
def write_data_to_range( |
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 threading | |
from _pydevd_bundle import pydevd_utils | |
import time | |
def dump_threads_after_timeout(): | |
time.sleep(5) | |
pydevd_utils.dump_threads() | |
def this_is_going_to_stuck(): |
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
|
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
def modify_libspec_files(): | |
files = list_all_libspec_files() | |
pattern = r"source=\"([^\"]+)" | |
sub_pattern = rf'source=".\{os.path.sep}\g<1>' | |
for f in files: | |
outfilename = f"{f}.modified" | |
with open(f) as file_in: | |
file_content = file_in.read() | |
with open(outfilename, "w") as file_out: | |
new_content = re.sub( |
Two common cases which make the install of Python packages harder due to networking issues are: a) Install behind a Proxy b) Install without access to the internet
In the case where the target machine connects to the internet over a network proxy, export the following environment vars, as appropriate - http_proxy
and https_proxy
. Eg:
Here's what did help fix my bluetooth lag:
- Hold shift and option on your keyboard, then click on the bluetooth system menu.
- The debug menu should appear (which you wouldn't see without holding shift and option).
- Reset the Bluetooth module
- Repeat steps 1 and 2 and then factory reset all connected apple devices.
- Connect/pair the keyboard and mouse again.
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 RPi.GPIO as GPIO | |
class Led: | |
def __init__(self, pin): | |
self.pin = pin | |
self.s = 0 | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(self.pin, GPIO.OUT) |
NewerOlder