Skip to content

Instantly share code, notes, and snippets.

View The-Noah's full-sized avatar

Noah Dunbar The-Noah

View GitHub Profile
$mycolor: #F00;
body{
background-color: $mycolor;
}
@The-Noah
The-Noah / .static-site-generator.config.json
Created May 6, 2020 08:30
static-site-generator server example
{
"srcDir": "."
}
using System;
using System.Net;
using System.Linq;
class Subscribers{
public static void Main(string[] args){
if(args.Length < 1){
Console.WriteLine("Please provide a channel ID");
return;
}
@The-Noah
The-Noah / nodejs-ubuntu-bind-port-80.md
Last active February 14, 2020 21:39 — forked from vibegui/nodejs-ubuntu-bind-port-80.md
Allow Node.js to bind to privileged ports without root access on Ubuntu

Allow Node to bind to port 80 without sudo

TL;DR

Only do this if you understand the consequences: all node programs will be able to bind on ports < 1024

sudo setcap 'cap_net_bind_service=+ep' `which node`

Explanation

@The-Noah
The-Noah / bzlistfilter.php
Last active July 29, 2022 23:22
BZFlag Server List Filter
<?php
/*MIT License
Copyright (c) 2019-2020 The Noah
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@The-Noah
The-Noah / MoveCamera.cs
Created August 3, 2019 21:47 — forked from JISyed/MoveCamera.cs
Camera movement script in Unity3D. Supports rotating, panning, and zooming. Attach to the main camera. Tutorial explaining code: http://jibransyed.wordpress.com/2013/02/22/rotating-panning-and-zooming-a-camera-in-unity/
// Credit to damien_oconnell from http://forum.unity3d.com/threads/39513-Click-drag-camera-movement
// for using the mouse displacement for calculating the amount of camera movement and panning code.
using UnityEngine;
using System.Collections;
public class MoveCamera : MonoBehaviour
{
//
// VARIABLES
FROM node:8.15.0-alpine
WORKDIR /usr/src/app
COPY package.json .
RUN npm install --quiet
COPY . .
CMD ["node", "."]