Skip to content

Instantly share code, notes, and snippets.

View kerberjg's full-sized avatar

Jamie Kerber kerberjg

View GitHub Profile
@kerberjg
kerberjg / scrollbean.dart
Created October 8, 2024 23:39
Animated scrollwheel with haptic feedback~ (Flutter)
// Mouse scrolwheel widget
import 'dart:math';
import 'package:flutter/cupertino.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
const double kScrollInertia = 0.9;
@kerberjg
kerberjg / stuff.com
Created June 25, 2016 22:28
Nginx config example
server {
listen 80;
server_name stuff.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
@kerberjg
kerberjg / webconfig.sh
Last active December 21, 2022 01:36
Basic Ubuntu VPS Webserver configuration script
sudo su
#Install various tools
apt-get update
apt-get upgrade -y
apt-get install -y imagemagick build-essential htop git fail2ban sendmail redis-server mongodb
#Configure iptables
iptables -F
iptables -A INPUT -p tcp --tcp-flags ALL NONE -j DROP