In order to avoid FreeBSD ntpd listen on wildcard interface,
add following lines to /etc/ntp.conf
:
interface ignore wildcard
interface listen 10.0.0.1
In order to avoid FreeBSD ntpd listen on wildcard interface,
add following lines to /etc/ntp.conf
:
interface ignore wildcard
interface listen 10.0.0.1
from functools import wraps | |
import pickle | |
from random import randint, choice | |
import string | |
import pathlib | |
import time | |
import sys | |
big_list = [] # our huge list of tuples | |
cache_file = "test-data-cache.pickle" |
#!/bin/sh | |
# best-mirror.sh | |
# | |
# Domesticaed for FreeBSD by Babak Farrokhi ([email protected]) | |
# | |
# This script finds the fastest freebsd-update mirror based on | |
# data transfer rates from cURL. | |
# | |
# Note: I used a static list of mirrors, which is not the best way to |
#!/usr/local/bin/python | |
""" | |
Autotuning program. | |
Garrett Cooper, December 2011 | |
Example: | |
autotune.py --conf loader \ | |
--kernel-reserved=2147483648 \ | |
--userland-reserved=4294967296 |
grep -A1 Normal /proc/zoneinfo ; echo "--"; sysctl vm.min_free_kbytes ; echo "--"; numactl -H | grep free
Text file with hard line-breaks:
# vim:ts=4:sw=4:tw=79:wm=2
Golang source files with proper tab and spacing:
// vim:noet:noai:ts=4:sw=4
#!/bin/bash | |
# | |
# hugepages_settings.sh | |
# | |
# Linux bash script to compute values for the | |
# recommended HugePages/HugeTLB configuration | |
# | |
# Note: This script does calculation for all shared memory | |
# segments available when the script is run, no matter it | |
# is an Oracle RDBMS shared memory segment or not. |
#!/bin/sh | |
set -u | |
NUMA_BEFORE=`numactl -H | grep free:` | |
SLAB_BEFORE=`grep Normal /proc/buddyinfo` | |
printf "Dropping page cache..." | |
sysctl -qw vm.drop_caches=1 | |
echo |
AGENT_SCRIPT=${HOME}/load-agent.sh | |
while true; do | |
[ -r ${AGENT_SCRIPT} ] && source ${AGENT_SCRIPT} | |
if [ -n "$SSH_AGENT_PID" ]; then | |
# ensure the variable actually reflects a running ssh-agent process | |
ps -p $SSH_AGENT_PID | grep -q ssh-agent$ && break | |
fi | |
# SSH_AGENT_PID is either not set or has stale PID | |
echo "Running ssh-agent" |
#!/bin/bash | |
# Based on script by William Lam - http://engineering.ucsb.edu/~duonglt/vmware/ | |
# Bring CPUs online | |
for CPU_DIR in /sys/devices/system/cpu/cpu[0-9]* | |
do | |
CPU=${CPU_DIR##*/} | |
echo "Found cpu: '${CPU_DIR}' ..." | |
CPU_STATE_FILE="${CPU_DIR}/online" | |
if [ -f "${CPU_STATE_FILE}" ]; then |