start new:
tmux
start new with session name:
tmux new -s myname
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |
<?php | |
/* | |
Plugin Name: Woocommerce SMS Notification | |
Plugin URI: http://kohbeixian.com | |
Description: Woocommerce SMS Notification (BulkSMS and WooCommerce Marketplace) | |
Version: 1.0 | |
Author: Xian | |
Author URI: http://kohbeixian.com | |
*/ |
Shut down without showing a confirmation dialog:
osascript -e 'tell app "System Events" to shut down'
Shut down after showing a confirmation dialog:
osascript -e 'tell app "loginwindow" to «event aevtrsdn»'
rebase
vs merge
).rebase
vs merge
)reset
vs checkout
vs revert
)git rev-parse
)pull
vs fetch
)stash
vs branch
)reset
vs checkout
vs revert
)<?php | |
/** | |
* This is a PHP code, so should be wrapped inside PHP | |
* Like we added here. | |
* If PHP is already open then don't include above <?php open tag | |
*/ | |
/** | |
* Adding custom javascripts or php action on WooCommerce Thank you page | |
* Works with WooCommerce 3.0 or above | |
*/ |
Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex
<?php | |
add_action('save_post', function($post_id, $post) { | |
$custom_post_type = 'custom-post-type'; | |
$custom_taxonomy = 'custom-taxonomy'; | |
$default_term_slug = 'default-term-slug'; | |
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return; | |
// If this is just a revision, don't set default category |
function umami_preconnect_url(){ | |
if(! is_user_logged_in()){ | |
echo '<link rel="preconnect" href="https://umami.example.com" />'; | |
} | |
} | |
add_action('wp_head', 'umami_preconnect_url'); | |
function umami_track_code() { | |
if(! is_user_logged_in()){ | |
?> |