Skip to content

Instantly share code, notes, and snippets.

View reitowo's full-sized avatar
😽
saving the world

reito reitowo

😽
saving the world
View GitHub Profile
{
"meta": {
"theme": "even"
},
"basics": {
"name": "Wang Zhongwei",
"label": "Full Stack Engineer",
"image": "",
"email": "[email protected]",
"phone": "(86) 186-5298-5013",
@reitowo
reitowo / aes-ctr.cs
Created January 1, 2022 11:04
Stream Crypto AES-256-CTR C# Implementation
using System.Security.Cryptography;
namespace TgServer.Crypto;
public sealed class AesCtr {
private readonly byte[] _key;
private readonly byte[] _counter;
private readonly byte[] _blockKey;
private readonly ICryptoTransform _encryptor;
@reitowo
reitowo / code.cs
Created October 11, 2021 07:43
Unity Editor Change UI Scale Factor With Game View
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine.UI;
@reitowo
reitowo / auto-update.py
Last active April 21, 2021 05:22
Vcpkg Registry Ports Auto Update (Github Only)
import requests
import pathlib
import re
import hashlib
import json
import version_parser
import git
import argparse
proxy = {'http': 'http://127.0.0.1:10809', 'https': 'http://127.0.0.1:10809'}
@reitowo
reitowo / clearGitHistory.bat
Created April 5, 2021 13:30
Clear Git History
git checkout --orphan latest_branch
git add -A
git commit -am "Clear Git History"
git branch -D master
git branch -D main
git branch -M main
git push -f origin main
git branch --set-upstream-to origin/main main
pause