Skip to content

Instantly share code, notes, and snippets.

View IAbuElRuzz's full-sized avatar
🛰️
Work

IAbuElRuzz IAbuElRuzz

🛰️
Work
  • Rome, Italy
View GitHub Profile
# Trivy
# Documentation https://github.com/aquasecurity/trivy
trivy --insecure image python:3.10.6-slim
trivy image python:3.8-slim-bullseye
trivy image -s=HIGH,CRITICAL python:3.9-slim-bullseye
# Grype
# Documentation https://github.com/anchore/grype
{
"root": true,
"ignorePatterns": [],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.json"],
"createDefaultProgram": true
},
{
"plugins": [
"stylelint-scss"
],
"customSyntax": "postcss-scss",
"rules": {
"scss/at-mixin-argumentless-call-parentheses": "always",
"string-quotes": "single",
"indentation": 2,
"selector-attribute-quotes": "always",
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"overrides": [
{
"files": ["*.ts"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
{
"singleQuote": false,
"trailingComma": "all",
"printWidth": 80,
"tabWidth": 4,
"semi": true
}
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
"recommendations": ["angular.ng-template"]
}
@IAbuElRuzz
IAbuElRuzz / vscode-extensions.json
Last active March 19, 2024 13:34
VSCode Python extensions.json
{
"recommendations": [
"ms-python.pylint",
"ms-python.black-formatter",
"ms-python.vscode-pylance"
]
}
@IAbuElRuzz
IAbuElRuzz / vscode-launch.json
Created February 6, 2024 09:17
VSCode Python launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Testing ....",
"type": "debugpy",
"request": "launch",
"program": "main.py",
"cwd": "${workspaceFolder}",
@IAbuElRuzz
IAbuElRuzz / vscode-settings.json
Created February 6, 2024 09:16
VSCode Python settings.json
{
"python.terminal.activateEnvironment": true,
"python.defaultInterpreterPath": "${env:VIRTUAL_ENV}",
"flake8.args": [
"--max-line-length=120",
"--max-complexity=10",
"--ignore=F401,F405,F811,S117",
"--max-line-length=120",
"--verbose"
@IAbuElRuzz
IAbuElRuzz / .pylintrc
Created February 6, 2024 09:15
.pylintrc 2024
[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-allow-list=
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code. (This is an alternative name to extension-pkg-allow-list