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 | |
# 99% of credits by https://unix.stackexchange.com/a/192021/235601 | |
if [ "$#" -ne 1 ] | |
then | |
echo "Description: Convert mp4 file to instagram portrait format (720wx1080h)" | |
echo "Usage: $0 <filename>" | |
exit 1 | |
fi |
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 | |
# | |
# Export ZoneMinder events (images) into MP4 file | |
# Execute this script inside events/ directory | |
# directory where MP4 videos should be exported | |
EXPORT_VIDEO_PATH="/home/user/zoneminder/mp4" | |
for camera in $(find -maxdepth 1 -type l |sort); do |
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
find . -name '*.jpg' \ | |
> | awk 'BEGIN{ a=0 }{ printf "mv \"%s\" %04d.jpg\n", $0, a++ }' \ | |
> | bash | |
# fonte: http://stackoverflow.com/questions/3211595/renaming-files-in-a-folder-to-sequential-numbers |
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
Adicionar usuario admin | |
----------- | |
INSERT INTO `wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('749', 'czd', MD5('123456'), 'Your Name', 'fabio@doo.is', 'http://www.test.com/', '2011-06-07 00:00:00', '', '0', 'Your Name'); | |
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '749', 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'); | |
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '749', 'wp_user_level', '10'); |
NewerOlder