Compare commits
6 Commits
b688582e55
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 65797379cc | |||
| 22b526ea81 | |||
| a8d1f7321f | |||
| 61cdd43f50 | |||
| 14847a4caa | |||
| 802744551b |
@@ -0,0 +1,4 @@
|
||||
[Dolphin]
|
||||
Timestamp=2026,7,7,16,26,42.343
|
||||
Version=4
|
||||
ViewMode=1
|
||||
Binary file not shown.
Executable
+30
@@ -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%"
|
||||
@@ -0,0 +1 @@
|
||||
winget install ffmpeg
|
||||
Executable
+34
@@ -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
|
||||
Binary file not shown.
Binary file not shown.
Executable
+13
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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, we’re happy to help!`n"
|
||||
echo "Thank you and have a wonderful rest of your day,"
|
||||
echo $fullName
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/bash
|
||||
scrcpy --crop 1720:1664:0:100 -m 1000 -b 2M --max-fps 10
|
||||
Executable
+41
@@ -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)"
|
||||
Reference in New Issue
Block a user