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
extends: [[spectral:oas, off]] | |
rules: | |
oas3-schema: true | |
operation-operationId: true | |
operation-operationId-unique: true | |
operation-tag-defined: true | |
tag-description: true | |
operation-description: true |
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
extends: [[spectral:oas, off]] | |
rules: | |
oas3-schema: true |
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
├── components | |
│ ├── parameters | |
│ │ └── EmailParameter.yaml | |
│ └── schemas | |
│ ├── NewsletterType.yaml | |
│ └── Subscription.yaml | |
├── openapi.yaml | |
└── paths | |
├── subscriptions_{email}.yaml | |
└── subscriptions.yaml |
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
0 0 * * * /home/jack/Documents/rsync.sh > /dev/null 2>&1 |
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
kubectl apply -f - <<EOF | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: cuda-vectoradd | |
spec: | |
restartPolicy: OnFailure | |
containers: | |
- name: cuda-vectoradd | |
image: "nvcr.io/nvidia/k8s/cuda-sample:vectoradd-cuda11.7.1-ubuntu20.04" |
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
import csv | |
def get_user_input(): | |
# Prompting for user input | |
age = int(input("Enter your age: ")) | |
height = float(input("Enter your height (in meters): ")) | |
weight = float(input("Enter your weight (in kilograms): ")) | |
gender_expression = input("Please enter your gender expression: ") | |
return age, height, weight, gender_expression | |
def append_to_file(data): | |
# File name |
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
Password 1: JU9LYMJbjFucdXRm | |
Password 2: hVBHXpmcc3ciKYee | |
Password 3: Pmx5tuJAauEICoDt | |
Password 4: ZH9sDZsB7J5c27l8 | |
Password 5: aOaYqOLt5s307GFD | |
Using lowercase letters only: | |
Password1:baeraesughaipesi | |
Password2:yiayeishieleyohx | |
Using numbers and special characters: | |
Password1:Sineu4oolu9aetha |
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
./pw3.sh: line 47: syntax error near unexpected token `)' | |
./pw3.sh: line 47: ` PASSWD=$(pwgen -c --custom-charset "!@#$%^&*()_-=+{}[]|;:,.<>?/~`" $LENGTH)' |
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
#!/bin/bash | |
# Define the length of the password | |
LENGTH=16 | |
# Generate strong and complex passwords using pwgen | |
for i in {1..5}; do | |
PASSWD=$(pwgen -s $LENGTH) | |
echo "Password $i: $PASSWD" | |
done | |
# Use specific character sets with pwgen | |
echo "" |
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
int main() | |
{ int* p = malloc(sizeof(int)); | |
free(p);//TrapC ignores free, p not freed yet | |
*p = 10;//UB in C, no problem in TrapC | |
return 0;//Leaving Scope, TrapC now frees p automatically | |
} |
NewerOlder