Skip to content

Instantly share code, notes, and snippets.

View yovanoc's full-sized avatar
Focusing

Christopher Yovanovitch yovanoc

Focusing
View GitHub Profile
@yovanoc
yovanoc / proxy.ts
Created December 1, 2019 21:30
NodeJS Proxy Requests
import { createServer } from "http";
createServer((req, res) => {
if ((req.method === "GET" || req.method === "POST") && req.url) {
console.log(`Proxying: ${req.url}`);
req
.pipe(
got.stream(req.url, {
method: req.method
})
@yovanoc
yovanoc / maps_manager.rs
Last active February 24, 2019 11:26
MapsManager
use crate::DT_CONSTANTS;
use std::collections::HashMap;
#[derive(Serialize, Deserialize, Debug, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct Map {
pub id: usize,
pub top_neighbour_id: usize,
pub bottom_neighbour_id: usize,
pub left_neighbour_id: usize,
@yovanoc
yovanoc / Contributing.md
Created October 5, 2018 07:18 — forked from MarcDiethelm/Contributing.md
How to contribute to a project on Github

This text now lives at https://github.com/MarcDiethelm/contributing/blob/master/README.md. I turned it into a Github repo so you can, you know, contribute to it by making pull requests.


Contributing

If you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and and their ecosystems and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.

@yovanoc
yovanoc / messages.json
Created April 29, 2018 18:29
Messages
[
"1: ProtocolRequired",
"2: NetworkDataContainerMessage",
"3: HelloConnectMessage",
"4: IdentificationMessage",
"10: LoginQueueStatusMessage",
"20: IdentificationFailedMessage",
"21: IdentificationFailedForBadVersionMessage",
"22: IdentificationSuccessMessage",
"30: ServersListMessage",
@yovanoc
yovanoc / Dev-OSX.md
Last active June 14, 2019 12:42
Development Environment for OSX.

Mac OS X Development Environment

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software