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/sh | |
# The idea behind this script is to setup a non root user to act as the main admin, allow use of sudo | |
# and set up SSH keys | |
# Function to add a user and configure sudo access | |
add_admin_user() { | |
read -p "Enter the admin username: " username | |
echo "Admin username: $username" |
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
@echo off | |
:: Set date and time environment variables | |
for /f %%# in ('wMIC Path Win32_LocalTime Get /Format:value') do @for /f %%@ in ("%%#") do @set %%@ | |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:: | |
:: User1 | |
:: |
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
const fs = require('fs'); | |
const path = require('path'); | |
const filePath = path.join(__dirname, 'config.txt'); | |
const logFilePath = path.join(__dirname, 'log.txt'); | |
function readVariables() { | |
try { | |
const fileContent = fs.readFileSync(filePath, 'utf-8'); |
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
const pageIcons = new Map() | |
function abbreviateNamespace(selector) { | |
const appContainer = document.getElementById("app-container"); | |
const handleNamespaceHover = (event) => { | |
const namespaceRef = event.target.closest(selector); | |
if (!namespaceRef) return; | |
if (event.type === "mouseenter") { |