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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"path/filepath" | |
"strings" |
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
if not exist %1.mnf goto AlreadyOFF | |
regsvr32 /u %1.dll | |
ren %1.mnf %1._mnf | |
goto END | |
:AlreadyOFF | |
echo %1 already off | |
:END |
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
if not exist %1._mnf goto AlreadyON | |
ren %1._mnf %1.mnf | |
regsvr32 %1.dll | |
goto END | |
:AlreadyON | |
echo %1 already on | |
:END |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<?php | |
$ip = $_SERVER["REMOTE_ADDR"]; | |
echo "ip: $ip ... "; | |
$mysqli = new mysqli("localhost", "db_user", "db_password", "database"); | |
if ($mysqli->connect_errno) { |
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
procedure ReportAppUsage; | |
{ send a bunch of information out to a PHP script to remotely log application usage } | |
function EncodeURIComponent(const ASrc: string): UTF8String; | |
{ from excellent blog: https://marc.durdin.net/2012/07/indy-tiduri-pathencode-urlencode-and-paramsencode-and-more/ } | |
const | |
HexMap: UTF8String = '0123456789ABCDEF'; | |
function IsSafeChar(ch: Integer): Boolean; | |
begin |
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
$StopWatch = [system.diagnostics.stopwatch]::StartNew(); | |
choco feature enable -n allowGlobalConfirmation | |
# required for some browsers | |
choco install chocolatey-core.extension | |
Write-Host "=== Install Vivaldi ===" | |
choco install vivaldi.portable | |
choco install vivaldi |
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
$StopWatch = [system.diagnostics.stopwatch]::StartNew(); | |
choco feature enable -n allowGlobalConfirmation | |
choco install sysinternals | |
choco install treesizefree | |
choco install xml-notepad | |
choco install 7zip | |
choco install putty | |
choco install winscp |
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
$StopWatch = [system.diagnostics.stopwatch]::StartNew(); | |
choco feature enable -n allowGlobalConfirmation | |
Write-Host "=== Installing SQLite ===" | |
choco install sqlite | |
Write-Host "=== Installing SQLite Shell ===" | |
choco install sqlite.shell |
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
# Install Chocolatey! | |
# this script is taken from https://chocolatey.org/install#individual and modified only slightly | |
Write-Host "Did you run this from PowerShell started as Admin?" | |
Write-Host "If not, abort it now and restart; otherwise, continue..." | |
Read-Host | |
Set-ExecutionPolicy Bypass -Scope Process -Force | |
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 |
NewerOlder