graph TD
id1[(Get entry from google sheet)] --> id2{Base criteria met?}
id2 -- Yes --> id3{Account associated with university email exists?}
id2 -- No --> id16(Account create/enable process done)
id3 -- Yes --> id5{Acocunt enabled}
id3 -- No --> id7[(Get pre-account creation responses from TBD)]
id5 -- Yes --> id16
id5 -- No --> id6[Enable account]
id6 --> id16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Running this script will install CYA if not already installed, | |
# load the necessary functions from the private modules directory, | |
# and finally creates three sample files in the current working directory. | |
# Install CYA if not installed | |
if (-not (Get-Module -ListAvailable -Name CYA)) { | |
Install-Module CYA -Repository PSGallery | |
} | |
# Load CYA's private functions from the Modules directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher | |
from pysnmp.carrier.asyncore.dgram import udp | |
from pyasn1.codec.ber import encoder, decoder | |
from pysnmp.proto.api import v2c | |
from pysnmp.proto import api | |
from time import time | |
from collections import OrderedDict | |
import copy | |
import json | |
import re |
graph TD
A[Go to Manage Duo in S/SAM] --> B{Is the toggle greyed out\nor duo not required?}
B -- Yes --> C[Setup/restore the phone]
B -- No --> D{Are there MFA methods?}
D -- Yes --> E{Is one of the methods\nthe hcpss device\nbeing replaced?}
D -- No --> F[Begin phone setup/restore,\nstop at home screen]
F --> G{Is the duo app\non the new phone?}
G -- No --> H[Wait longer\nor install manually]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Spotify delay play for Quest 2 VR | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Hits the play button after a delay so you can listen to spotify on Oculus Quest 2. You can sideload firefox android app with sidequest, add the tampermonkey add-on, add this script, and open spotify in desktop mode in firefox, move it to a sidepanel, start playing what you want, pause it, hit "Play in 15s", open your VR game of choice. | |
// @author Nick Vissari | |
// @match *://open.spotify.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=spotify.com | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$org = "Your Org" | |
$api_key = "Your PAT" | |
function Get-GitHubApi(){ | |
param($Url) | |
$Headers = @{Authorization = "Bearer $api_key"} | |
$wr = Invoke-WebRequest -UseBasicParsing -Headers $Headers $Url | |
$wr.Content | ConvertFrom-Json -Depth 100 | |
if([string]($wr.Headers.link -split "," -match 'rel="next"') -match "https[^>]+"){ | |
Get-GitHubApi $matches[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Progress -Activity "IAM List (1/2)" -Status ("0% AttachedPolicies") -PercentComplete 0 | |
$AttachedPolicies = & aws iam list-policies --only-attached | ConvertFrom-Json | Select-Object -ExpandProperty Policies | |
Write-Progress -Activity "IAM List (1/2)" -Status ("25% Users") -PercentComplete 0 | |
$Users = & aws iam list-users | ConvertFrom-Json | Select-Object -ExpandProperty Users | |
Write-Progress -Activity "IAM List (1/2)" -Status ("50% Roles") -PercentComplete 0 | |
$Roles = & aws iam list-roles | ConvertFrom-Json | Select-Object -ExpandProperty Roles | |
Write-Progress -Activity "IAM List (1/2)" -Status ("75% Groups") -PercentComplete 0 | |
$Groups = & aws iam list-groups | ConvertFrom-Json | Select-Object -ExpandProperty Groups | |
$t = ($AttachedPolicies.Length + $Users.Length + $Roles.Length + $Groups.Length) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Connect to windows internal database, remote access account database, and get relevant information for all active sessions | |
$ConnectionString = 'server=\\.\pipe\MICROSOFT##WID\tsql\query;database=RaAcctDb;trusted_connection=true;' | |
$SQLConnection= New-Object System.Data.SQLClient.SQLConnection($ConnectionString) | |
$SQLConnection.Open() | |
$SQLCommand = $SQLConnection.CreateCommand() | |
$SQLCommand.CommandText = 'SELECT * FROM dbo.ConnectionTable JOIN dbo.SessionTable ON dbo.ConnectionTable.ConnectionId = dbo.SessionTable.ConnectionId WHERE SessionState = 1' | |
$SqlDataReader = $SQLCommand.ExecuteReader() | |
$SQLDataResult = New-Object System.Data.DataTable | |
$SQLDataResult.Load($SqlDataReader) | |
$SQLConnection.Close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Secret Server Launch List | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0.1 | |
// @description Add a list of hosts your can choose from the secret server launcher UI | |
// @author nickadam | |
// @match https://*.secretservercloud.com/app/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=secretservercloud.com | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
test -z "$1" || HOST_IP=$1 | |
test -z "$2" || VIP=$2 | |
test -z "$3" || VHID=$3 | |
test -z "$4" || PASSWORD="${4}" | |
# set default VHID and PASSWORD if not set | |
test ! -z "$VHID" || VHID=20 | |
test ! -z "$PASSWORD" || PASSWORD=ucarp |
NewerOlder