CCCPaste

Android Clear all Notifications with ADB

#Android Clear all Notifications with ADB
adb shell "su -c 'service call notification 1'"

#Through ssh with Termux
ssh -p 8022 192.168.1.100 "sudo service call notification 1"

2021-07-30_stats.json

{
"ip": {
"45.158.15.185": 2113,
"210.212.229.180": 2828,
"5.180.107.26": 1837,

Function Custom Template for Playlist Content || Custom Change

/* Function Custom Template for Playlist Content */
function custom_render_playlist_content_loop() {
require_once JNEWS_VIDEO_DIR . 'class/module/block/class.jnews-video-block-4-view.php';
$class_playlist = JNEWS_VIDEO\Objects\Playlist::get_instance();
$playlist_id = get_the_ID();

Show Bio/Description of user in member page of buddypress

/* Show Bio/Description of user in member page of buddypress */
function add_user_bio_in_member_page() {
$user_data = get_user_meta(bp_displayed_user_id());
$user_description = $user_data['description'];
echo $user_description[0];

2021-07-28_stats.json

{
"ip": {
"5.180.107.26": 1324,
"185.250.240.106": 2,
"143.244.189.147": 33,

Give Selected Role to Access All Media

/** Give Selected Role to Access All Media */
function give_selected_role_to_access_all_media() {
$allowed_role = array( 'editor', 'author' ); /* allowed role to access all media */
$user_role = wp_get_current_user()->roles; /* current user role */
if ( in_array( $user_role[0], $allowed_role ) && ! current_user_can( 'manage_options' ) ) {

Hide Get From URL Tab || 3 Second Video Preview

/* Hide Get From URL Tab || 3 Second Video Preview */
.video-preview-format-field.form-group ul li a[data-type='video-preview-url'] {
display: none;
}

Remove Featured Image in Post by Specific Category

/* Remove Featured Image in Post by Specific Category */
function remove_featured_image_post_by_category( $output, $post_id ) {
$list_category_by_slug = array( 'uncategorized', 'video' );
$category_post_have = get_the_category( $post_id );
foreach ( $category_post_have as $post_category ) {

Hide Browse File Tab || Featured Image

/* Hide Browse File Tab || Featured Image */
.image-format-field.form-group ul li a[data-type='image'],
#featured-image #btn-single-image {
display: none;
}

text-file-howTo

[daniel@stinkpad misc]$ cat blah.txt
#!/usr/bin/env cat

testing 123...
[daniel@stinkpad misc]$ chmod a+x blah.txt