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
@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 / 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 / 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 '--------------------------------------------------------------------------------'
function Search-M3UFile {
[CmdletBinding()]
param (
[string[]]
$Filter,
[string]
$Path
)
@jwmoss
jwmoss / iptv_plex.md
Last active April 7, 2024 17:44
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

@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 = "no_reply@weee.local"
$email1 = "jmoss@weee.com"
$timeout = "60"
@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
## 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' ),