Skip to content

Instantly share code, notes, and snippets.

View stevesbrain's full-sized avatar

Stephen Argent stevesbrain

View GitHub Profile
@stevesbrain
stevesbrain / PrinterInventory.ps1
Created May 31, 2022 04:54
Outputs an excel sheet detailing printers, drivers, share name, server, IP, etc
Param (
[string]$Printservers = "SERVERNAME.domain"
)
# Create new Excel workbook
cls
$Excel = New-Object -ComObject Excel.Application
$Excel.Visible = $True
$Excel = $Excel.Workbooks.Add()
$Sheet = $Excel.Worksheets.Item(1)

Keybase proof

I hereby claim:

  • I am stevesbrain on github.
  • I am soupyowl (https://keybase.io/soupyowl) on keybase.
  • I have a public key ASCnu9WabRK9iThScMkvOfsGxq8ZBS4jPY5sM8DByKHfZgo

To claim this, I am signing this object:

@stevesbrain
stevesbrain / app\Http\Kernel.php
Last active February 28, 2017 02:38
Laravel 5.1.40 (LTS) HTTPS Load Balancer ValidProxies
<?php
// ...
protected $middleware = [
// ...
\FI\Http\Middleware\ValidProxies::class,
];
// ...
@stevesbrain
stevesbrain / arch-linux-install
Created February 4, 2016 05:43 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
#Demonstrate setting of array with keys + values
data= {}
(data['how'], data['amount'], data['description'], data['paid_to']) = ("From Net Financed Proceeds", 55.0, "Paper fees", "John")
#Demonstrate printing values based on looking up keys - i.e., array['key'] = display value associated with key
print("How: " + data['how'])
print("Amount: " + str(data['amount']))
print("Description: " + data['description'])
print("Paid to: " + data['paid_to'])