Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors
| <?php | |
| /* | |
| Term Archive Pages: | |
| - http://example.com/recipes/dinner/ | |
| - http://example.com/recipes/breakfast,brunch/ | |
| Single Recipe Pages: | |
| - http://example.com/recipes/dinner/soup-title/ |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors
| <?php | |
| // Called from $time_of_post = aps_get_nearest_open_time( $data ); | |
| function aps_get_nearest_open_time( $data ) { | |
| // get furthest scheduled post | |
| $post = get_posts( array( | |
| 'numberposts' => 1, | |
| 'post_status' => 'future', | |
| 'post_type' => $data['post_type'] |
| <?php | |
| // Remove the wp_title filter | |
| add_action( 'init', 'remove_wpseo_title_rewrite' ); | |
| function maybe_remove_wpseo_title_rewrite() { | |
| global $wpseo_front; | |
| remove_filter( 'wp_title', array( $wpseo_front, 'title' ), 15 ); | |
| } |
| Bus 001 Device 004: ID 046d:0825 Logitech, Inc. Webcam C270 | |
| Device Descriptor: | |
| bLength 18 | |
| bDescriptorType 1 | |
| bcdUSB 2.00 | |
| bDeviceClass 239 Miscellaneous Device | |
| bDeviceSubClass 2 ? | |
| bDeviceProtocol 1 Interface Association | |
| bMaxPacketSize0 64 | |
| idVendor 0x046d Logitech, Inc. |
| #!/bin/sh | |
| # Note: You need to run this as a user who has access to those log files | |
| cat /var/log/nginx/access.log* | grep bot | goaccess -a | |
| # Examples | |
| # | |
| # 1) Send output to logs.html |
| High Speed device @ 4 (0xFD120000): ............................................. Miscellaneous/Common Class device: "Mobius\000" | |
| Port Information: 0x1018 | |
| Not Captive | |
| External Device | |
| Connected | |
| Enabled | |
| Number Of Endpoints (includes EP0): | |
| Total Endpoints for Configuration 1 (current): 3 | |
| Device Descriptor | |
| Descriptor Version Number: 0x0200 |
| High Speed device @ 4 (0xFD120000): ............................................. Miscellaneous/Common Class device: "Microsoft\256 LifeCam Cinema(TM)" | |
| Port Information: 0x1018 | |
| Not Captive | |
| External Device | |
| Connected | |
| Enabled | |
| Number Of Endpoints (includes EP0): | |
| Total Endpoints for Configuration 1 (current): 4 | |
| Device Descriptor | |
| Descriptor Version Number: 0x0200 |
| <?php | |
| require 'querypath/src/qp.php'; | |
| $posts = array(); | |
| $map = array( | |
| 'kl.' => ' ', | |
| '.' => ' ', | |
| 'des' => 'dec', |
| <?php | |
| add_filter( 'wp_generate_tag_cloud', 'maybe_color_tag_cloud', 10, 3 ); | |
| function maybe_color_tag_cloud( $cloud, $tags, $args ) { | |
| $a = array(); | |
| $counts = array(); | |
| $range = 4; |