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
ifconfig en0 down | |
ifconfig en0 up |
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
iptables -F | |
iptables -X | |
iptables -t nat -F | |
iptables -t nat -X | |
iptables -t mangle -F | |
iptables -t mangle -X | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT |
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
# http://www.thegeekstuff.com/2011/03/iptables-inbound-and-outbound-rules/ | |
DB_SERVER=X.X.X.X | |
HOME_SERVER=X.X.X.X | |
SRV1_SERVER=X.X.X.X | |
SRV2_SERVER=X.X.X.X | |
SRV3_SERVER=X.X.X.X | |
# Delete all existing rules | |
iptables -F |
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 'benchmark' | |
class BitArray | |
def initialize(capacity = 32 * 1024) | |
@array = Array.new(capacity, 0) | |
end | |
def set(i) | |
quotient, modulus = i.divmod(32) | |
@array[quotient] |= 1 << modulus |
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
INFO: `gem install -y` is now default and will be removed | |
INFO: use --ignore-dependencies to install only the gems you list | |
Building native extensions. This could take a while... | |
ERROR: Error installing fcgi: | |
ERROR: Failed to build gem native extension. | |
/usr/bin/ruby extconf.rb | |
checking for fcgiapp.h... no | |
checking for fastcgi/fcgiapp.h... no |
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
Mar 11 16:55:44 ??? workernode[9464]: 44.499666 |0|0|0| C 30 CAL0000: VBBM::getBlocks(): version buffer overflow. Increase VersionBufferFileSize. Overflow occured in aged blocks. Requested NumBlocks:VbOid:vbFBO:lastFBO = 181:0:15300:15499 lbid locked is 39009280#012 | |
Mar 11 17:13:06 ??? workernode[9464]: 06.994078 |0|0|0| C 30 CAL0000: VBBM::getBlocks(): version buffer overflow. Increase VersionBufferFileSize. Overflow occured in aged blocks. Requested NumBlocks:VbOid:vbFBO:lastFBO = 181:0:15200:15399 lbid locked is 39498429#012 | |
Mar 11 17:28:56 ??? workernode[9464]: 56.349377 |0|0|0| C 30 CAL0000: VBBM::getBlocks(): version buffer overflow. Increase VersionBufferFileSize. Overflow occured in aged blocks. Requested NumBlocks:VbOid:vbFBO:lastFBO = 31:0:15200:15299 lbid locked is 39498429#012 | |
Mar 11 17:28:56 ??? ExeMgr[9667]: 56.394994 |67|0|0| C 16 CAL0055: ERROR: ExeMgr has caught an exception. ExeMgr: error projecting rows for tableOID: 100; rowCnt: 0; prevTotRowCnt: 2; InetStreamSocket::write error: Broken pi |
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
Feb 27 12:03:09 stat-0-1 controllernode[7255]: 09.998353 |0|0|0| E 29 CAL0000: DBRM: error: SessionManager::getSystemState() failed (network) | |
Feb 27 12:03:10 stat-0-1 controllernode[7255]: 10.998801 |0|0|0| E 29 CAL0000: DBRM: error: SessionManager::getSystemState() failed (network) | |
Feb 27 12:03:11 stat-0-1 controllernode[7255]: 11.999313 |0|0|0| E 29 CAL0000: DBRM: error: SessionManager::getSystemState() failed (network) | |
Feb 27 12:03:12 stat-0-1 controllernode[7255]: 12.999802 |0|0|0| E 29 CAL0000: DBRM: error: SessionManager::getSystemState() failed (network) | |
Feb 27 17:31:54 ??? IDBFile[9710]: 54.773127 |0|0|0| E 35 CAL0002: Failed to open file: /usr/local/Calpont/data1/versionbuffer.cdf, exception: unable to open Buffered file | |
Feb 28 19:41:17 ??? dmlpackageproc[9773]: 17.409312 |0|0|0| E 21 CAL0001: Insert Failed: a BRM VB entry error. | |
Mar 11 16:49:16 ??? dmlpackageproc[9773]: 16.974760 |0|0|0| E 21 CAL0001: Insert Failed: IDB-2009: Unable to perform the operation because DMLProc with PID 9773 is curren |
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 'radiustar' | |
module Radiustar | |
class Packet | |
def xor_str(str1, str2) | |
bstr1 = str1.unpack('C*') | |
bstr2 = str2.unpack('C*') | |
bstr1.zip(bstr2).map {|b1, b2| b1 ^ b2}.pack('C*') |
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
package common.utils; | |
import java.lang.reflect.Method; | |
import java.math.BigDecimal; | |
import java.math.BigInteger; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class ObjectConverter { |
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
/* | |
* Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved. | |
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. | |
* | |
* | |
* | |
* | |
* | |
* | |
* |