build/update database:
cd $PROJ_DIR
find . -path .git -path .svn -prune -o -name "*.[ch]" > cscope.files
cscope -bqk
browse code:
cscope -d
500px.com | |
59saniye.com | |
8tracks.com | |
about.me | |
alarabiya.net | |
anonymox.net | |
archive.is | |
ashleymadison.com | |
badoo.com | |
badoocdn.com |
#!/bin/sh | |
COMPILERS="clang gcc gcc45 gcc46 gcc47 gcc48 gcc49 gcc5 gcc6" | |
check_compilers() | |
{ | |
echo "Looking for available C compilers..." | |
for C in ${COMPILERS} | |
do | |
P=`which ${C} 2>&1` |
#!/bin/sh | |
# | |
# Split default route into 8 smaller routes to avoid | |
# lock contention during route lookup | |
# | |
# If a default router is not specified, it will be | |
# taken from rc.conf. | |
# | |
ROUTECMD="/sbin/route -q " |
# | |
# The output from my check-dnskey.sh script that requests DNSKEY record | |
# from top 100 domain names and prints the key if there was any. | |
# last updated on 2017-oct-20 | |
# | |
google.com NO | |
youtube.com NO | |
facebook.com NO | |
baidu.com NO | |
wikipedia.org NO |
#!/bin/sh | |
# | |
# Copyright (c) 2015 Babak Farrokhi. All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions | |
# are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. |
build/update database:
cd $PROJ_DIR
find . -path .git -path .svn -prune -o -name "*.[ch]" > cscope.files
cscope -bqk
browse code:
cscope -d
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" |
grep -A1 Normal /proc/zoneinfo ; echo "--"; sysctl vm.min_free_kbytes ; echo "--"; numactl -H | grep free