Glossary:
- md: multiple devices
| command | description |
|---|---|
cat /proc/mdstat |
show status of all raids |
mdadm --detail /dev/md0 |
detailed status of raid md0 |
| # Job metadata | |
| job.name=PullFromWikipediaToKafka | |
| job.group=Wikipedia | |
| job.description=Pull from Wikipedia and write to Kafka | |
| # Schedule | |
| job.schedule=0 0/2 * * * ? | |
| # Source configuration | |
| extract.namespace=gobblin.example.wikipedia |
| #!/bin/sh | |
| DEBIAN_FRONTEND="noninteractive" apt-get -q update && apt-get install -y --force-yes --no-install-recommends --auto-remove "$@" && apt-get -q clean && rm -rf /var/lib/apt/lists/* |
| # Set pid of nginx master process here | |
| pid=8192 | |
| # generate gdb commands from the process's memory mappings using awk | |
| cat /proc/$pid/maps | awk '$6 !~ "^/" {split ($1,addrs,"-"); print "dump memory mem_" addrs[1] " 0x" addrs[1] " 0x" addrs[2] ;}END{print "quit"}' > gdb-commands | |
| # use gdb with the -x option to dump these memory regions to mem_* files | |
| gdb -p $pid -x gdb-commands | |
| # look for some (any) nginx.conf text |
| package main | |
| import ( | |
| "errors" | |
| "log" | |
| "net/http" | |
| "net/url" | |
| ) | |
| type checkURL url.URL |
| yum -y install git cmake wget bzip2 clang | |
| yum -y install unixODBC-devel* openssl-devel* readline-devel* glib2-devel* libicu* | |
| yum -y install mysql++-devel* libodb-mysql-devel* libssh-devel* libssh2-devel.* libffi* | |
| yum -y install openssl-static libtool-ltdl-devel readline-static | |
| export THREADS=$(grep -c ^processor /proc/cpuinfo) | |
| export DISABLE_MONGODB=1 | |
| export CC=gcc-5 | |
| export CXX=g++-5 | |
| export LD_LIBRARY_PATH=/usr/lib64:/usr/local/lib64:/usr/local:/usr/local/lib/mysql:/usr/lib:$LD_LIBRARY_PATH |