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»'
<?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()){ | |
?> |
To use this script, simply replace the USERNAME
, REPOSITORY
, GITHUB_STARS_REPO
and GITHUB_DOWNLOADS_REPO
placeholders with the appropriate values for the GitHub repository you want to fetch the star and release download count for. Then, copy the complete script into a new Scriptable App script and run it. The star and release download count for the specified repository will be displayed in a Scriptable widget.
// Constants for widget configuration
const WIDGET_TITLE = "GitHub";
const USERNAME = "hoppscotch"
const REPOSITORY = "hoppscotch"
const GITHUB_STARS_REPO = "hoppscotch/hoppscotch";
const GITHUB_DOWNLOADS_REPO = "hoppscotch/releases";
const CACHED_DATA_HOURS = 0.5;