- Написать в г+
- Поставить галочку
- Поставить еще галочку
- incomplete
- Profit!!
This file contains 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 MyConfig; | |
use strict; | |
use base 'Exporter'; | |
BEGIN { | |
our @EXPORT = qw($DB_USER ); | |
} | |
our @EXPORT; |
This file contains 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
echo "- - -" > /sys/class/scsi_host/host*/scan |
This file contains 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
sudo -u nagios /usr/local/bin/screen -d -m /usr/local/bin/centerim -b /usr/local/etc/nagios/.centerim |
This file contains 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 em1 | |
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 | |
options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO> | |
ether 00:1e:67:48:94:44 | |
media: Ethernet autoselect (1000baseT <full-duplex>) | |
status: active |
This file contains 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
#ip ro list table isp2 | |
default via 10.64.64.64 dev ppp0 src 10.68.56.108 | |
#ip ru | |
0: from all lookup local | |
32765: from all fwmark 0x2 lookup isp2 | |
32766: from all lookup main | |
32767: from all lookup default | |
#iptables -L -t mangle |
This file contains 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
echo 0 > /sys/bus/usb/devices/2-*/authorized | |
echo 1 > /sys/bus/usb/devices/2-*/authorized |
This file contains 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
use utf8; | |
use Digest::MD5; | |
sub auth_req_verify { | |
my ( $packet, $secret, $prauth ) = @_; | |
return 1 | |
if Digest::MD5::md5( | |
substr( $packet, 0, 4 ) . $prauth . substr( $packet, 20 ) . $secret ) | |
eq substr( $packet, 4, 16 ); |
This file contains 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
apt-get -o Acquire::Check-Valid-Until=false update | |
deb http://snapshot.debian.org/archive/debian/20110705T091435Z/ wheezy main |
This file contains 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
echo printf "[%lu] DISABLE_HOST_CHECK;Leningradskiy_28.1_516_void\n" `date +%s` >> /var/spool/nagios/rw/nagios.cmd |
OlderNewer