Skip to content

Instantly share code, notes, and snippets.

View yaazkal's full-sized avatar
🏠
Working from home

Juan David Hurtado G yaazkal

🏠
Working from home
  • Orbiware
  • Medellín, Colombia
  • X @yaazkal
View GitHub Profile
@mateuszkwiatkowski
mateuszkwiatkowski / vscode-remote-ssh-freebsd.md
Last active April 6, 2024 02:27
Configure FreeBSD to work with VScode's remote ssh extension

This procedure was tested on FreeBSD-CURRENT build from d8819d88af52.

  1. Enable linuxulator and install linux userland:
    # sysrc linux_enable="YES"
    # service linux start
    # pkg install linux_base-c7
    
@Mostly-BSD
Mostly-BSD / 001-README.md
Last active May 3, 2021 01:36
Colorizing outputs of some FreeBSD CLI programs

Colorized outputs for some FreeBSD CLI programs

More schreenshots uploaded here.

Screen shot

Commands Colorized so far...

@hiway
hiway / README.md
Last active May 21, 2023 09:22
Creating a single process FreeBSD (12.1) Jail

How to jail a single process web server on FreeBSD 12.1

You may have found many great resources on how to set up jails on latest FreeBSD, however there is scant information on how to go about creating a barebones jail with nothing but the one process that you want to isolate.

I was curious if I could contain a statically compiled web server that I wrote while learning Rust all by itself in a jail instead of having a full userland.

@mizhka
mizhka / sysctl-tunables
Created June 4, 2019 09:40
FreeBSD 13-GENERIC-CURRENT tunables
kern.maxproc: Maximum number of processes
kern.ngroups: Maximum number of supplemental groups a user can belong to
kern.ipc.shm_allow_removed: Enable/Disable attachment to attached segments marked for removal
kern.ipc.shm_use_phys: Enable/Disable locking of shared memory pages in core
kern.ipc.shmall: Maximum number of pages available for shared memory
kern.ipc.shmseg: Number of segments per process
kern.ipc.shmmni: Number of shared memory identifiers
kern.ipc.shmmin: Minimum shared memory segment size
kern.ipc.shmmax: Maximum shared memory segment size
kern.ipc.semaem: Adjust on exit max value
@saihtaM
saihtaM / Axel.sh
Last active December 11, 2021 00:51
FreeBSD Beep
/usr/local/bin/beep -p 659 46
/usr/local/bin/beep -p 784 34
/usr/local/bin/beep -p 659 23
/usr/local/bin/beep -p 659 11
/usr/local/bin/beep -p 880 23
/usr/local/bin/beep -p 659 23
/usr/local/bin/beep -p 587 23
/usr/local/bin/beep -p 659 46
/usr/local/bin/beep -p 988 34
/usr/local/bin/beep -p 659 23
@bradleyboy
bradleyboy / nginx.conf
Last active March 22, 2022 19:46
nginx rewrite setup for Koken
# Enable gzip. Highly recommending for best peformance
gzip on;
gzip_comp_level 6;
gzip_types text/html text/css text/javascript application/json application/javascript application/x-javascript;
# By default, do not set expire headers
expires 0;
# Set expires header for console CSS and JS.
# These files are timestamped with each new release, so it is safe to cache them agressively.