Skip to content

Instantly share code, notes, and snippets.

@nathan130200
nathan130200 / Program.cs
Last active July 12, 2021 14:48
Diffie Hellman - Prototype Test of DH Key Exchange Generator
using System;
using System.Diagnostics;
using System.IO;
using System.Numerics;
using System.Security.Cryptography;
using System.Threading;
namespace Dh
{
class Program
@nathan130200
nathan130200 / _preview.md
Last active June 6, 2021 18:26
GTA: San Andreas - Impossible Mod to Play in History Mode
@nathan130200
nathan130200 / ffmpegToWeb.js
Created May 25, 2021 01:42 — forked from moeiscool/ffmpegToWeb.js
FFMPEG to Web Browser with Express, Socket.IO and JSMPEG
// Shinobi (http://shinobi.video) - FFMPEG H.264 over HTTP Test
// How to Use raw H.264 (Simulated RTSP)
// 1. Start with `node ffmpegToWeb.js`
// 2. Get the IP address of the computer where you did step 1. Example : 127.0.0.1
// 3. Open VLC and "Open Network Stream".
// 4. Input the following without quotes : `http://127.0.0.1:8001/h264` and start.
var child = require('child_process');
var io = require('socket.io');
var events = require('events');
@nathan130200
nathan130200 / Program.cs
Last active March 5, 2021 01:02
Line Text Comparision Library for TSV files.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
public class Program
{
static void Main(string[] args)
{
var lines1 = File.ReadAllLines(args[0]);
@nathan130200
nathan130200 / Utilities.cs
Created March 5, 2021 00:59
cryproxy protect protocol
using System;
using System.IO;
using System.Text;
namespace Cry.Proxy
{
public enum MessageType
{
Plain = 0,
Encrypted = 1,
@nathan130200
nathan130200 / Vec3.cs
Created February 7, 2021 22:20
C# - Generic Vector3.
public class Vec3<T>
{
public T X { get; set; }
public T Y { get; set; }
public T Z { get; set; }
public Vec3()
{
this.X = default;
this.Y = default;
@nathan130200
nathan130200 / script.txt
Last active February 3, 2021 01:21
Camera shake effect for overwatch workshop (with example).
variables
{
player:
0: cameraShakeStatus
1: cameraShakeStep
}
subroutines
{
0: ApplyCameraShake
@nathan130200
nathan130200 / script.txt
Created December 16, 2020 21:34
Overwatch Workshop - Avoid Cars (New Map: Kanezaka)
settings
{
lobby
{
Map Rotation: Paused
Return To Lobby: Never
}
modes
{
@nathan130200
nathan130200 / _about.md
Last active December 3, 2020 01:42
Overwatch - Basic elapsed time clock for workshop.

Global Variables

clockData (index: 0) an array that will filled with clock data:

  • clockData[0]: hours
  • clockData[1]: minutes
  • clockData[2]: seconds

Tools

Every time will loop and update clock, incrementing values. If you need to detect clock updates you can make an copy of clockData then compare each value.

@nathan130200
nathan130200 / gamemode.c
Last active November 4, 2020 19:48
Workshop dynamic camera system (with editor)
settings
{
lobby
{
Allow Players Who Are In Queue: Yes
Data Center Preference: Brazil
Map Rotation: Paused
Return To Lobby: Never
}