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
| @echo off | |
| fltmc >nul 2>&1 || ( | |
| echo This batch script requires administrator privileges. Right-click on | |
| echo the script and select "Run as administrator". | |
| goto :die | |
| ) | |
| rem Change this path if you are using Community or Professional editions | |
| set "VS_INSTALL_DIR=%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise" |
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
| robocopy "$env:UserProfile\..\" F:\UserprofileBackup *.* /r:0 /w:0 /mir /sl /XJ |
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
| #!/bin/bash | |
| # install stuff before using this script | |
| # sudo apt install libxml-xpath-perl curl | |
| #configure your kodi settings | |
| URL=localhost | |
| PORT=9981 | |
| USERNAME=kodi | |
| PASSWORD=kodi |
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
| ssh-keygen | |
| ssh-copy-id username@remote_host |
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
| function Test-SqlConnection { | |
| param( | |
| [Parameter(Mandatory)] | |
| [string]$ServerName, | |
| [Parameter(Mandatory)] | |
| [string]$DatabaseName | |
| ) | |
| $connectionString = "Data Source=$ServerName;Integrated Security=true;Initial Catalog=master;Connect Timeout=3;database=$DatabaseName;" | |
| $sqlConn = new-object ("Data.SqlClient.SqlConnection") $connectionString |
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
| for f in *.mkv; do echo "Processing $f file.."&&ffmpeg -i "$f" -c copy "$f.mp4"&& rm "$f"; done |
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
| ffmpeg -i In.mp4 -map 0:v -c:v copy -map 0:a -c:a:0 aac Out.mp4 |
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
| taskkill /f /im OneDrive.exe | |
| & "$env:SystemRoot\SysWOW64\OneDriveSetup.exe" /uninstall | |
| # Take Ownsership of OneDriveSetup.exe | |
| $ACL = Get-ACL -Path $env:SystemRoot\SysWOW64\OneDriveSetup.exe | |
| $Group = New-Object System.Security.Principal.NTAccount("$env:UserName") | |
| $ACL.SetOwner($Group) | |
| Set-Acl -Path $env:SystemRoot\SysWOW64\OneDriveSetup.exe -AclObject $ACL | |
| # Assign Full R/W Permissions to $env:UserName (Administrator) |
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
| { | |
| "recommendations": ["adamhartford.vscode-base64","bierner.github-markdown-preview","bierner.markdown-checkbox","chintans98.arkdown-jira","dangmai.workspace-default-settings","DavidAnson.vscode-markdownlint","dbaeumer.vscode-eslint","denco.confluence-markup","DotJoshJohnson.xml","EditorConfig.EditorConfig","emilianox.flow-jira-commit-prefix","esbenp.prettier-vscode","fernandoescolar.vscode-solution-explorer","formulahendry.dotnet-test-explorer","GrapeCity.gc-excelviewer","Gruntfuggly.todo-tree","hbenl.vscode-test-explorer","k--kato.docomment","mhutchie.git-graph","ms-dotnettools.csharp","ms-mssql.mssql","ms-vscode.cpptools","ms-vscode.powershell","ms-vsliveshare.vsliveshare","ms-vsliveshare.vsliveshare-audio","msjsdiag.debugger-for-edge","Orta.vscode-jest","redhat.vscode-yaml","ryu1kn.partial-diff","slevesque.vscode-hexdump","streetsidesoftware.code-spell-checker","streetsidesoftware.code-spell-checker-german","wghats.vscode-nxunit-test-adapter"] | |
| } |
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
| static function OnBeforeRequest(oSession: Session) { | |
| if (oSession.RequestMethod == 'GET' && oSession.PathAndQuery.IndexOf('part_of_your_url') > 0) { | |
| oSession.utilCreateResponseAndBypassServer(); | |
| oSession.oResponse.headers.HTTPResponseCode = 401; | |
| oSession.oResponse.headers.HTTPResponseStatus = '401 Not Authorized'; | |
| oSession.oResponse.headers['Access-Control-Allow-Origin'] = '*'; | |
| oSession.utilSetResponseBody('response_body'); | |
| } | |
| } |