flowchart TD
subgraph CA["Certificate Authority"]
A1["Generate CA Private Key"] --> A2["Generate CA Public Cert (ca.pem)"]
end
subgraph Server["Server"]
B1["Generate Server Private Key (server-key.pem)"] --> B2["Generate Server CSR (server.csr)"]
B2 -->|"Send CSR"|C1["Sign CSR with CA Key (ca-key.pem)"]
C1 -->|"Returns Signed Cert"|B3["Receive Server Cert (server-cert.pem)"]
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
| #!/usr/bin/env python3 | |
| import socket | |
| import sys | |
| import threading | |
| import time | |
| import os | |
| target_host = '' | |
| target_port = 443 |
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
| pandas | |
| PyPDF2 | |
| openpyxl | |
| xlrd |
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
| sudo mount -t ext4 -o rw /dev/sdc /mnt/drivealt |
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
| type LogLevel = "debug" | "info" | "error"; | |
| type Colors = "green" | "red" | "yellow" | "magenta" | "reset"; | |
| class Logger { | |
| private static envLevel: LogLevel = "debug"; | |
| constructor(logLevel: LogLevel) { | |
| Logger.envLevel = logLevel; | |
| } |
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
| networks: | |
| kasm-network: | |
| driver: bridge | |
| services: | |
| kasm: | |
| image: lscr.io/linuxserver/kasm:latest | |
| container_name: kasm | |
| privileged: true | |
| security_opt: |
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
| services: | |
| service_name: | |
| image: image_uri | |
| ports: | |
| - "host_port:docker_port" | |
| extra_hosts: | |
| - "host.docker.internal:172.17.0.1" # obtained using $ ifconfig docker0 | |
| # network_mode: "host" # this is no longer needed | |
| environment: | |
| DATABASE_URL: postgresql://user:[email protected]:5432/db |
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
| # auto, but not tested | |
| echo 'neo ALL=(ALL) NOPASSWD: ALL' | sudo EDITOR='tee -a' visudo | |
| # manual, tested | |
| # sudo visudo | |
| # neo ALL=(ALL) NOPASSWD: ALL |
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
| run() { | |
| local package_manager="bun" | |
| local script_name="start" | |
| local choice | |
| if [ -f "ecosystem.config.js" ]; then | |
| if [ -f "package.json" ]; then | |
| echo "Both ecosystem.config.js and package.json are present. Which one do you want to run? (e/p, default: p): " | |
| read choice | |
| choice=${choice:-p} |
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
| [ | |
| { | |
| "type": "any", | |
| "action": "transaction", | |
| "caseSensitive": true, | |
| "subAction": "transactionFinance", | |
| "phrase": "-Federal Bank", | |
| "id": "D3542430-2CBC-4357-A243-90D97D04B908", | |
| "useRegex": false | |
| }, |
NewerOlder