Skip to content

Instantly share code, notes, and snippets.

View DevinNorgarb's full-sized avatar
🙃

Devin Norgarb DevinNorgarb

🙃
View GitHub Profile
@DevinNorgarb
DevinNorgarb / README.md
Created July 16, 2023 18:28 — forked from naotone/README.md
My Macbook settings

OS X For Hackers

Run osxForHackers.sh
System Preferences

  • General
    • Highlight color: Graphite
    • Recent items: 50
  • Mission Control
    • All Hot Croners: Shift + Desktop
  • Security & Privacy
  • Turn on FileVault
server {
# The listen directive serves content based on the port defined
listen 80; # For IPv4 addresses
listen [::]:80; # For IPv6 addresses
# Replace the below if you have a domain name pointed to the server
server_name your-domain.com;
access_log /var/log/nginx/reverse-access.log;
error_log /var/log/nginx/reverse-error.log;
@DevinNorgarb
DevinNorgarb / ObjectViewer.vue
Created November 21, 2022 14:14
Three.js OBJLoader in Vue3
<template>
<div>
<div ref="canvas" id="container"></div>
</div>
</template>
<script>
import * as THREE from "three";
import { OBJLoader } from "three/examples/jsm/loaders/OBJLoader";
var camera,
scene,
@DevinNorgarb
DevinNorgarb / proxmox_resize_pve-root
Created November 11, 2022 22:06
Proxmox - Resize pve-root
# Check disk space before
df -h
# Delete local-lvm storage in gui
lvremove /dev/pve/data
lvresize -l +100%FREE /dev/pve/root
resize2fs /dev/mapper/pve-root
@DevinNorgarb
DevinNorgarb / install.sh
Created October 9, 2022 10:10
install pritunl client - ubuntu 20.04
sudo tee /etc/apt/sources.list.d/pritunl.list << EOF
deb https://repo.pritunl.com/stable/apt focal main
EOF
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A
sudo apt-get update
sudo apt-get install pritunl-client-electron

#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

@DevinNorgarb
DevinNorgarb / deck-gl-mvt-zoom-sublayer-visible.markdown
Created July 13, 2022 22:50
deck.gl MVT zoom & subLayer visible
@DevinNorgarb
DevinNorgarb / pritunlMigration.md
Created March 26, 2022 19:43 — forked from makenova/pritunlMigration.md
move pritunl between servers

Migrating your pritunl install between servers

This is a small write up about how to migrate your pritunl install between servers. It's not especially detailed because I'm lazy and your migration story will most likely be different. All this can be avoided by using a remote/hosted mongo instance(compose.io, mongolab, etc.) and simply pointing your pritunl instance at that. If you want more details ask, and I'll do my best to answer and update this write-up accordingly. Also, feel free to criticize my grammar and spelling.