Skip to content

Instantly share code, notes, and snippets.

View Rahul-RB's full-sized avatar
😄
Woo

Rahul R Bharadwaj Rahul-RB

😄
Woo
View GitHub Profile
@tinogomes
tinogomes / DNS_TO_LOCALHOST.markdown
Last active December 6, 2025 03:43
Public DNS Pointing to localhost (127.0.0.1)

Available Public Wildcard DNS Domains pointing to localhost (127.0.0.1)

The best way to safely and securely use local domains pointing to 127.0.0.1 is to edit your local settings (/etc/hosts) and add your own settings. Keep in mind if you want to use subdomains, you need to enter all variations.

Example:

# Adding bottom of your current file /etc/hosts
################# MY LOCAL DOMAINS
127.0.0.1 local.com admin.local.com
127.0.0.1 domain1.com
@CMCDragonkai
CMCDragonkai / http_streaming.md
Last active September 23, 2025 21:29
HTTP Streaming (or Chunked vs Store & Forward)

HTTP Streaming (or Chunked vs Store & Forward)

The standard way of understanding the HTTP protocol is via the request reply pattern. Each HTTP transaction consists of a finitely bounded HTTP request and a finitely bounded HTTP response.

However it's also possible for both parts of an HTTP 1.1 transaction to stream their possibly infinitely bounded data. The advantages is that the sender can send data that is beyond the sender's memory limit, and the receiver can act on

@tsnow
tsnow / perf_tuning.rb
Created December 20, 2012 20:41
high perf tuning freebsd webservers - @jssjr
if node['platform'] == "freebsd"
# load the http accept filter into the kernel
freebsd_kernel_module "accf_http"
# increase max files
freebsd_sysctl "kern.maxfiles" do
value 131072
end
# increase the max pending socket limit
@jiminald
jiminald / gist:1756076
Created February 7, 2012 00:10
Tree command in Linux
#!/bin/sh
#######################################################
# UNIX TREE #
# Version: 2.3 #
# File: ~/apps/tree/tree.sh #
# #
# Displays Structure of Directory Hierarchy #
# ------------------------------------------------- #
# This tiny script uses "ls", "grep", and "sed" #
# in a single command to show the nesting of #