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
# Generated by Percona Configuration Wizard (http://tools.percona.com/) version REL5-20120208 | |
# Configuration name server-50 generated for [email protected] at 2015-12-24 13:31:29 | |
[mysql] | |
# CLIENT # | |
port = 3306 | |
socket = /var/lib/mysql/mysql.sock | |
[mysqld] |
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/bash | |
real_lag=`mysql --defaults-file=/etc/mysql/debian.cnf -B -N -e "SELECT now()-timestamp AS replication_lag from tel_p.heartbeat;"` | |
seconds=`mysql --defaults-file=/etc/mysql/debian.cnf -e "SHOW SLAVE STATUS\G" | grep "Seconds_Behind_Master" | awk -F ": " {'print $2'}` | |
if [ "$real_lag" -gt "100" ] | |
then | |
logger "lag more than 100" | |
if [ "$seconds" -eq "0" ] | |
then |
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
exten => _XXXXXX.,n,Set(SessionId=${UNIQUEID}) | |
exten => _XXXXXX.,n,Set(CDR(my_uuid)=${SessionId}) | |
exten => _XXXXXX.,n,SIPaddheader(X-CallId: ${SessionId}) |
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
exten => _XXXXXX.,n,Set(SessionId=${UNIQUEID}) | |
exten => _XXXXXX.,n,Set(CDR(my_uuid)=${SessionId}) | |
exten => _XXXXXX.,n,SIPaddheader(X-CallId: ${SessionId}) |
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
exten => _XXXXXX.,n,Set(SessionId=${UNIQUEID}) | |
exten => _XXXXXX.,n,Set(CDR(my_uuid)=${SessionId}) | |
exten => _XXXXXX.,n,SIPaddheader(X-CallId: ${SessionId}) |
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
[WARNING] Checksum validation failed, expected <html> but is 81ffbd1712afe8cdf138b570c0fc9934742c33c1 for http://github.com/MinecraftPortCentral/mcpc-mvn-repo/raw/master/releases/net/minecraftforge/minecraft-forge/9.10.0.836-R1-MCPC/minecraft-forge-9.10.0.836-R1-MCPC.pom | |
[WARNING] Checksum validation failed, expected <html> but is 81ffbd1712afe8cdf138b570c0fc9934742c33c1 for http://github.com/MinecraftPortCentral/mcpc-mvn-repo/raw/master/releases/net/minecraftforge/minecraft-forge/9.10.0.836-R1-MCPC/minecraft-forge-9.10.0.836-R1-MCPC.pom | |
[WARNING] Checksum validation failed, expected <html> but is 81ffbd1712afe8cdf138b570c0fc9934742c33c1 for http://github.com/MinecraftPortCentral/mcpc-mvn-repo/raw/master/releases/org/bouncycastle/bcprov-jdk15on/1.48/bcprov-jdk15on-1.48.pom | |
[WARNING] Checksum validation failed, expected <html> but is 81ffbd1712afe8cdf138b570c0fc9934742c33c1 for http://github.com/MinecraftPortCentral/mcpc-mvn-repo/raw/master/releases/org/bouncycastle/bcprov-jdk15on/1.48/bcprov-jdk15on-1.48.pom |
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
// Include required modules. | |
var net = require('net'); | |
var sys = require('sys'); | |
// Create a TCP server and listen on FastAGI port. | |
var server = net.createServer(); | |
server.listen(4573, '127.0.0.7'); | |
// Add a listener for new connections. | |
server.addListener('connection', fastAGI); |
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
require 'rubygems' | |
require 'barracuda' | |
require 'RMagick' | |
include Magick | |
include Barracuda | |
prog = Program.new <<-'eof' |
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
declare -x LANG="ru_RU.UTF-8" | |
SSH_AGENT_PID=`ps x| grep ssh-agent | grep -v grep | awk '{print $1}'`; | |
if [ -n "$SSH_AGENT_PID" ]; then | |
export SSH_AGENT_PID; | |
SSH_AUTH_SOCK=/tmp/`ls --co=never /tmp | grep ssh`; | |
SSH_AUTH_SOCK=$SSH_AUTH_SOCK/`ls --co=never $SSH_AUTH_SOCK`; | |
export SSH_AUTH_SOCK; | |
else | |
eval `ssh-agent`; |
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
class VeryBase | |
def self.attr_accessor(*vars) | |
@attributes ||= [] | |
@attributes.concat vars | |
super(*vars) | |
end | |
def self.attributes | |
@attributes || [] | |
end |