Skip to content

Instantly share code, notes, and snippets.

View maksha's full-sized avatar
😶‍🌫️
I may be slow to respond.

Baja maksha

😶‍🌫️
I may be slow to respond.
View GitHub Profile
@maksha
maksha / sysinfo.sh
Created February 20, 2025 23:38
sysinfo.sh: A simple script to display system information on Linux
#!/usr/bin/env bash
# sysinfo.sh: A simple script to display system information
set -e
# Colors
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m'
@maksha
maksha / PowerShell_profile.ps1
Last active July 25, 2017 07:48
Posh-Git PowerShell Prompt
# Import module posh-git
Import-Module -Name posh-git
# Setup awesome PS prompt
function Test-Administrator {
$user = [Security.Principal.WindowsIdentity]::GetCurrent();
(New-Object Security.Principal.WindowsPrincipal $user).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)
}