Compare commits

...

8 Commits

Author SHA1 Message Date
lucca 65797379cc added vivestations command 2026-07-16 08:01:28 -04:00
lucca 22b526ea81 added quest wap script that doesnt need NM 2026-07-09 19:05:48 -04:00
Lucca Pirovano a8d1f7321f added my custom msp powershell scripts 2026-07-07 16:34:11 -04:00
Lucca Pirovano 61cdd43f50 added winget script for installing ffmpeg on windows 2026-07-07 16:30:39 -04:00
Lucca Pirovano 14847a4caa added ffmpeg scripts for clipping and removing sound for windows 2026-07-07 16:29:57 -04:00
Lucca Pirovano 802744551b organized quest scripts 2026-07-07 16:27:04 -04:00
lucca b688582e55 added quest socks proxy setup script 2026-07-06 19:08:44 -04:00
lucca 94239888ec added quest folder with quest network/streaming scripts 2026-07-06 19:05:45 -04:00
17 changed files with 259 additions and 2 deletions
+4
View File
@@ -0,0 +1,4 @@
[Dolphin]
Timestamp=2026,7,7,16,26,42.343
Version=4
ViewMode=1
Binary file not shown.
+30
View File
@@ -0,0 +1,30 @@
@echo off
setlocal
if "%~3"=="" (
echo Usage: %~nx0 input_file start_time end_time
echo Example: %~nx0 video.mp4 00:01:30 00:02:45
echo Example: %~nx0 video.mp4 90 165
exit /b 1
)
set "INPUT=%~1"
set "START=%~2"
set "END=%~3"
set "OUTPUT=%~dpn1_cropped%~x1"
ffmpeg -hide_banner -loglevel error ^
-ss %START% ^
-to %END% ^
-i "%INPUT%" ^
-c copy ^
"%OUTPUT%"
if errorlevel 1 (
echo Failed.
exit /b 1
)
echo Done.
echo Output: "%OUTPUT%"
+1
View File
@@ -0,0 +1 @@
winget install ffmpeg
+34
View File
@@ -0,0 +1,34 @@
@echo off
setlocal enabledelayedexpansion
REM Process all video files in the parent directory.
REM Copies the video stream without re-encoding and removes all audio.
REM Output files are written to the current directory.
for %%F in (
"..\*.mp4"
"..\*.mkv"
"..\*.mov"
"..\*.avi"
"..\*.webm"
"..\*.m4v"
"..\*.ts"
"..\*.mts"
"..\*.m2ts"
"..\*.flv"
"..\*.wmv"
) do (
if exist "%%~F" (
echo Processing: %%~nxF
ffmpeg -hide_banner -loglevel error -y ^
-i "%%~F" ^
-map 0:v ^
-c:v copy ^
-an ^
"%%~nxF"
)
)
echo.
echo Done.
pause
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
while [ -L "$SOURCE" ]; do
DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
SOURCE="$(readlink "$SOURCE")"
[[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE"
done
SCRIPT_DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
cd "$SCRIPT_DIR"
../switch.sh office_vive_base_1 $1
../switch.sh office_vive_base_2 $1
+49
View File
@@ -0,0 +1,49 @@
#offboarding script
$tenantAdminUsername = "admin@example.com"
$tenantID = "31537af4-6d77-4bb9-a681-d2394888ea26"
$userEmail = "example@example.com"
$forwardingAddress = "example2@example.com"
echo "Connecting to 365..."
Connect-MgGraph -NoWelcome -TenantId $tenantID
Pause
echo "Connecting to exchange online..."
Connect-ExchangeOnline -UserPrincipalName $tenantAdminUsername
Pause
echo "Connecting to MSOnline..."
Connect-MsolService
Pause
$user = Get-MgUser -UserId $userEmail
echo "Making user a shared mailbox..."
Set-Mailbox $userEmail -Type Shared
echo "Waiting 60 seconds for the changes to apply..."
Start-Sleep -Seconds 60
Get-Mailbox -Identity $userEmail | Format-Table Name, RecipientTypeDetails
echo "Made user a shared mailbox, make sure this applied by reading the above. If not, hit ctrl+C, because the script is about to remove their 365 license next"
Pause
echo "Setting up email forwarding..."
Set-Mailbox -Identity $userEmail -DeliverToMailboxAndForward $true -ForwardingSMTPAddress $forwardingAddress
Pause
echo "Continuing after making shared mailbox..."
$businesspremiumlicense = Get-MgSubscribedSku -All | Where SkuPartNumber -eq 'SPB'
Set-MgUserLicense -UserId $userEmail -RemoveLicenses @($businesspremiumlicense.SkuId) -AddLicenses @{}
echo "Revoking sign-in sessions..."
Revoke-MgUserSignInSession -UserId $userEmail
Pause
echo "Blocking sign-in..."
Update-Mguser -UserId $userEmail -AccountEnabled:$false
echo "Resetting MFA..."
$userMfaAccount = Get-MsolUser -UserPrincipalName $userEmail
Reset-MsolStrongAuthenticationMethodByUpn -UserPrincipalName $userMfaAccount.Userprincipalname
+53
View File
@@ -0,0 +1,53 @@
#onboarding script
# v put the MSP's info here v #
$MSPName = "Example Company"
# ^ put the MSP's info here ^ #
# v put the client company's info here v #
$tenantID = "31537af4-6d77-4bb9-a681-d2394888ea26"
$clientCompanyEmailDomain = "contoso.onmicrosoft.com"
$clientCompanyName = "Contoso Corp"
# ^ put the client company's info here ^ #
# v put the user's info here v #
$userFirstName = ""
$userLastName = ""
$userMobilePhone = ""
$userState = "New Jersey"
$userDepartment = ""
$userUsageLocation = "US"
# ^ put their info here ^ #
$userMailNickname = $userFirstName.ToLower()[0]+$userLastName.ToLower()
$userDisplayName = "$userFirstName $userLastName"
$userEmail = "$userMailNickname@$clientCompanyEmailDomain"
Add-Type -AssemblyName System.Web
$password = [System.Web.Security.Membership]::GeneratePassword((Get-Random -Minimum 20 -Maximum 32), 3)
$PasswordProfile = @{
Password = $password
ForceChangePasswordNextSignIn = $true
ForceChangePasswordNextSignInWithMfa = $true
}
#connect to graph
Connect-MgGraph -NoWelcome -TenantId $tenantID
New-MgUser -AccountEnabled -GivenName $userFirstName -Surname $userLastName -MailNickname $userMailNickname -DisplayName $userDisplayName -UserPrincipalName $userEmail -PasswordProfile $PasswordProfile -Department $userDepartment -UsageLocation $userUsageLocation
$businesspremiumlicense = Get-MgSubscribedSku -All | Where SkuPartNumber -eq 'SPB'
Set-MgUserLicense -UserId $userEmail -AddLicenses @{SkuId = $businesspremiumlicense.SkuId} -RemoveLicenses @()
$fullName = ((Get-ItemProperty "HKCU:\\Software\\Microsoft\\Office\\Common\\UserInfo\\").UserName)
$firstName = $fullName.Split(' ')[0]
cls
echo "Hello, this is $firstName with $MSPName."
echo "`nI just created your Microsoft login information for $clientCompanyName:`n"
echo "Email: $userEmail"
echo "Temporary Password: $password"
echo "`nYou can sign in using the outlook or teams apps, or from portal.office.com"
echo "`nPlease let me know if you have any issues signing in, were happy to help!`n"
echo "Thank you and have a wonderful rest of your day,"
echo $fullName
-2
View File
@@ -1,2 +0,0 @@
#!/bin/bash
scrcpy --crop 1720:1664:0:100 -m 1000 -b 2M --max-fps 10
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
scrcpy --crop 1720:1664:0:100 -m 1000 -b 2M --max-fps 10 --no-audio
+41
View File
@@ -0,0 +1,41 @@
#!/bin/bash
# Ensure the script is run as root
if [ "$EUID" -ne 0 ]; then
echo "[-] Please run as root (su)"
exit 1
fi
read -rp "Wireless interface (usually wlan0 or wlan1): " IFACE
# 1. Clean up old processes
echo "[*] Cleaning up old processes..."
killall hostapd 2>/dev/null
# 2. Hard reset the wireless interface
echo "[*] Resetting interface $IFACE..."
ip link set "$IFACE" down 2>/dev/null
ip addr flush dev "$IFACE" 2>/dev/null
rfkill unblock wifi 2>/dev/null # Clear any software blocks
sleep 1 # Give hardware a moment to settle
ip link set "$IFACE" up
ip addr add 192.168.38.1/24 dev "$IFACE"
# 3. Create an OPEN hostapd configuration (No WPA/encryption)
echo "[*] Creating OPEN hostapd configuration..."
cat <<EOF > /tmp/hostapd.conf
interface=$IFACE
driver=nl80211
ssid=pihotspot
hw_mode=g
channel=6
auth_algs=1
EOF
# 4. Start the Access Point
echo "[*] Starting hostapd in the background..."
hostapd -B /tmp/hostapd.conf
echo "[+] Open Hotspot 'pihotspot' is up and reset!"
echo "[+] NetHunter IP: 192.168.38.1"
echo "[*] Ensure your Quest 2 static IP is in the 192.168.38.X range (but not .1)"
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
read -rp "Wireless interface: " IFACE
# Remove an existing profile with the same name (optional)
nmcli connection delete pihotspot 2>/dev/null
# Create the access point
nmcli connection add \
type wifi \
ifname "$IFACE" \
con-name pihotspot \
ssid pihotspot
# Configure it
nmcli connection modify pihotspot \
802-11-wireless.mode ap \
ipv4.method manual \
ipv4.addresses "192.168.38.1/24" \
ipv6.method ignore \
connection.autoconnect yes
# Bring it up
nmcli connection up pihotspot
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
microsocks -i 192.168.38.1 -p 8080
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
echo you need to plug in the quest via usb on first run for the session
adb tcpip 5555
adb connect 192.168.38.3:5555
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
for dev in "Wacom Graphire3 Pen stylus" "Wacom Graphire3 Pen eraser" "Wacom Graphire3 Pen cursor"; do xsetwacom set "$dev" MapToOutput "$1"; done