Skip to content

Instantly share code, notes, and snippets.


Fabio AM fabioam

View GitHub Profile
fabioam / gist:3b47f84fac0a8e4f5b7bffc9b5109647
Last active Feb 3, 2017
Zoneminder export mp4 from images (events)
View gist:3b47f84fac0a8e4f5b7bffc9b5109647
# Export ZoneMinder events (images) into MP4 file
# Execute this script inside events/ directory
# directory where MP4 videos should be exported
for camera in $(find -maxdepth 1 -type l |sort); do
fabioam / iptv-reverbtv.m3u
Last active Aug 30, 2016
Canais IPTV nacionais abertos
View iptv-reverbtv.m3u
#EXTINF:0 group-title="TV", ALL SPORTS
#EXTINF:0 group-title="TV", BAND
#EXTINF:0 group-title="TV", Band Sports
fabioam /
Last active Aug 30, 2016
Localiza todas as imagens, e move para o diretório raiz incluindo um prefixo
find . -name '*.jpg' \
> | awk 'BEGIN{ a=0 }{ printf "mv \"%s\" %04d.jpg\n", $0, a++ }' \
> | bash
# fonte:
fabioam / wp-admin-add.sql
Created Aug 30, 2016
wordpress - adicionado usuario admin
View wp-admin-add.sql
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', '', '', '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');