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
| ffmpeg -i data/video.mp4 -vcodec h264 -b:v 1000k -acodec mp2 data/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
| <head> | |
| <?php if (is_single() || is_page()) { ?> | |
| <meta name="description" content="<?php $s = trim(str_replace("\r\n", " ", htmlspecialchars(strip_tags($post->post_content)))); if(mb_strlen($s,'UTF-8') > 200){$postdescr = mb_substr($s,0,198,'UTF-8').' …';} else{$postdescr = $s;}; echo $postdescr; ?>" /> | |
| <meta property="og:description" content="<?php echo $postdescr; ?>" /> | |
| <meta property="og:url" content="http://site.com/<?php global $post; echo $post->post_name; ?>" /> <!-- OR --> | |
| <meta property="og:url" content="<?php the_permalink() ?>" /> | |
| <meta property="og:title" content="Site Name<?php wp_title(); ?>" /> | |
| <meta property="og:headline" content="Site Name<?php wp_title(); ?>" /> | |
| <?php if (get_post_meta($post->ID, 'image_id', true)){$postimage = wp_get_attachment_image_src(get_post_meta($post->ID, 'image_id', true), 'full'); ?> | |
| <link rel="image_src" href="<?php echo $postimage[0]; ?>" /> |
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 | |
| if [ $1 = "1" ]; then | |
| curl -XPOST -H "Content-type: application/json" -d '{"method":"passthrough", | |
| "params": {"deviceId": "DEVICEID", | |
| "requestData": "{\"system\":{\"set_relay_state\":{\"state\":1}}}" } | |
| }' 'https://eu-wap.tplinkcloud.com?token=TOKEN' | |
| else | |
| curl -XPOST -H "Content-type: application/json" -d '{"method":"passthrough", | |
| "params": {"deviceId": "DEVICEID", | |
| "requestData": "{\"system\":{\"set_relay_state\":{\"state\":0}}}" } |
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
| AL : Alabama | |
| AK : Alaska | |
| AZ : Arizona | |
| AR : Arkansas | |
| CA : California | |
| CO : Colorado | |
| CT : Connecticut | |
| DE : Delaware | |
| DC : District of Columbia | |
| FL : Florida |
OlderNewer