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
# for bash (macOS) | |
POSH_THEMES_PATH=$(brew --prefix oh-my-posh)/themes | |
eval "$(oh-my-posh completion bash)" | |
eval "$(oh-my-posh init bash --config "$POSH_THEMES_PATH"/clean-detailed.omp.json | sed 's|\[\[ -v MC_SID \]\]|[[ -n "$MC_SID" ]]|')" |
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
/* | |
After running as administrator | |
- Entering the "winrm quickconfig" command if this is your first time setting up winrm | |
- If you get an error message that says it failed because your network profile is set to public, that's okay. | |
- To allow all external connections, run "winrm s winrm/config/client @{TrustedHosts="*"}" command | |
- After you're done testing, run the "winrm s winrm/config/client @{TrustedHosts=""}" command | |
*/ | |
var credential = default(TokenCredential); |
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
using System; | |
using System.Security.Cryptography; | |
// Original Source Code: https://github.com/RedAndBlueEraser/rdp-file-password-encryptor | |
// System.Security.dll required | |
public static class Program | |
{ | |
public static void Main() | |
{ |
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
using System; | |
using System.Globalization; | |
public static class Program | |
{ | |
private static void Main() | |
{ | |
var prompt = string.Empty; | |
prompt = Prompt |
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
FROM mcr.microsoft.com/windows:1903 AS build | |
WORKDIR C:\\odtsetup | |
ADD https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_11617-33601.exe odtsetup.exe | |
RUN odtsetup.exe /quiet /norestart /extract:C:\\odtsetup | |
FROM mcr.microsoft.com/windows:1903 AS download | |
WORKDIR C:\\odtsetup | |
COPY --from=build C:\\odtsetup\\setup.exe . |
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
@echo off | |
pushd "%~dp0" | |
%windir%\Microsoft.NET\Framework64\v4.0.30319\csc.exe /nologo /target:exe /r:System.ServiceProcess.dll /out:ServiceMain.exe ServiceMain.cs | |
%windir%\Microsoft.NET\Framework64\v4.0.30319\csc.exe /nologo /target:exe /out:SimpleMain.exe SimpleMain.cs | |
:exit | |
popd | |
@echo on |
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
// Require unsafe configuration. | |
using System.Runtime.InteropServices; | |
using System.Text; | |
namespace HelloWorld; | |
internal partial class NativeMethods | |
{ | |
// https://github.com/mono/mono/issues/9362 |
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
secretGenerator: | |
- name: mysql-pass | |
literals: | |
- password=YOUR_PASSWORD_HERE | |
resources: | |
- mysql-deployment.yaml | |
- wordpress-deployment.yaml |
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
@echo off | |
pushd "%~dp0" | |
REM Please run this batch script inside Windows SDK or Visual Studio command prompt. | |
SET CN=MyCN | |
if exist CA.cer ( | |
certutil.exe -user -delstore Root CA.cer | |
del /f CA.cer |
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
using OpenCvSharp; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using static OpenCvSharp.Cv2; | |
using static System.Math; | |
namespace ReceiptScannerCSharp | |
{ |
NewerOlder