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
SELECT DISTINCT | |
UPPER(COALESCE(SCU.SystemConsoleUser0, UMR.UniqueUserName)) as Username, | |
SYS.Name0 as Machine, | |
COALESCE( | |
SCU.LastConsoleUse0, | |
UMR.CreationTime | |
) as Time_Last_Logged_On_Machine | |
FROM | |
v_R_System SYS | |
LEFT JOIN v_GS_SYSTEM_CONSOLE_USER SCU ON |
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 | |
# Read through this first please | |
# First set some variables | |
echo "Enter username:" | |
read username | |
echo "Enter password:" |
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
// Amex Rewards Points Rate Calculator | |
// by Marco Lussetti | |
// 1. Navigate to https://global.americanexpress.com/rewards/summary | |
// 2. Choose the month you need to run it on | |
// 3. Open your Browser Console | |
// 4. Paste the contents below | |
// 5. Wait for the script to run (it will keep clicking show more every 0.75s until | |
// it loaded the entire statement) |
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 | |
# Takes a set of haproxy logs, and parses them in GoAccess | |
# By Marco Lussetti | |
# Some caveats: | |
# 1. This uses GoAccess in a container | |
# 2. HAProxy works off frontends and backends, not the usual format GoAccess expects, so: | |
# 2a. Frontends are logged as "Remote User (HTTP authentication)" | |
# 2b. Backends are logged as "Virtual Hosts" | |
zcat --force haproxy.log* | docker run --rm -i -e LANG=$LANG allinurl/goaccess -a -o html --log-format='%^]%^ %h:%^ [%d:%t.%^] %e %v/%R/%^/%^/%L/%^ %s %b %^"%r"' --date-format='%d/%b/%Y' --time-format='%H:%M:%S' - > report.html |
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
#!powershell | |
#Requires -Version 3.0 | |
# Configure a Windows host for remote management with Ansible | |
# ----------------------------------------------------------- | |
# | |
# This script checks the current WinRM (PS Remoting) configuration and makes | |
# the necessary changes to allow Ansible to connect, authenticate and | |
# execute PowerShell commands. | |
# |
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
<# | |
.SYNOPSIS | |
Script to Initialize my custom powershell setup. | |
.DESCRIPTION | |
Script uses scoop | |
.NOTES | |
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted. | |
Author: Mike Pruett | |
Date: October 18th, 2018 |
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
{ | |
"title": "A Trip to Scotland", | |
"itinerary": [ | |
{ | |
"date": "2012-04-21", | |
"locations": ["Vienna, Austria"], | |
"events": [ | |
{ | |
"title": "Visit the Hofburg Palace", | |
"startTime": "2012-04-21T08:00:00.000Z", |
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 | |
# Use sudo plz | |
# CONFIGURATION, EDIT PLEASE | |
ALLOWED_DOMAINS=https://localhost:5000 | |
CORS_DOMAIN=cors.example.com | |
# Install dependencies | |
apt install npm |
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
<script> | |
import { onMount } from 'svelte'; | |
const games = [ | |
// Streamed via Discord | |
// Jackbox 4 | |
"Fibbage 3 (2-8) - Jackbox 4 - (later)", | |
"Fibbage Enough about You (2-8) - Jackbox 4 - (later)", | |
"Survive the Internet (3-8) - Jackbox 4 - (earlier)", | |
"Monster Seeking Monster (3-7) - Jackbox 4 - (earlier)", |
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
Enter-PSSession -ComputerName <HOST> -UseSSL -port 5986 -Authentication Basic -Credential (New-Object System.Management.Automation.PSCredential("Administrator", (ConvertTo-SecureString "<PASSWORD>" -AsPlainText -Force))) -SessionOption (New-PSSessionOption -SkipCACheck) |
NewerOlder