The questions and answers are taken from the The Scrum Master website.
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
# NodeJS Preparation | |
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - | |
# Install runtime dependencies | |
RUN apt-get update && \ | |
apt-get install -y nodejs npm && \ | |
rm -rf /var/lib/apt/lists/* | |
# Install packages | |
RUN npm install @stoplight/spectral-cli @stoplight/spectral-core |
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 profiler import profile_functions | |
def romanToIntPablo2022(s: str) -> int: | |
roman = {"I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000} | |
roman_sum = 0 | |
for index, letter in enumerate(s): | |
try: | |
if roman[letter] < roman[s[index + 1]]: | |
roman_sum -= roman[letter] |
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
REM ADAPT TO YOUR LIKING | |
REM Change Drive if needed | |
F: | |
REM Change to parent folder of the one to be synced | |
cd "F:\Documents\" | |
REM Have installed WSL in order to launch bash | |
bash -c "rsync -avzh -P --stats MyFolder/ 'user@192.168.1.20:/mnt/hdd/MyFolder'" | |
REM If another port is used | |
bash -c "rsync -avzh -P --stats --ignore-errors -e 'ssh -p 2222' MyFolder/ 'user@192.168.1.20:/mnt/hdd/MyFolder'" |
This page is a recopilation of the following sources:
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/python3 | |
############################################################################################### | |
# Author: n0nuser - Pablo Jesús González Rubio - https://nonuser.es - gonzrubio.pablo@gmail.com | |
############################################################################################### | |
# | |
# Traverses files in a folder, executing the query in each file to a MS SQL Server | |
# | |
# If it succeeds, the file could be deleted | |
# | |
# If there's any error with a file (execution of query or not able to read file), |
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 randomPassword(length): | |
""" | |
pass = randomPassword(16) | |
Ref: https://stackoverflow.com/a/2257449 | |
""" | |
return(''.join(random.SystemRandom().choice(string.ascii_uppercase + string.digits) for _ in range(length))) | |
def _get_size(bytes: int, suffix="B"): | |
"""Scale bytes to its proper format. | |
e.g: |
NewerOlder