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
[Unit] | |
Description=start log2ram & restart systemd-journald | |
[Service] | |
ExecStart=/bin/systemctl start log2ram.service | |
ExecStartPost=/bin/systemctl restart systemd-journald |
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
#!/bin/bash | |
if [ -z "$2" ];then | |
echo 'USAGE: | |
denoise input.mov output.mov | |
OR | |
denoise input.mov output.mov [ambient-noise-start-time] [ambient-noise-duration] [sox-noisered-amount] [sox-norm-param] |
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
# Safe Search Domains | |
# Paste / Add this to your Unbound config | |
local-data: "yandex.com A 213.180.193.56" | |
local-data: "yandex.ru A 213.180.193.56" | |
local-data: "yandex.ua A 213.180.193.56" | |
local-data: "yandex.by A 213.180.193.56" | |
local-data: "yandex.kz A 213.180.193.56" | |
local-data: "www.yandex.com A 213.180.193.56" | |
local-data: "www.yandex.ru A 213.180.193.56" | |
local-data: "www.yandex.ua A 213.180.193.56" |
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
#!/bin/sh | |
# A simple script for remotely rebooting a Ubiquiti UniFi access point | |
# Version 1.0 (Dec 15, 2015) | |
# by Steve Jenkins (http://www.stevejenkins.com/) | |
# Requires sshpass (https://sourceforge.net/projects/sshpass/) which | |
# is probably available via dnf, yum, or apt on your *nix distro. | |
# USAGE |
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
# Create background noise profile from mp3 | |
/usr/bin/sox noise.mp3 -n noiseprof noise.prof | |
# Remove noise from mp3 using profile | |
/usr/bin/sox input.mp3 output.mp3 noisered noise.prof 0.21 | |
# Remove silence from mp3 | |
/usr/bin/sox input.mp3 output.mp3 silence -l 1 0.3 5% -1 2.0 5% | |
# Remove noise and silence in a single command |