Skip to content

Instantly share code, notes, and snippets.

View UlasSAYGINIM's full-sized avatar

Ulaş SAYGIN UlasSAYGINIM

View GitHub Profile
#!/bin/sh
pkg install -y poudriere ccache git-lite
mkdir /var/cache/ccache
# edit poudriere.conf
echo "cache_dir = /var/cache/ccache" >>/usr/local/etc/ccache.conf
echo "CCACHE_DIR=/var/cache/ccache" >> /usr/local/etc/poudriere.conf
echo "ZPOOL=zroot" >> /usr/local/etc/poudriere.conf
# add your poudriere.conf options below
@cdcme
cdcme / sysctl.conf
Last active March 1, 2022 08:02
Some sysctl settings for performance and hardening on FreeBSD
# $FreeBSD: releng/11.1/etc/sysctl.conf 112200 2003-03-13 18:43:50Z mux $
#
# see https://calomel.org/freebsd_network_tuning.html
# https://www.c0ffee.net/blog/freebsd-server-guide
# https://en.wikipedia.org/wiki/TCP_tuning
# https://en.wikipedia.org/wiki/TCP_window_scale_option
# https://en.wikipedia.org/wiki/Bandwidth-delay_product
# https://www.freebsd.org/doc/handbook/configtuning-sysctl.html
# https://www.freebsd.org/cgi/man.cgi?query=sysctl&sektion=8&manpath=freebsd-release-ports
#
@ar-android
ar-android / frebsd_laravel_install.md
Last active November 1, 2024 22:30
Setup FreeBSD Server for Laravel

Update Package

sudo freebsd-update fetch install

Install NGINX

sudo pkg install nginx
@shijij
shijij / gist:54c9b21f26c08a15a70c182f03cb15b4
Created November 14, 2017 12:31
Nginx ssl reverse proxy with SNI
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name yourdomain
ssl_certificate /etc/ssl/localcerts/yourdomain.crt;
ssl_certificate_key /etc/ssl/localcerts/yourdomain.key;
ssl_ecdh_curve prime256v1;
ssl_session_cache builtin:1000 shared:SSL:10m;
@qis
qis / freebsd.md
Last active August 25, 2023 11:46
Installation and setup instructions for FreeBSD

FreeBSD

Installation template for FreeBSD RELEASE, STABLE and CURRENT.

Distribution Select

[ ] doc
[*] src (for building ports)
@lattner
lattner / TaskConcurrencyManifesto.md
Last active December 10, 2025 18:44
Swift Concurrency Manifesto
@MarcelFox
MarcelFox / 01_postfix_installer.md
Last active January 2, 2025 15:53 — forked from solusipse/01_postfix_installer.md
Postfix + Dovecot + Postgresql + Postfixadmin + Roundcube + Opendkim

Postfix Installer

Following script may be used for configuring complete and secure email server on fresh install of Debian 9. It will probably work on other distributions using apt-get. After minor changes you'll be able to use it on other Linux distros.

What it does?

02_postfix.sh:

  • Install Postfix and configure it with TLS support.
  • Install Dovecot and configure it's transport on Postfix.
  • Download, extract and correct permissions for Postfixadmin.
  • Download, extract and correct permissions for Roundcube.
@niamtokik
niamtokik / Makefile
Last active March 1, 2022 12:56
Meetup BSD Rennes - Jail Makefile
######################################################################
# BSD Meetup Rennes - FreeBSD Jails Workshop
#
# TEA-WARE LICENSE:
# Mathieu Kerjouan <[email protected]> wrote this file. As long as
# you retain this notice you can do whatever you want with this
# stuff. If we meet some day, and you think this stuff is worth it,
# you can buy me a tea in return. Mathieu Kerjouan
#
######################################################################
@networm
networm / TestUnityConnectionLimit.cs
Last active February 8, 2020 06:53
C# API WebRequest default connection limit is 2. Use the request.ServicePoint.ConnectionLimit to unlock this limitation
using UnityEngine;
using System.Net;
using System.Threading;
public class TestConnectionLimit : MonoBehaviour
{
void Download(object arg)
{
var sw = new System.Diagnostics.Stopwatch();
sw.Start();