Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct
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 bash | |
################################################################################ | |
# plantuml.sh - A script to wrap PlantUML jar execution | |
# | |
# Author: Firas AlShafei | |
# Created: 2024.07.20 | |
# Last Modified: 2024.07.20 | |
# | |
# Description: |
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 bash | |
################################################################################ | |
# encode_puml.sh - A script to find and encode PlantUML files | |
# | |
# Author: Firas AlShafei | |
# Created: 2024.07.20 | |
# Last Modified: 2024.07.20 | |
# | |
# Description: |
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 | |
# -*- coding: utf-8 -*- | |
""" | |
PlantUML Encoder/Decoder | |
======================== | |
This script provides functions to encode and decode PlantUML text. The encoding | |
process compresses the text using zlib and then encodes it using a custom | |
base64-like encoding suitable for PlantUML servers. The decoding process | |
reverses these steps. It also allows extracting and decoding PlantUML text |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Vulnerability Report</title> | |
<!-- Template Metadata--> | |
<meta name="author" content="OnceUponALoop"> | |
<meta name="version" content="1.0.0"> |
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 CA Bundle - autogenerate from Windows store | |
# Location of bundle | |
# I chose not to override the mingw64 store in /etc/ssl to avoid having to request admin elevation | |
CertFile=$HOME/.certs/ca-bundle.pem | |
# Only recreate once a day | |
if [ "$(date -r $HOME/.certs/ca-bundle.pem +%F 2>/dev/null)" != "$(date +%F)" ]; then | |
mkdir -p $HOME/.certs | |
ps_script=' | |
if (-not $ENV:CertFile) { $ENV:CertFile="$ENV:USERPROFILE\.certs\ca-bundle.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
if [ $(net session > /dev/null 2>&1; echo $?) -eq 0 ]; then | |
# Set Background Color | |
echo -ne '\e]11;#800F00\a' | |
# Set PS1 | |
export PS1='\[\033]0;$TITLEPREFIX:$PWD\007\]\n\[\033[7m\][Admin]\[\033[0m\] \[\033[32m\]\u \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n# ' | |
else | |
#Set PS1 | |
export PS1='\[\033]0;$TITLEPREFIX:$PWD\007\]\n\[\033[32m\]\u \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$ ' |
NewerOlder