Skip to content

Instantly share code, notes, and snippets.

View thomasrayner's full-sized avatar
😸
Write code, pet cats.

Thomas Rayner thomasrayner

😸
Write code, pet cats.
View GitHub Profile
@meldridge
meldridge / how-to-oscp-final.md
Last active April 12, 2024 02:06 — forked from unfo/how-to-oscp-final.md
How to pass the OSCP
@corbob
corbob / prompt.ps1
Last active May 18, 2019 05:40
prompt...
#region prompt
$forePromptColor = 0
[System.Collections.Generic.List[ScriptBlock]]$PromptRight = @(
# right aligned
{ "$FG;${er}m{0}" -f $LeftArrow }
{ "$FG;${forePromptColor}m$BG;${er}m{0}" -f $(if (@(get-history).Count -gt 0) {(get-history)[-1] | % { "{0:c}" -f (new-timespan $_.StartExecutionTime $_.EndExecutionTime)}}else {'00:00:00.0000000'}) }
{ "$FG;7m$BG;${er}m{0}" -f $LeftArrow }
{ "$FG;0m$BG;7m{0}" -f $(get-date -format "hh:mm:ss tt") }
@shivasiddharth
shivasiddharth / piobsinstaller.sh
Last active January 24, 2023 04:46
Script for installing OBS on Raspberry Pi
#!/bin/bash
echo ""
echo "Checking memory size.........."
Totalmem=$(cat /proc/meminfo|grep MemTotal|grep -o '[0-9]*')
if (($Totalmem > 3500000)); then
echo ""
echo "You have got enough memory. No need for a swap partition.........."
echo ""
else