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
  • Wilmington, NC
View GitHub Profile
## install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
## install zulu via brew
brew install --cask zulu
## create new dir for dataloader and swt
mkdir -p ~/dataloader
mkdir -p ~/swt_m1
## download dataloader
curl -L https://github.com/forcedotcom/dataloader/files/6172623/dataloader_mac_arm64.zip --output ~/dataloader/dataloader.zip
## download swt to ~/swtm1 .. (I can't get cURL to work for the swt.zip m1 zip) and unzip it
@jwmoss
jwmoss / setup.sh
Last active April 9, 2021 19:58 — forked from brettmillerb/setup.sh
New Mac Setup
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew recipes
echo "Updating homebrew..."
brew update
[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 January 28, 2024 13:35
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