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
$ pcs resource create OpenSIPS ocf:heartbeat:VirtualDomain config=/etc/libvirt/qemu/router.xml hypervisor=qemu:///system op monitor interval=10s |
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
#!/usr/bin/env escript | |
-mode(compile). | |
-include_lib("kernel/include/file.hrl"). | |
main(["readcpio", Path]) -> | |
dump_cpio(Path); | |
main(["show", Path]) -> |
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
#!/usr/bin/env escript | |
-mode(compile). | |
-include_lib("kernel/include/file.hrl"). | |
main(["readcpio", Path]) -> | |
dump_cpio(Path); | |
main(["show", Path]) -> |
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
lsof | grep '(deleted)' |
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 main | |
import ( | |
"github.com/guelfey/go.dbus" | |
"log" | |
"bufio" | |
"os" | |
) | |
func main() { |
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 |
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
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
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
semodule -DB | |
.... | |
module allowsnmpdtmp 1.0; | |
require { | |
type system_cronjob_tmp_t; | |
type snmpd_t; | |
class file { read open ioctl getattr }; | |
} |