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
| // ==UserScript== | |
| // @name LPU autologin | |
| // @namespace Violentmonkey Scripts | |
| // @version 1.0.0 | |
| // @match https://ums.lpu.in/* | |
| // @grant none | |
| // @author neohbz | |
| // @description autologin | |
| // ==/UserScript== |
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
| // VSCode based editor Keyboard Shortcuts - Optimized Layout | |
| // (tested on: VSCode, Antigravity) | |
| // Mental Model: cmd+shift+[letter] = SHOW/TOGGLE | alt+cmd+[letter] then [key] = PERFORM ACTIONS | |
| [ | |
| // ═══════════════════════════════════════════════════════════════════ | |
| // PANEL MANAGEMENT (cmd+shift+[letter]) | |
| // ═══════════════════════════════════════════════════════════════════ | |
| // Primary/Secondary sidebars (already default: cmd+b, cmd+shift+b) |
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
| #!/usr/bin/env python3 | |
| # requirements: pandas PyPDF2 openpyxl xlrd | |
| # usage: python search.py -s "search term" <folder_path> | |
| import os | |
| import argparse | |
| import pandas as pd | |
| import PyPDF2 | |
| import re |
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:password@host.docker.internal: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 |
NewerOlder