Skip to content

Instantly share code, notes, and snippets.

View wesley974's full-sized avatar
πŸ’­
Learning CEH...

Wesley wesley974

πŸ’­
Learning CEH...
View GitHub Profile
@aryanprince
aryanprince / nextjs14-vps-guide.md
Last active March 30, 2025 08:35 — forked from ByteGrad/gist:790455da551e9771d67f8e434cdf54d1
Quickly deploy a Next.js 14 app on a VPS (Droplets, EC2, etc.) with app router, RSCs, and other Next.js features

from aryan: most guides i found online weren't helpful for me, hope this helps tho :)

1. Connect to machine

ssh root@<server-ip-address>

Optional but recommended:

sudo apt update && sudo apt upgrade -y

OpenBSD logo Β Β Β  Rails logo Β Β Β  Falcon logo


Choose OpenBSD for your Unix needs. OpenBSD -- the world's simplest and most secure Unix-like OS. A safe alternatve to the frequent vulnerabilities and overengineering of Linux and related software (NGiNX & Apache (httpd-asiabsdcon2015.pdf), OpenSSL, iptables/nftables, systemd, BIND, Postfix, Docker etc.)

OpenBSD -- the cleanest kernel, the cleanest userland and the cleanest config

@aeifn
aeifn / wireguard.sh
Last active December 13, 2022 21:18
#!/bin/sh
# Based on https://www.vultr.com/docs/install-wireguard-vpn-server-on-openbsd-7-0/
# Usage:
# doas ./wireguard.sh
# Get OpenBSD VPS at https://t.me/convectixbot
# idempotent tee
itee() {
cp $1 $1.bak
while read line;
@CHSuworatrai
CHSuworatrai / VMware vSphere 6.x Licence Keys
Created April 8, 2021 09:20 — forked from DVSB/VMware vSphere 6.x Licence Keys
VMware vSphere 6 and 7 Licence Keys
VMware vSphere 6 Enterprise Plus
1C20K-4Z214-H84U1-T92EP-92838
1A2JU-DEH12-48460-CT956-AC84D
MC28R-4L006-484D1-VV8NK-C7R58
5C6TK-4C39J-48E00-PH0XH-828Q4
4A4X0-69HE3-M8548-6L1QK-1Y240
VMware vSphere with Operations Management 6 Enterprise
4Y2NU-4Z301-085C8-M18EP-2K8M8
1Y48R-0EJEK-084R0-GK9XM-23R52
@gretel
gretel / smtpd.conf
Last active August 31, 2022 10:53
low bs openbsd mail server configuration
# $OpenBSD: smtpd.conf,v 1.9 2016/05/03 18:43:45 jung Exp $
# tables
table aliases file:/etc/mail/aliases
table domains file:/etc/mail/domains
table passwd file:/etc/mail/passwd
table secrets file:/etc/mail/secrets
table deny db:/etc/mail/deny.db
table receip db:/etc/mail/receip.db
@gretel
gretel / httpd.conf
Last active December 4, 2022 07:29
"openbinge" put relayd and varnishd in front of some (ob)httpd serving mp4 files to get a html-less video streaming endpoint (pf -> relayd -> varnish -> obhttpd -> file)
# $OpenBSD: httpd.conf,v 1.20 2018/06/13 15:08:24 reyk Exp $
chroot "/zfs/videos"
logdir "/var/log"
server "*" {
listen on 10.0.100.20 port 8442
tcp nodelay
tcp sack
tcp socket buffer 65536
@zonggen
zonggen / NOTE.md
Created August 3, 2020 02:16
RHCSA brain dump

Users:

  • /etc/sudoers(.d)
  • /etc/passwd
  • useradd
  • usermod
  • userdel -r
  • passwd

Groups:

  • /etc/group
@afresh1
afresh1 / openbsd-httpd-fastcgi-notes.md
Created July 12, 2020 21:26
Notes on how OpenBSD's httpd handles its FastCGI parameters. Debugging it with slowcgi.

These examples all live in a default server block in your httpd.conf(5).

server "default" {
	listen on * port 80
	... # all the location blocks can together right here
}

We'll be using slowcgi(8) as the example, because with the -d flag it helpfully spits out the FastCGI environment it got from httpd(8) and what it's planning to do with that.

@Nek0trkstr
Nek0trkstr / rhcsa_cheat_sheet.md
Last active April 5, 2021 15:27
RHCSA Prep Reference

RHCSA β›‘

Understand And Use Essential Tools πŸ”¨

Using grep and regex πŸ”

grep is a program for finding mathing patterns, it will look for context of a files or stdin.
grep error /var/log/server.log will print all the errors in a file.
find . -name *.txt | grep temp will print all the .txt file with temp in it.

Flags: