Tips & Misc
Short tips, references and device notes.

MarkDown - Guide .md
# Markdown Cheat Sheet 

 

 Thanks for visiting [The Home Stack](https://www.sflservicesllc.com)! 

 

 This Markdown cheat sheet provides a quick overview of all the Markdown syntax elements. It can’t cover every edge case, so if you need more information about any of these elements, refer to the reference guides for [basic syntax](https://www.markdownguide.org/basic-syntax/) and [extended syntax](https://www.markdownguide.org/extended-syntax/). 

 

 ## Basic Syntax 

 

 These are the elements outlined in John Gruber’s original design document. All Markdown applications support these elements. 

 

 ### Heading 

 

 # H1 

 ## H2 

 ### H3 

 

 ### Bold 

 

 **bold text** 

 

 ### Italic 

 

 *italicized text* 

 

 ### Blockquote 

 

 > blockquote 

 

 ### Ordered List 

 

 1. First item 

 2. Second item 

 3. Third item 

 

 ### Unordered List 

 

 - First item 

 - Second item 

 - Third item 

 

 ### Code 

 

 `code` 

 

 ### Horizontal Rule 

 

 --- 

 

 ### Link 

 

 [Markdown Guide](https://www.markdownguide.org) 

 

 ### Image 

 

 ![alt text](https://www.markdownguide.org/assets/images/tux.png) 

 

 ## Extended Syntax 

 

 These elements extend the basic syntax by adding additional features. Not all Markdown applications support these elements. 

 

 ### Table 

 

 | Syntax | Description | 

 | ----------- | ----------- | 

 | Header | Title | 

 | Paragraph | Text | 

 

 ### Fenced Code Block 

 

 ``` 

 { 

   "firstName": "John", 

   "lastName": "Smith", 

   "age": 25 

 } 

 ``` 

 

 ### Footnote 

 

 Here's a sentence with a footnote. [^1] 

 

 [^1]: This is the footnote. 

 

 ### Heading ID 

 

 ### My Great Heading {#custom-id} 

 

 ### Definition List 

 

 term 

 : definition 

 

 ### Strikethrough 

 

 ~~The world is flat.~~ 

 

 ### Task List 

 

 - [x] Write the press release 

 - [ ] Update the website 

 - [ ] Contact the media 

 

 ### Emoji 

 

 That is so funny! :joy: 

 

 (See also [Copying and Pasting Emoji](https://www.markdownguide.org/extended-syntax/#copying-and-pasting-emoji)) 

 

 ### Highlight 

 

 I need to highlight these ==very important words==. 

 

 ### Subscript 

 

 H~2~O 

 

 ### Superscript 

 

 X^2^

Caffeine Hack - Got caught with Caffeine installed
Hack 

 Click Start, then type Powershell  and it should show up. 

 Type  notepad $profile  to open your default profile. 

 This will likely be blank if this is the first time doing this. 

 Paste the following code: 

 function idle {

	$wshell = New-Object -ComObject wscript.shell;

	"Press CTRL+C to cancel."

	while ($true) {

		$wshell.SendKeys('+')

		Sleep 60

	}

} 

 Close PowerShell, then re-open it (see step one). 

 Type  idle  and hit enter. 

 Optional: autorun you can add idle to line 9, and when opening PowerShell it will auto run 

 This function just presses the shift key every minute. It's less intrusive than mouse wigglers.. 

 Updated Version 

 Save this to your profile, and then you can run it indefinitely using  idle  or set a duration in minutes by adding it at the end  idle 28800 . 

 You can even have it do the math for you. So 60 mins * 8 hours would be  idle (60*8) . 

 You can get even fancier if you know what time you need to clock out. 

 # If you stop working at 5pm (17:00) then you could use this:

$peaceout = (get-date 17:00)

idle ($peaceout - (get-date)).TotalMinutes 

 This part goes in your profile. Remember, if you make changes to your profile you will need to close and reopen any PowerShell terminals for them to pick up the changes. 

 function idle {

 param(

 	[int]$Duration = -1 # Duration in Minutes

 )

 $wshell = New-Object -ComObject wscript.shell;

 

 'Press CTRL+C to cancel.'

 $idle = $true

 

 while ($idle) {

 	$wshell.SendKeys('+')

 	if ($Duration -eq 0) {

 		$idle = $false

 		'Time Expired.'

 		break

 	}

 	elseif ($Duration -gt 0) {

 		write-host -NoNewline "`r$Duration min(s) remaining."

 		$Duration--

 	}

 

 	Start-Sleep 60

 }

} 

 For both you have to save the file under my documents in the following folder and name the file the following: 

 \Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 

 Script Hack 

 param(

 [switch]$Indefinite,

 [int]$Minutes = 0

)

if ($Indefinite) {

 Write-Host "Keeping system awake indefinitely. Press Ctrl+C to stop."

 while ($true) {

 [System.Windows.Forms.Cursor]::Position

 Start-Sleep -Seconds 60

 }

} elseif ($Minutes -gt 0) {

 Write-Host "Keeping system awake for $Minutes minutes. This window will close automatically when done."

 $endTime = (Get-Date).AddMinutes($Minutes)

 while ((Get-Date) -lt $endTime) {

 [System.Windows.Forms.Cursor]::Position

 Start-Sleep -Seconds 60

 }

 Write-Host "Time's up!"

} else {

 Write-Host "Please specify either -Indefinite or -Minutes <number of minutes>."

} 

 To Use the Script: 

 To keep the system awake indefinitely, run: 

 .\keep-awake.ps1 -Indefinite 

 To keep the system awake for a specific number of minutes (e.g., 30 minutes), run: 

 .\keep-awake.ps1 -Minutes 30

PiHole - Configuration
This is a great link for pi-installation 

 https://www.crosstalksolutions.com/the-worlds-greatest-pi-hole-and-unbound-tutorial-2023/ 

  

IPCamera - Different Configs
CAMERA LIST 

 

 

 

 MODEL 

 CONNECTION 

 

 

 ASH43-W 

 rtsp://admin:YOUR_CAMERA_PASSWORD@YOUR_CAMERA_IP:554/cam/realmonitor?channel=1&subtype=0 

 

 

 DAHAUA 

 HTTP:85 

 

 

 IP5M-T1179EW-AI-V3 

 HTTP:80