Skip to content

Instantly share code, notes, and snippets.

View crshnbrn66's full-sized avatar

Thom Schumacher crshnbrn66

View GitHub Profile
function get-redirectedUrls
{
Param($url)
$urlcheckobject=@{}
$Uri = [uri]$url
$url2check = $url
do{
$value = get-redirectedUrl -url $url2check
if($value.redirect)
{
function Get-FileNameProperties
{
param( $path = "~",
[switch] $Recurse,
[array]$Properties = ('Fullname', 'LastAccessTime', 'LastWriteTime', 'CreationTime','Owner','Size','Directory','Extension'))
$sortedfiles = $null
$files = Get-ChildItem -Recurse:$Recurse -File $path #if $recurse is true it'll recurse other wise it won't
$params2 = @()

Keybase proof

I hereby claim:

  • I am crshnbrn66 on github.
  • I am crshnbrn66 (https://keybase.io/crshnbrn66) on keybase.
  • I have a public key ASDg8XSrh3XHkITuTYz09EtP2CEUPYp9pYH3-S1cZpL4AAo

To claim this, I am signing this object:

@crshnbrn66
crshnbrn66 / cortex.sh
Created September 21, 2023 17:33 — forked from szampardi/cortex.sh
use a json file for shell vars
#!/usr/bin/env bash
CORTEX_CRYPTO="aes-256-cbc"
_cortex_logger() { printf '{%s}[%s](%s):%s\t%s\n' "$(date -u '+%FT%TZ')" "${1}" "$(caller)" "${2}" "${@:3}" 1>&2; }
_cortex_io() {
case "${CORTEX_FILE}" in
"") _cortex_logger "$(caller)" ERR "CORTEX_FILE environment variable is empty/unset" && return 127 ;;
*)
@crshnbrn66
crshnbrn66 / samba-share.sh
Created July 17, 2024 21:39 — forked from luizomf/samba-share.sh
Create a samba share on Ubuntu
# Create a samba share Ubuntu
# Install samba
sudo apt install samba samba-common-bin
# Add a user to samba
sudo smbpasswd -a username
# Add configs to /etc/samba/smb.conf
sudo nano /etc/samba/smb.conf