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
git filter-branch --env-filter 'GIT_COMMITTER_NAME="autotrace";GIT_COMMITTER_EMAIL="autotrace@host";' HEAD |
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
grep -o -P "(?<=elapsed time: )[0-9]*(?= microsec)" ~/messages |
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
umount /media | |
pvcreate /dev/sdi | |
vgextend video /dev/sdi | |
lvextend -l +100%FREE /dev/mapper/video-video | |
systemctl start media.mount | |
xfs_growfs /media |
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
$ mysqlcheck -uopensips -popensipsrw --repair --extended opensips |
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/sh | |
NAME=$1 | |
virt-install --connect=qemu:///system \ | |
--network=bridge:virbr0 \ | |
--location=http://mirror.yandex.ru/centos/5/os/x86_64/ \ | |
--extra-args="ks=ftp://fileserv.local/pub/kickstarters/${NAME}.ks ip=dhcp console=tty0 console=ttyS0,115200" \ | |
--name=${NAME} \ | |
--disk /var/lib/libvirt/images/${NAME}.img,size=20 \ |
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
semodule -DB | |
.... | |
module allowsnmpdtmp 1.0; | |
require { | |
type system_cronjob_tmp_t; | |
type snmpd_t; | |
class file { read open ioctl getattr }; | |
} |
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
module radius 1.0; | |
require { | |
type radiusd_t; | |
class process { execstack execmem }; | |
} | |
#============= radiusd_t ============== | |
allow radiusd_t self:process { execstack execmem }; |
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
dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames | |
dbus-send --system --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames | |
dbus-send --system --dest=org.freedesktop.Avahi --type=method_call --print-reply / org.freedesktop.Avahi.Server.GetVersionString |
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
use opensips; | |
select concat(user_agent,",",username) from location order by user_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
#!/bin/bash | |
# Accept 5353 traffic | |
iptables -I INPUT -p udp --sport 5353 -j ACCEPT | |
# Fix erroneous port translation | |
iptables -t nat -I POSTROUTING 1 -m udp -p udp --sport 5353 --dport 5353 -j ACCEPT |