Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python3
"""
share
==========
Ultra simple self-hosted file sharing. All files can be accessed/modified by all users. Don't upload anything secret!
Quickstart: run `./share.py`, then visit `http://localhost:8000/` in your web browser.
@otilrac
otilrac / README.md
Created December 7, 2020 19:39 — forked from bharadwaj-raju/README.md
simple python fileserver with authentication

fileserver.py

Credit to bones7456.

Instructions

Change values in settings.py, place it in the same directory as fileserver.py then run python2 fileserver.py

@otilrac
otilrac / lighttpd.conf
Created November 28, 2020 21:20 — forked from MinaMikhailcom/lighttpd.conf
Basic authentication configurations for Lighttpd under Ubuntu
apt install apache2-utils
htpasswd -c /etc/lighttpd/.htpasswd <Username> #Replace <Username>, you will be prompted to enter the password.
# Make sure that "mod_auth" is loaded in "server.modules".
nano /etc/lighttpd/lighttpd.conf
#Add the following to lighttpd.conf.
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile= "/etc/lighttpd/.htpasswd"
@otilrac
otilrac / servo_test.ino
Created August 28, 2020 18:32 — forked from col/servo_test.ino
A simple Arduino sketch that allows you to control a brushless motor via an ESC (or any servo really) using inputs from the Arduino IDE serial monitor.
#include <Servo.h>
Servo esc;
int escPin = 9;
int minPulseRate = 1000;
int maxPulseRate = 2000;
int throttleChangeDelay = 100;
void setup() {
BSD
FreeBSD
pfSense
OPNSense
BSDRP
Askozia
FreeNAS
NAS4Free
OpenBSD
securityrouter (commercial, https://securityrouter.org/)
@otilrac
otilrac / Public_Time_Servers.md
Created November 11, 2019 04:18 — forked from mutin-sa/Top_Public_Time_Servers.md
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@otilrac
otilrac / pfSense as an OpenVPN client.md
Created November 3, 2019 20:05 — forked from pae-id/pfSense as an OpenVPN client.md
pfSense as an OpenVPN client

#pfSense as an OpenVPN client for specific devices

##Introduction One of the most powerful features of pfSense is it’s ability to direct your data requests through different end-points using NAT rules. pfSense is amazing as an OpenVPN client because it can selectively route any device on the network through the VPN service (i.e., my tablets and TV go through US servers, while my smartphone, VoIP, computers go my local ISP).

This setup becomes extremely handy for use with applications which are not aware of OpenVPN protocol, eg. download managers, torrent clients, etc. Expecting privacy you should be positive that traffic won't go through your ISP's gateway in case of failure on side of VPN provider. And obviously OpenVPN client should automatically reconnect as soon as service goes live again.

Note: This How-To is meant for pfSense 2.1.x. For those using 2.2 Beta, there is a bug that prevents this from working. Read about here in the pfSense forum thread, “[cannot NAT trough OPT1 interface on multiw