Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| <?php | |
| // Karen Bot by @levelsio | |
| // | |
| // ask Claude Code or Cursor to adapt it to your city | |
| // mine is for Lisbon in Portuguese but it should work with any city and any language! | |
| // save it as council.php and add a Nginx route /council on your server to use it | |
| // make sure to add /council?key= and set a key below to use it privately | |
| // | |
| // more info: https://x.com/levelsio/status/2009011216132526407?s=20 |
| #faqs-group .panel-collapse.collapse {display: block !important;}.faqs-section .panel-default>.panel-heading>a:after{display:none !important} | |
| .faqs-section .panel-default>.panel-heading>a{ | |
| background-color: #0099a5!important; | |
| margin-bottom: 0 !important; | |
| border-radius: 4px 4px 0 0; | |
| } | |
| .faqs-section .panel-default{margin-bottom:20px !important;} |
| <?php | |
| //Disable Gutenberg for all but keep Enabled for Blog Posts only | |
| function wm_gutenberg_disable_cpt($can_edit, $post_type){ | |
| if($post_type != 'post'){ | |
| $can_edit = false; | |
| } | |
| return $can_edit; | |
| } | |
| add_filter('gutenberg_can_edit_post_type', 'wm_gutenberg_disable_cpt', 10, 2); |
| <?php | |
| # One time, assign missing tags | |
| function assign_tag($id){ | |
| $row = unserialize(get_post_meta($id,'_nhome_meta',true)); | |
| $ownership = $row['OWNERSHIP']; | |
| $tag = ''; |
| <?php | |
| # Inlcude in functions file for one time | |
| # Remove after calling this function on some page one time | |
| function warmarks_update_new_meta_from_old(){ | |
| # Provide your custom values here: | |
| $post_type = 'pdf'; //change it with your post type | |
| $old_metaKey = 'ecpt_pdflink'; | |
| $new_metaKey = '_jb_pdf'; |
| #!/bin/sh | |
| # replace cmd1 for the command to execute | |
| host=192.168.1.1 | |
| port=23 | |
| user=admin | |
| pass=02B08 | |
| cmd1='adsl info' | |
| current_date_time="`date +%Y-%m-%d\ %H:%M:%S`"; | |
| ( echo open ${host} |
| <?php | |
| /** | |
| Need to run this code just ONCE, | |
| so remove it after one pageload once spaces are removed | |
| **/ | |
| # List of Taxonomies with terms which have leading spaces | |
| $taxos = array('rooms', 'settings', 'views', 'features'); | |
| <?php | |
| // This file assumes that you have included the nav walker from https://github.com/twittem/wp-bootstrap-navwalker | |
| // somewhere in your theme. | |
| ?> | |
| <header class="banner navbar navbar-default navbar-static-top" role="banner"> | |
| <div class="container"> | |
| <div class="navbar-header"> | |
| <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> | |
| <span class="sr-only"><?= __('Toggle navigation', 'sage'); ?></span> |
| <?php | |
| // Remove Genesis Default Stylesheet | |
| remove_action( 'genesis_meta', 'genesis_load_stylesheet' ); | |
| //* Unregister layout settings | |
| genesis_unregister_layout( 'content-sidebar-sidebar' ); | |
| genesis_unregister_layout( 'sidebar-content-sidebar' ); | |
| genesis_unregister_layout( 'sidebar-sidebar-content' ); | |
| //* Unregister secondary sidebar |