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
| if exist "%ProgramFiles%\7-Zip\7z.exe" ( | |
| set "path7z=%ProgramFiles%\7-Zip\7z.exe" | |
| ) else if exist "%ProgramFiles(x86)%\7-Zip\7z.exe" ( | |
| set "path7z=%ProgramFiles(x86)%\7-Zip\7z.exe" | |
| ) | |
| "%path7z%" e "%archiveName%" "%Ag.dll%" -o "%launcher%" |
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
| using System.Diagnostics; | |
| using System.Text; | |
| using UnityEngine; | |
| public class UnityTraceListenerScript : MonoBehaviour | |
| { | |
| private void Awake() | |
| { | |
| Trace.Listeners.Add(new UnityTraceListener()); | |
| Trace.AutoFlush = true; |
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
| public static string CombineUrl(params string[] uriParts) | |
| { | |
| string uri = string.Empty; | |
| if (uriParts != null && uriParts.Length > 0) | |
| { | |
| char[] trims = new char[] { '\\', '/' }; | |
| uri = (uriParts[0] ?? string.Empty).Trim(trims); | |
| for (int i = 1; i < uriParts.Length; i++) | |
| { | |
| var rightPart = (uriParts[i] ?? string.Empty).Trim(trims); |
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 | |
| set _HOST=ct100 | |
| ::^^^ Sets value for ssh target (host), please use Windows SSH config file, if you don't you must either set the key path with -i argument, or enter password manually when prompted by the console. | |
| ::^^^ Example value using key: | |
| ::^^^ _HOST="-i \Path\To\mykey user@ip". | |
| set _USER=root@pam | |
| ::^^^ Sets the Proxmox user and authentication method, default is root@pam. | |
| set _PASSWD=6969 |
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
| using Microsoft.AspNetCore.Authentication; | |
| using Microsoft.AspNetCore.Authorization; | |
| using Microsoft.AspNetCore.Http; | |
| using Microsoft.AspNetCore.Mvc; | |
| using System.Net.WebSockets; | |
| namespace WebAPI.Controllers | |
| { | |
| [Route("/ws")] | |
| [ApiController] |
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) Add projects: Captura.Base, Captura.Bass, Captura.SharpAvi, Screna from this repository: | |
| https://github.com/MathewSachin v8.0.0 | |
| //2) Copy bass.dll & bassmix.dll from x64 folder: | |
| //http://www.un4seen.com/files/bassmix24.zip | |
| //http://www.un4seen.com/files/bass24.zip | |
| recordTask = new Task((cancelationToken) => | |
| { |
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
| private string AppName = "MyApp"; | |
| public void StartRecording() | |
| { | |
| StopRecording(); | |
| WinProcess.OnGetAllWindowsResult += WinProcess_OnGetAllWindowsResult; | |
| WinProcess.GetAllWindows(); //user32 EnumWindows | |
| } | |
| private void WinProcess_OnGetAllWindowsResult() |
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
| private void WriteWavHeader(MemoryStream stream, bool isFloatingPoint, ushort channelCount, ushort bitDepth, int sampleRate, int totalSampleCount) | |
| { | |
| stream.Position = 0; | |
| // RIFF header. | |
| // Chunk ID. | |
| stream.Write(Encoding.ASCII.GetBytes("RIFF"), 0, 4); | |
| // Chunk size. | |
| stream.Write(BitConverter.GetBytes(((bitDepth / 8) * totalSampleCount) + 36), 0, 4); |
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
| var contrast = 30; //[-255;+255] | |
| float factor = (259f * (contrast + 255f)) / (255f * (259f - contrast)); | |
| Color.r = (byte)Math.Clamp(factor * (Color.r - 128) + 128, 0, 255); | |
| Color.g = (byte)Math.Clamp(factor * (Color.g - 128) + 128, 0, 255); | |
| Color.b = (byte)Math.Clamp(factor * (Color.b - 128) + 128, 0, 255); |
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
| # | |
| # Sample configuration file for the Samba suite for Debian GNU/Linux. | |
| # | |
| # | |
| # This is the main Samba configuration file. You should read the | |
| # smb.conf(5) manual page in order to understand the options listed | |
| # here. Samba has a huge number of configurable options most of which | |
| # are not shown in this example | |
| # | |
| # Some options that are often worth tuning have been included as |
NewerOlder