This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias sw=etherswitchcfg | |
sw port0 striptag | |
sw port1 striptag | |
sw port1 pvid 2 | |
sw port3 addtag | |
sw port4 addtag | |
sw vlangroup0 members 0,2,3,4 | |
Result: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<!-- Load d3.js --> | |
<script src="https://d3js.org/d3.v4.js"></script> | |
<!-- Create a div where the graph will take place --> | |
<div id="my_dataviz"></div> | |
<script> | |
function humanFileSize(bytes, si) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# $Id$ | |
# | |
# $FreeBSD$ | |
# | |
# PROVIDE: openconnect | |
# REQUIRE: NETWORKING | |
# KEYWORD: shutdown | |
# | |
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to enable openconnect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dhcpd.conf | |
# option definitions common to all supported networks... | |
option subnet-mask 255.255.255.0; | |
default-lease-time 600; | |
max-lease-time 7200; | |
subnet 192.168.20.0 netmask 255.255.255.0 { | |
range 192.168.20.2 192.168.20.40; | |
option domain-name-servers 192.168.20.1; | |
option routers 192.168.20.1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# | |
# CUPS filter for DCP1610W | |
# Copyright Brother Industries,Ltd 2006-2014 | |
# | |
# Ver1.05 | |
# This program is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU General Public License as published by the Free | |
# Software Foundation; either version 2 of the License, or (at your option) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% sysctl dev.pcm | |
dev.pcm.1.bitperfect: 0 | |
dev.pcm.1.buffersize: 65536 | |
dev.pcm.1.rec.vchanformat: s16le:2.0 | |
dev.pcm.1.rec.vchanrate: 48000 | |
dev.pcm.1.rec.vchanmode: fixed | |
dev.pcm.1.rec.vchans: 1 | |
dev.pcm.1.rec.autosrc: 2 | |
dev.pcm.1.rec.32bit: 24 | |
dev.pcm.1.%parent: hdaa0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Place these sections into the relevant nginx.conf or included files sections. | |
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
# Allow gzipping js, css, log, svg and json files. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env sh | |
FLAMEHOME=/home/mizhka/repo/fbsd/FlameGraph | |
${FLAMEHOME}/stackcollapse-perf.pl $1 | sort | grep Postgre | \ | |
sed 's#postmaster;_start;__libc_start_main;main;PostmasterMain;\[postgres\];##g' | \ | |
sed 's#postmaster;_start;__libc_start_main;main;PostmasterMain;\[unknown\];##g' | \ | |
sed 's#postmaster;\[postgres\];##g' | \ | |
sed 's#postmaster;\[unknown\];##g' | \ | |
sed 's#postgres;\[postgres\];##g' | \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/awk -f | |
function process_pgclass (line) { | |
split(line,field,";") | |
relid2name[field[8]] = field[2] | |
#printf("'%s' %s\n", field[8], field[2]) | |
return | |
} | |
BEGIN { |