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 / init.ps1
Last active May 19, 2021 19:02
Provision new workspace with necessary modules
$modules = @(
"ImportExcel",
"PoshRSJob",
"PowershellGet",
"Invoke-CommandAs",
"PSFramework",
"Posh365"
)
## Force TLS 1.2
@jwmoss
jwmoss / adcheck.ps1
Created June 17, 2021 03:13
adcheck.ps1
$reportpath = "$ENV:Temp\ADReport.htm"
if ((test-path $reportpath) -like $false) {
new-item $reportpath -type file
}
$smtphost = "RDUSMTP"
$from = "[email protected]"
$email1 = "[email protected]"
$timeout = "60"
@jwmoss
jwmoss / iptv_plex.md
Last active August 13, 2024 13:59
Integrating IPTV and Plex

IPTV and Plex Setup

Flow of live TV

IPTVProvider's Xtreme API Credentials --> iptvproxy (converts xtreme api to .m3u file) --> xteve --> Plex Live TV

Flow of EPG (Electronic Programming Guide)

ScheduesDirect --> xteve (version from taylorbourne) runs a cronjob every hour to keep programming up to date

function Search-M3UFile {
[CmdletBinding()]
param (
[string[]]
$Filter,
[string]
$Path
)
@jwmoss
jwmoss / setupiisforsslperfectforwardsecrecy_v17.ps1
Created November 15, 2021 19:05 — forked from jbratu/setupiisforsslperfectforwardsecrecy_v17.ps1
Great powershell script for tightening HTTPS security on IIS and disabling insecure protocols and ciphers. Very useful on core installations.
# Copyright 2019, Alexander Hass
# https://www.hass.de/content/setup-microsoft-windows-or-iis-ssl-perfect-forward-secrecy-and-tls-12
#
# After running this script the computer only supports:
# - TLS 1.2
#
# Version 3.0.1, see CHANGELOG.txt for changes.
Write-Host 'Configuring IIS with SSL/TLS Deployment Best Practices...'
Write-Host '--------------------------------------------------------------------------------'
@jwmoss
jwmoss / ssms.ps1
Created July 16, 2022 14:54
Install SSMS
# Set file and folder path for SSMS installer .exe
$folderpath=$ENV:TEMP
$filepath="$folderpath\SSMS-Setup-ENU.exe"
$URL = "https://aka.ms/ssmsfullsetup"
$clnt = New-Object System.Net.WebClient
$clnt.DownloadFile($url,$filepath)
Start-Process -FilePath $filepath -ArgumentList @(
"/Install",
@jwmoss
jwmoss / planningcenter.sh
Last active October 11, 2022 19:11
planning center for jack
## authenticate
curl --request GET --url https://api.planningcenteronline.com/api/v2/personal_access_tokens --header `authorization: Bearer PUTTHEACCESSTOKENHERE`
## get checkin and list first name
curl https://api.planningcenteronline.com/check-ins/v2/check_ins | jq .attributes.first_name
@jwmoss
jwmoss / worker-images.yml
Created October 20, 2022 16:39
worker-images
---
# This file contains definitions of worker images, for reference from
# worker-pools.yml.
#
# Each section keyed by image name, with the contents divided by cloud
# provider and then by cloud-provider-specific details.
#
# Aliases can be defined by a simple string; this is useful for "current" images
# docker-worker-hvm* are the Ubuntu-14.04 based workers, built by
---
# This file contains definitions for the worker pools related to Firefox CI.
#
# Each worker pool is named by its <provisionerId>/<workerType> pair, each with
# the following structure (matching that for taskcluster-worker-manager):
#
# - `description` -- description of this workerType
# - `owner` -- owner of this workerType
# - `email_on_error` -- if true, email the owner on provisioning errors
# - `provider_id` -- the worker-manager provider for this worker pool