start new:
tmux
start new with session name:
tmux new -s myname
| // import { src, dest, watch, series, parallel } from 'gulp'; | |
| const { src, dest, watch, series, parallel } = pkg; | |
| import pkg from 'gulp'; | |
| import yargs from 'yargs'; | |
| import sass from 'gulp-sass'; | |
| import cleanCss from 'gulp-clean-css'; | |
| import gulpif from 'gulp-if'; | |
| import postcss from 'gulp-postcss'; | |
| import sourcemaps from 'gulp-sourcemaps'; |
| function add_theme_caps() { | |
| // gets the author role | |
| $role = get_role( 'testarole' ); | |
| // create if neccesary | |
| if (!$role) $role = add_role('testarole', 'Testa Role'); | |
| // add theme specific roles | |
| $role->add_cap('delete_posts'); | |
| $role->add_cap('delete_published_posts'); | |
| $role->add_cap('edit_posts'); |
| add_filter( 'wp_head', function(){ | |
| if (is_page(XX) && !is_user_logged_in()) { | |
| add_filter('the_content', function(){ | |
| return __('Sorry! Onlu logged-in user are allowed to see the content'); | |
| }, 99); | |
| } | |
| }); |
| { | |
| "states": [ | |
| { | |
| "uf": "AC", | |
| "name": "Acre", | |
| "cities": [ | |
| "Acrelândia", | |
| "Assis Brasil", | |
| "Brasiléia", | |
| "Bujari", |
| # Inspirations: | |
| # http://mutelight.org/practical-tmux | |
| # http://zanshin.net/2013/09/05/my-tmux-configuration/ | |
| # http://files.floriancrouzat.net/dotfiles/.tmux.conf | |
| # http://stackoverflow.com/questions/9628435/tmux-status-bar-configuration | |
| # https://github.com/Lokaltog/powerline | |
| # https://github.com/remiprev/teamocil | |
| # http://superuser.com/questions/74492/whats-the-best-prefix-escape-sequence-for-screen-or-tmux | |
| # http://blog.hawkhost.com/2010/07/02/tmux-%E2%80%93-the-terminal-multiplexer-part-2/ | |
| # |
| <?php | |
| // É aconselhável criar um backup do banco antes | |
| // crie a taxonomia cidade na functions do tema | |
| add_action('init', 'register_locations'); | |
| function register_locations() { | |
| register_taxonomy( 'cidade',array ( | |
| 0 => 'locais', | |
| ), | |
| array( 'hierarchical' => true, |
| {"lastUpload":"2022-01-12T14:26:48.418Z","extensionVersion":"v3.4.3"} |
| "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" XF86AudioPlay | |
| "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" XF86AudioStop | |
| "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" XF86AudioNext | |
| "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" XF86AudioPrevious |
| <?php | |
| $WP_categorias_filtro = array( | |
| 'post_type' => array('proposta', 'problema'), | |
| 'posts_per_page' => 6, | |
| 'meta_query' => array( | |
| 'relation' => 'OR', | |
| 'contagem' => array( | |
| 'key' => 'contagem_views', | |
| 'type' => 'NUMERIC', | |
| 'compare' => 'EXISTS' |