Reference http://en.wikipedia.org/wiki/Network_Time_Protocol, http://support.ntp.org/bin/view/Support/NTPRelatedDefinitions and http://tools.ietf.org/html/rfc5905 for more informations.
- :doc:`index` daemon process
| <!DOCTYPE html> | |
| <meta charset="UTF-8"> | |
| <style> | |
| .node circle { | |
| fill: #fff; | |
| stroke: steelblue; | |
| stroke-width: 3px; | |
| } |
| #Generate master.key and secret | |
| MAGIC="::::MAGIC::::" | |
| mkdir -p /var/jenkins_home/secrets | |
| openssl rand -hex 128 > /var/jenkins_home/secrets/master.key | |
| openssl dgst -sha256 -binary /var/jenkins_home/secrets/master.key > /tmp/master.hashed | |
| HEX_MASTER_KEY=`head -c 16 /tmp/master.hashed | xxd -l 16 -p` | |
| openssl rand 259 > /tmp/base | |
| echo $MAGIC >> /tmp/base | |
| openssl enc -aes-128-ecb -in /tmp/base -K $HEX_MASTER_KEY -out /var/jenkins_home/secrets/hudson.util.Secret |
| #!/bin/bash | |
| ## | |
| ## Simple logging mechanism for Bash | |
| ## | |
| ## Author: Michael Wayne Goodman <[email protected]> | |
| ## Thanks: Jul for the idea to add a datestring. See: | |
| ## http://www.goodmami.org/2011/07/simple-logging-in-bash-scripts/#comment-5854 | |
| ## Thanks: @gffhcks for noting that inf() and debug() should be swapped, | |
| ## and that critical() used $2 instead of $1 |
| #!/bin/bash | |
| set -ue | |
| bash_trace () { | |
| typeset -i i=0 | |
| for func in "${FUNCNAME[@]}" | |
| do | |
| printf '%15s() %s:%d\n' \ | |
| "$func" "${BASH_SOURCE[$i]}" "${BASH_LINENO[$i]}" |
| #!/bin/bash | |
| echo "*****************************************" | |
| echo " Based on information from Google" | |
| echo " http://dev.chromium.org/spdy/spdy-best-practices" | |
| echo "*****************************************" | |
| sudo su | |
| yum –y update | |
| echo "*****************************************" | |
| echo " Changing initcwnd and initrwnd" | |
| echo " Step 1: check route settings." |
Reference http://en.wikipedia.org/wiki/Network_Time_Protocol, http://support.ntp.org/bin/view/Support/NTPRelatedDefinitions and http://tools.ietf.org/html/rfc5905 for more informations.
| =begin | |
| Requisitos Minimos para rodar este script: | |
| #jruby 1.1 ou superior (nao testei com superior :D) | |
| apt-get install jruby | |
| #baixar o oracle jdbc (para o 10g, ou procure a versão que deseje) de: | |
| http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html | |
| #copiar o ojdbc14.jar para (usar sudo): |
| #!/bin/bash | |
| # Load balance multiple internet connections. Requires iproute2, awk and grep. | |
| # (C) 2016 Tobias Girstmair, isticktoit.net, GPLv2 | |
| # Also useful: speedometer -l -r eth1 -t eth1 -m $(( 1024 * 1024 * 3 / 2 )) | |
| # Not much user error checking is done - only pass working network connections | |
| # script needs root to work and at least two connections to be useful | |
| [ $EUID -eq 0 -a $# -ge 2 ] || { | |
| echo "Usage (as root): $0 iface1 iface2 ..." >&2 |
I hereby claim:
To claim this, I am signing this object:
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition: