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
[Unit] | |
Description=Enable HTTP access to the repository | |
After=syslog.target network.target | |
[Service] | |
Type=simple | |
# Execute ExecStartPre and ExecStopPost directives from superuser | |
PermissionsStartOnly=true | |
User=ftp | |
Group=ftp |
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 | |
# | |
# http://www.openfusion.net/linux/pvmove_disk_migrations | |
# http://artw.ru/blog/archives/1376/ | |
# http://xgu.ru/wiki/LVM | |
# | |
pvcreate /dev/sdi | |
vgextend video /dev/sdi | |
pvmove /dev/sdh /dev/sdi |
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
# Restore search drop-down box | |
browser.search.showOneOffButtons = false | |
# Media source for YouTube (Live streams) | |
media.mediasource.enabled = true | |
media.mediasource.mp4.enabled = true | |
media.mediasource.webm.enabled = true | |
media.fragmented-mp4.exposed = true | |
media.fragmented-mp4.ffmpeg.enabled = true |
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 -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
keycode 49 = less greater slash bar bar brokenbar | |
keycode 94 = grave asciitilde Cyrillic_io Cyrillic_IO | |
keycode 191 = Insert NoSymbol Insert |
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 | |
/usr/bin/rsync -avz rsync://storage.local:/containers /var/lib/container/ |
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
curl -L -X PUT http://127.0.0.1:4001/v2/keys/coreos.com/network/config -d value='{"Network":"10.0.0.0/16"}' | |
curl -L http://127.0.0.1:4001/v2/keys/coreos.com/network/config |
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
sudo dnf -y --releasever=21 --installroot=/srv/mycontainer --disablerepo='*' --enablerepo=fedora --enablerepo=updates --enablerepo updates-testing install systemd couchdb | |
sudo systemd-nspawn -D /srv/mycontainer -b | |
sudo systemctl -M mycontainer mask systemd-logind.service | |
sudo systemctl -M mycontainer mask console-getty.service | |
sudo systemctl -M mycontainer enable couchdb.service | |
sudo systemctl -M mycontainer enable systemd-networkd.service | |
sudo machinectl reboot mycontainer |
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
chown root:opensips /etc/radiusclient-ng/servers | |
chmod 640 /etc/radiusclient-ng/servers |
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
int main(int argc, char* argv[]) | |
{ | |
int i = 0xffff0000; | |
if ( ((char*)&i)[0] == 0) | |
printf("LE\n"); | |
else | |
printf("BE\n"); | |
return 0; | |
} |