- system tools https://docs.microsoft.com/en-us/sysinternals/
- system tools http://www.resplendence.com/downloads
- cleanup old drivers https://github.com/lostindark/DriverStoreExplorer
- win10 bloatware cleanup https://github.com/Sycnex/Windows10Debloater
- iso2usb https://rufus.ie/
- better regedit https://github.com/zodiacon/RegExp
- resource hacker, edit app icon http://www.angusj.com/resourcehacker/#download
- forensic tools https://powerforensics.readthedocs.io/en/latest/
- compare registry https://twitter.com/Lee_Holmes/status/1520482238500016128?t=fObOqiIGcn7vzrLBQs46cw&s=09
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
| // https://pastebin.com/rMx1PVXi | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class PaintBrush : MonoBehaviour | |
| { | |
| public int resolution = 512; | |
| Texture2D whiteMap; |
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
| type | bytes | bits | range | binary | | |
| ------------------------------------------------------------------------- | |
| halfbyte| 0.5 | 4 | 0 to 15 | 0000 to 1111 | | |
| bool | 1 | 8 | 0 to 1 || | |
| byte | 1 | 8 | -128 to 127 || | |
| ubyte | 1 | 8 | 0 to 255 || | |
| uint8_t | 1 | 8 | 0 to 255 || | |
| int16 | 2 | 16 | -32,768 to +32,767 || | |
| uint16 | 2 | 16 | 0 to +65,535 || | |
| int | 4 | 32 | -2,147,483,648 to 2,147,483,647 || |
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
| ---------- | |
| ---------- | |
| ---------- | |
| ---------- | |
| ---------- | |
| ---------- | |
| ---------- | |
| ---------- | |
| ---------- | |
| ---------- |
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
| // get all files into array | |
| var files = Directory.GetFiles(sourceFolder, "*", SearchOption.AllDirectories); | |
| // add results to gridarray, first need to convert into objects | |
| var results = new List<ResultItem>(); | |
| for (int i = 0, length = files.Length; i < length; i++) | |
| { | |
| var o = new ResultItem(); | |
| o.path = files[i]; | |
| results.Add(o); |
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
| // https://forum.unity.com/threads/stretch-canvas-to-fit-device.564016/#post-3745738 | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public class ScaleCanvasToScreen : MonoBehaviour | |
| { | |
| void Start() | |
| { |
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
| // https://forum.unity.com/threads/hybrid-native-container-nativehashmaplist-tkey-tvalue.564118/ | |
| //#define DEBUG_HML | |
| using Unity.Collections; | |
| using System; | |
| namespace E7.Native | |
| { | |
| /// <summary> |
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
| // fix | |
| int increment = 0; | |
| while (recieved < fileSize) | |
| { | |
| byte[] data = new byte[camClient.ReceiveBufferSize]; | |
| increment = dataStream.Read(data, 0, data.Length); | |
| recieved += increment; | |
| ms.Write(data.Take(increment).ToArray(), 0, increment); | |
| } |
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
| // c# version of https://lemire.me/blog/2017/09/18/visiting-all-values-in-an-array-exactly-once-in-random-order/ | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| public class VisitInDisorder | |
| { | |
| int maxRange; |
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
| anglediff = (facingAngle - angleOfTarget + 180 + 360) % 360 - 180 | |
| if (abs(anglediff>30) // within 60 degrees from facing angle | |
| // https://stackoverflow.com/a/12234633/5452781 |