#!/bin/bash
ROUTER_CHECK_HOSTNAME="mooo.com"
NAS_IP=$(curl ifconfig.me)
ROUTER_IP=$(getent hosts ${ROUTER_CHECK_HOSTNAME} | awk '{ print $1 }')
QBITTORRENT_STATUS=$(systemctl status fvapp-qbittorrentr6 | grep 'Active:')
if [[ "$QBITTORRENT_STATUS" =~ .*"active (running)".* && $NAS_IP == $ROUTER_IP ]]; then
# Kill torrents
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
# Sources | |
# https://openwrt.org/docs/guide-user/network/wifi/guestwifi/guest-wlan | |
# https://openwrt.org/docs/guide-user/network/wifi/guestwifi/extras | |
WIFI_DEV="radio0" | |
WIFI_PASSWORD="guest" | |
# Configure network | |
uci -q delete network.guest | |
uci set network.guest="interface" |
ffmpeg -r 30 -i input.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" output.mp4
Here -r 30'' specify the frame rate 30 frames/sec. So if you want 10 sec movie with frame rate 30/sec, you make GIF animation that has total 300 frames, then use
-r 30''.
Source: https://stackoverflow.com/questions/37312122/how-to-do-a-nested-if-else-statement-in-reactjs-jsx
this.state.route === 'projects'
?
<div> <Navigation onRouteChange={this.onRouteChange}/> Projects</div>
:
this.state.route === 'about'
?
About
export RSYNC_PASSWORD="BACKUP_PASSWORD_GOES_HERE" rsync -av --delete /var/backups/ rsync://[email protected]:/backup/
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
{ | |
"title": "DREVO Calibur 71-key Keyboard", | |
"rules": [ | |
{ | |
"description": "Set ESC to grave_accent_and_tilde", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "escape", |
Change mkv container to mp4 - with subtitles and all audio channels
ffmpeg -i test.mkv -c copy -map 0:4 -map 0:3 -map 0:2 -map 0:1 -map 0:0 -c:s mov_text test.mp4
Batch:
for i in *.mkv; do ffmpeg -i "$i" -c copy -map 0:1 -map 0:0 -c:s mov_text "${i%.*}.mp4"; done
#cors.json
{
"CORSRules": [
NewerOlder