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
# Source: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Sealing_Virtual_Machines_in_Preparation_for_Deployment_as_Templates.html | |
touch /.unconfigured | |
yum clean all | |
rm -rf /etc/ssh/ssh_host_* | |
rm -rf /etc/udev/rules.d/70-* | |
sed -e '/HWADDR=/d' -i /etc/sysconfig/network-scripts/ifcfg-* | |
find /var/log -type f -delete | |
history -c | |
shutdown -h now |
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 bash | |
# | |
# avoid accidentally committing to git repos as root. | |
# save to /usr/local/bin/git | |
# | |
set -eu | |
git_cmd="${1:-}" |
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 | |
set -eu | |
FRAMERATE="$1" | |
ffmpeg -framerate $FRAMERATE -pattern_type glob -i '*.jpeg' -c:v libx264 -pix_fmt yuv420p output.mp4 |
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
# /etc/systemd/system/unifi-video.service | |
[Unit] | |
Description=Unifi Video NVR Daemon | |
[Service] | |
Type=forking | |
ExecStart=/usr/sbin/unifi-video start | |
ExecStop=/usr/sbin/unifi-video -D stop |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- Refer to: https://help.ubnt.com/hc/en-us/articles/218506997-UniFi-Ports-Used --> | |
<service version="1.0"> | |
<short>unifi-video</short> | |
<description>UniFi Video Controller</description> | |
<port port="3478" protocol="udp"/><!-- STUN --> | |
<port port="8080" protocol="tcp"/><!-- Device and Controller Communication --> | |
<port port="8443" protocol="tcp"/><!-- WebUI --> |
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/python -tt | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
OlderNewer