This file contains hidden or 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
1. Check for exisiting keys using: | |
ls -al ~/.ssh | |
2. When none are existing you'll get: | |
ls: cannot access '/home/USER/.ssh': No such file or directory | |
3. Generate new ssh key: |
This file contains hidden or 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
package cucumber_selenium.plugins; | |
import io.cucumber.plugin.ConcurrentEventListener; | |
import io.cucumber.plugin.event.EventPublisher; | |
import io.cucumber.plugin.event.HookTestStep; | |
import io.cucumber.plugin.event.TestRunStarted; | |
import io.cucumber.plugin.event.TestCaseStarted; | |
import io.cucumber.plugin.event.TestStepStarted; | |
import io.cucumber.plugin.event.TestStepFinished; |
This file contains hidden or 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
package cucumber_selenium.plugins; | |
import io.cucumber.plugin.event.HookTestStep; | |
import io.cucumber.plugin.event.PickleStepTestStep; | |
import io.cucumber.plugin.event.TestCaseFinished; | |
import io.cucumber.plugin.event.TestCaseStarted; | |
import io.cucumber.plugin.event.TestRunFinished; | |
import io.cucumber.plugin.event.TestRunStarted; | |
import io.cucumber.plugin.event.TestStepStarted; | |
import io.cucumber.plugin.event.TestStepFinished; |
This file contains hidden or 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
# ============================ https://github.com/github/gitignore/raw/main/Java.gitignore ============================ | |
# Compiled class file | |
*.class | |
# Log file | |
*.log | |
# BlueJ files | |
*.ctxt |
This file contains hidden or 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
# ---------- https://github.com/github/gitignore/raw/main/Python.gitignore ---------- | |
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so |
This file contains hidden or 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 datetime import datetime | |
from typing import List | |
from dateutil.rrule import ( | |
rrule, | |
YEARLY, | |
MONTHLY, | |
WEEKLY, | |
DAILY, | |
HOURLY, |
This file contains hidden or 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
"""Cached interaction with openexchangerates.org API""" | |
import json | |
import logging | |
import os | |
from datetime import datetime, timedelta | |
from pathlib import Path | |
from tempfile import gettempdir | |
from typing import Dict, Optional | |
import requests |
This file contains hidden or 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
# simplified update | |
alias update='sudo apt update && sudo apt upgrade' | |
# properly call autoremove | |
alias autoremove='sudo apt-get autoremove --purge' | |
# view nework stats | |
alias view-running-services='sudo systemctl list-units --type=service --state=running' | |
alias view-network-connections='sudo netstat -ltup && sudo netstat -tup' | |
alias view-network-sockets='sudo ss -ltupn && sudo ss -tupn' |
This file contains hidden or 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
# Root logger option | |
log4j.rootLogger=DEBUG, file, stdout | |
# Direct log messages to a log file | |
log4j.appender.file=org.apache.log4j.RollingFileAppender | |
log4j.appender.file.File= execution.log | |
log4j.appender.file.MaxFileSize=10MB | |
log4j.appender.file.MaxBackupIndex=10 | |
log4j.appender.file.layout=org.apache.log4j.PatternLayout | |
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %t [%c{1}:%L] %m%n | |
# Direct log messages to stdout |
This file contains hidden or 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
// build.gradle -> dependencies: | |
// implementation 'org.slf4j:slf4j-api:1.7.30' | |
// implementation 'org.slf4j:slf4j-log4j12:1.7.30' | |
// implementation 'org.apache.commons:commons-lang3:3.10' | |
// implementation 'commons-io:commons-io:2.7' | |
import org.apache.commons.io.FileUtils; | |
import org.apache.commons.lang3.exception.ExceptionUtils; | |
import org.slf4j.Logger; |
OlderNewer