Skip to content

Instantly share code, notes, and snippets.

View jwmoss's full-sized avatar
🤩
Stuck in a foreach loop

Jonathan Moss jwmoss

🤩
Stuck in a foreach loop
View GitHub Profile
[CmdletBinding()]
param(
[Parameter( Mandatory, Position = 1, ValueFromPipelineByPropertyName, ValueFromPipeline )]
[Alias( 'HostName', 'Server' )]
[string[]]
$ComputerName,
[System.DirectoryServices.ActiveDirectory.SyncFromAllServersOptions]
$SyncOptions = @( 'CrossSite', 'PushChangeOutward', 'SkipInitialCheck' ),
jenkins:
systemMessage: |
Welcome to our build server.
This Jenkins is 100% configured and managed 'as code'.
Config is now mostly handled by the 'Jenkins Configuration as Code' (JCasC) plugin.
JCasC config can be found in the jenkins.yaml file in the $JENKINS_HOME folder.
Some settings are still injected from init.groovy.d scripts,
but these settings will be ported over to JCasC as support becomes available.
@jwmoss
jwmoss / cloudflared-setup.md
Last active December 29, 2020 17:35
Cloudflared Setup

Cloudflared Setup

Requirements:

  • crazymax/cloudflared
  • pihole docker image
  • pi-hole br0 ip address, such as 192.168.1.5
  • cloudflared br0 ip adderss, such as 192.168.1.10
  1. Configure the following parameters in pihole docker image:
@jwmoss
jwmoss / Jenkinsfile
Created November 10, 2020 02:38 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
@jwmoss
jwmoss / Get-HTMLTable.ps1
Created September 18, 2020 06:59 — forked from JustinGrote/Get-HTMLTable.ps1
Get-HTMLTable Prototype
using namespace HtmlAgilityPack
function Get-HTMLTable {
[CmdletBinding()]
param(
[Parameter(Mandatory,ValueFromPipeline)][HtmlNode]$HtmlDocument
)
process {
foreach ($table in $HtmlDocument.SelectNodes('//table')) {
@jwmoss
jwmoss / YouTube-Plex.md
Last active October 7, 2025 01:11
Setup YouTube Agent for Plex
@jwmoss
jwmoss / everlastcapital_spac.png
Last active September 10, 2020 00:39
Notes on SPACs
everlastcapital_spac.png
@jwmoss
jwmoss / notes.md
Last active September 5, 2020 03:26

Notes

  • Look for low float high volume stock
  • RSI under 30 and STO under 20 is a good time to buy
  • RSI Over 70 and STO over 80 is a good time to sell
  • When 50 MA crosses 200 MA, buy
  • Buy around 10:30am EST?

SEC Forms

@jwmoss
jwmoss / StandardDeviation.ps1
Created August 1, 2020 03:07 — forked from powercode/StandardDeviation.ps1
Calculate Standard Deviation is PowerShell
using namespace System.Collections.Generic
using namespace System.Linq
class StandardDeviation{
hidden [decimal] $Average
StandardDeviation([decimal] $average){
$this.Average = $average
}
{
"title": "List of Popular Screener Settings for FinViz",
"data": {
"sites": [
{
"name": "NightBefore",
"url": "https://finviz.com/screener.ashx?v=121&f=sh_curvol_o750,sh_price_u5,sh_relvol_o2,ta_change_u5&ft=4&o=price"
},
{
"name": "NightBeforeLowFloat",