Skip to content

Instantly share code, notes, and snippets.

View onequbit's full-sized avatar

Alfred Aquino onequbit

  • Northern Virginia
View GitHub Profile
@onequbit
onequbit / nginx.conf
Created September 2, 2025 13:44
example nginx config
# This file routes requests for app1.example.com, app2.example.com, and app3.example.com
# to their corresponding backend services.
#
# Each application has two components:
# 1. A web server for the user interface (e.g., a Node.js/Express app serving HTML/CSS/JS).
# 2. A REST API server for data operations.
# Defines settings for HTTP traffic.
http {
@onequbit
onequbit / nginx.conf
Created September 2, 2025 13:39
Besaid Aurochs Proxy Config
events {
worker_connections 1024;
}
http {
server {
listen 80;
server_name localhost;
# Redirect all HTTP requests to HTTPS
return 301 https://$host$request_uri;
@onequbit
onequbit / new_certs.sh
Created September 2, 2025 13:38
create self-signed certificates
#!/bin/bash
# This script generates a self-signed SSL certificate if one doesn't already exist.
CERT_DIR="./certs"
CERT_KEY_FILE="$CERT_DIR/localhost.key"
CERT_PUBLIC_FILE="$CERT_DIR/localhost.crt"
CERT_DOMAIN="localhost"
CERT_STATE="Spira"
CERT_LOCALITY="Besaid"
@onequbit
onequbit / gist:d9a7cc1cd1fcdeb368a5a74ad69087aa
Last active April 5, 2021 15:30
download Windows Developer VM
wget -O windev.zip https://aka.ms/windev_VM_virtualbox
### Keybase proof
I hereby claim:
* I am onequbit on github.
* I am onequbit (https://keybase.io/onequbit) on keybase.
* I have a public key whose fingerprint is 85CC 1C53 6396 DF96 108D 44BB B612 5B8C F1F3 2493
To claim this, I am signing this object:
@onequbit
onequbit / gist:cfaaa022f97d026da408a3d35aca377b
Last active June 11, 2020 19:17
Windows Task Bar Pinned Shortcuts Location
"$env:appdata\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar"
<PropertyGroup>
<MSBuildExtensionsPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild</MSBuildExtensionsPath>
</PropertyGroup>
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search]
"AllowCortana"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search]
"AllowCortana"=dword:00000000
$expected = "module.exports = require('./discord_modules.node');"
function showmessage($message)
{
$console = $host.Name -eq "ConsoleHost"
if ($console)
{
"$message"
Write-Host "Press any key to continue..."
$ignore = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")