This file contains hidden or 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
| 1. Open PS as Admin | |
| cd C:\Windows\System32\WindowsPowerShell\v1.0 | |
| start powershell.exe | |
| 2. In PS run following command.. | |
| Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -outfile $env:TEMP\1-Microsoft.VCLibs.x86.14.00.Desktop.appx | |
| Add-AppxPackage $env:TEMP\1-Microsoft.VCLibs.x86.14.00.Desktop.appx |
This file contains hidden or 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 Resync time macOS ^<-^> Windows | |
| @echo off | |
| :: BatchGotAdmin | |
| :------------------------------------- | |
| REM --> Check for permissions | |
| IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" ( | |
| >nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system" | |
| ) ELSE ( | |
| >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" | |
| ) |
This file contains hidden or 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
| import os | |
| import requests | |
| def linenotify(message, imagePath=None, stickerPackageId=None, stickerId=None, tk=''): | |
| url = 'https://notify-api.line.me/api/notify' | |
| token = os.getenv('LINE_NOTIFY_TOKEN') or (tk or None) | |
| if token is None: | |
| print('LINE_NOTIFY_TOKEN is required!') | |
| return False | |
| header = {'Authorization': f'Bearer {token}'} |
This file contains hidden or 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
| #include <iostream> | |
| #include <time.h> | |
| #include <stdlib.h> | |
| //#include <stdio.h> | |
| #include <conio.h> | |
| using namespace std; | |
| int m,w,num,guess,i; | |
| int maxplay; | |
| char mSelect[1],txt[10]; |
This file contains hidden or 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
| # Mikrotik 6.44+ | |
| :local service [/ppp active get [find name="$user"] service]; | |
| :local callerId [/ppp active get [find name="$user"] caller-id] | |
| :local token "YOUR_LINE_NOTIFY_TOKEN"; | |
| :local message "%0AService%3A%20VPN-$service%0AUser%3A%20$user%0AWAN%3A%20$callerId%0AIP%3A%20$"remote-address"%0AStatus%3A%20%3E%3E%20Connected%20%3C%3C"; | |
| /tool fetch http-method=post http-header-field="Authorization:Bearer $token" http-data="message=$message" output=none https://notify-api.line.me/api/notify |
This file contains hidden or 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
| net stop wuauserv | |
| cd %systemroot%\SoftwareDistribution | |
| ren Download Download.old | |
| net start wuauserv | |
| net stop bits | |
| net start bits | |
| net stop cryptsvc | |
| cd %systemroot%\system32 | |
| ren catroot2 catroot2old | |
| net start cryptsvc |