openssh – ssh -Q key not listing all key types?

I am having some problems with understanding which types of host keys my SSH daemon actually provides or supports (stock debian buster, sshd 7.9.p1). From the manual (man sshd_config):

 HostKeyAlgorithms
         Specifies the host key algorithms that the server offers.  The default for this option is:

            ecdsa-sha2-nistp256-cert-v01@openssh.com,
            ecdsa-sha2-nistp384-cert-v01@openssh.com,
            ecdsa-sha2-nistp521-cert-v01@openssh.com,
            ssh-ed25519-cert-v01@openssh.com,
            rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,
            ssh-rsa-cert-v01@openssh.com,
            ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
            ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa

         The list of available key types may also be obtained using "ssh -Q key".

Please note the last line. When following the advice given there:

root@odysseus /var/log # ssh -Q key
ssh-ed25519
ssh-ed25519-cert-v01@openssh.com
ssh-rsa
ssh-dss
ecdsa-sha2-nistp256
ecdsa-sha2-nistp384
ecdsa-sha2-nistp521
ssh-rsa-cert-v01@openssh.com
ssh-dss-cert-v01@openssh.com
ecdsa-sha2-nistp256-cert-v01@openssh.com
ecdsa-sha2-nistp384-cert-v01@openssh.com
ecdsa-sha2-nistp521-cert-v01@openssh.com

I’ve got two questions:

  1. As an example, the man page states that rsa-sha2-256 is part of the default for HostKeyAlgorithms. But this string does not appear in the output of ssh -Q key.

    How does this fit together? How can something be a default which even doesn’t exist?

    The above example implies that ssh-rsa might be insecure, because it doesn’t have sha2 in its name, and thus might be sha1 or even md5 based (of course, my host keys are actually created by ssh-keygen with sha2-256 fingerprint, so that actually can’t be a problem, but I’d like to understand those key type names nevertheless).

  2. What does the string -cert-v01@openssh.com in some of the algorithm type names mean? Are these the types for certificate-based authentication?

dnd 3.5e – What types of bonuses can be applied with the fortify epic spell seed to boost intelligence?

The DMG lists all the bonus types, some are common improvements to abilities, like enhancement or inherent. But what other types of bonuses could be applied to intelligence?

I could see the following being applied: alchemical, circumstance, competence, enhancement, inherent, insight, luck, morale, profane, sacred.

Surely a dodge bonus to intelligence is dumb, but perhaps I’ve missed a few other ones.

url – How to intercept application specific MIME types used by 3rd party (Windows) browser/plugins apps?

I’m trying to intercept and decipher scripted code that is sent to a previously installed Windows application, after a user have clicked on a particular URL in their web browser which is somehow returning a MIME response that is intercepted by the Win app and processed as a script/program.

The particular example of concern, is how the (Windows) trading application Think-or-Swim (aka. TOS) is downloading and running user scripts from either a custom URL handler of the form: tossc:XXXX or using a standard URL like http://tos.mx/A1PZUml which then sends one of the MIME types:

x-scheme-handler/tossc
application/x-tossc
application/x-thinkorswim

I have posted a similar question on SO here but I don’t think that forum is appropriate for this question and hope someone here would a have some more technical know-how of how to do this and also explain what’s going on. As you can tell I am probably not even using the correct language for asking the question in a clear manner. So feel free to correct me or this post.

Q: How can I intercept and inspect code that is loaded in this way?

(Hoping to also learn what is going on and how this is done, or an be done, by e.g. python?)

settings – How can I prevent my soft keyboard from changing for different input types?

I would like to disable the soft keyboard mode (gboard) for inputType=textUri on my Pixel 4a, and fall back on the default text keyboard mode.

Coming from a much older version of Android which supported fewer inputTypes, I am finding it difficult to adjust to these similar-yet-subtly-different soft keyboards. In particular, the uri mode is causing problems for me, as mobile browsers tend to use it in their top url/search bar. This causes me problems because punctuation commonly used for logic in search, such as “, +, -, :, !, etc, are removed from their usual location (on my keyboard, behind the period), and replaced with shortcuts for common top level domains.

I would like my keyboard to always be the same, or at least, I would like to disable some of the input modes that are similar enough to be confusing.

I understand that this input type feature may not be intended to be configurable.
Still, I would appreciate any advice that can be offered.

Custom post types listing in all themes

I’m sorry, I speak a little English.

My plugin: ~/wp-content/plugins/examplee/examplee.php

<?php
    
    /**
     * Plugin Name: Examplee
     */
    
    function create_posttype() {
 
        register_post_type( 'movies',
        // CPT Options
            array(
                'labels' => array(
                    'name' => __( 'Movies' ),
                    'singular_name' => __( 'Movie' )
                ),
                'public' => true,
                'has_archive' => false,
                'rewrite' => array('slug' => 'movies'),
                'show_in_rest' => true,
     
            )
        );
    }

    add_action( 'init', 'create_posttype' );

    // I would like my listing code here if ?post_type=movies

?>

MySQL insert movies custom post:

INSERT INTO `wp_posts` (`post_content`, `post_title`, `post_type`) VALUES ('demo content', 'demo title','movies');

I see: https://myexample.tld/?post_type=movies

It works!

I would like special listing if ?post_type=movies page in all themes when coding the examplee.php file only:

<ul><li><h3>demo title</h3><p>demo content</p></li></ul>

How to?

sharepoint online – Create a View with PowerShell Returns Error: One or more field types are not installed properly

I’m trying to create views on sub-folders in a SharePoint Online document library using SharePoint Online Management Shell. The script creates the view but generates the following error message when I try to display the view.

One or more field types are not installed properly. Go to the list settings page to delete these fields. Correlation ID: 0f3fbe9f-80e3-0000-c877-398c5f1cc2bf

I’m using the following script to create the view.


#Config Variables
$SiteURL = "https://XXXX.sharepoint.com/sites/TestTeamSite"
$ListName= "Documents"
$ViewName= "0001TestFolder"
$ViewFields = @("Name","Modified")
$Query = "<Where><Eq><FieldRef Name = 'Title' /><Value Type = 'Text'>Active</Value></Eq></Where>"
 
#Get Credentials to connect
#$Cred = Get-Credential
 
Try {
    #Connect to PNP Online
    Connect-PnPOnline -Url $SiteURL -UseWebLogin
 
    #sharepoint online pnp powershell create view
    Add-PnPView -List $ListName -Title $ViewName -ViewType Html -Fields $ViewFields -Query $Query -ErrorAction Stop
    Write-host "View '$ViewName' Created Successfully!" -f Green
}
catch {
    write-host "Error: $($_.Exception.Message)" -foregroundcolor Red
}

8 – How to get the file destination from a content type’s field_image to upload programatically

I have a cron job that goes and grabs content from another resource and uploads it into my drupal site, and this includes a link an image that I retrieve and upload into my S3 file system.

  • My site’s file system is set to Amazon S3
  • For my S3 Configurations, I have access_key and secret_key set in the settings.php file as well as the following settings:
$settings('s3fs.use_s3_for_public') = TRUE;
$settings('s3fs.use_s3_for_private') = TRUE;
$settings('php_storage')('twig')('directory') = 'sites/default/files/php/twig';
  • My Content Type’s field_image settings are to use s3 storage under the folder public/course_images
  • I’ve validated the s3 configurations and refreshed the metadata cache successfully

Right now, if I upload an image through the admin interface, it uploads as expected and works perfectly fine. However, in my cron job I keep getting the error The specified file 'temporary://fileBXiPLP' could not be copied because the destination directory 'public://course_images' is not properly configured.

In my cron job, here is how I attempt to upload the file:

$image_url_arr = explode("/", $image_url);
$image_name = end($image_url_arr);
$img = file_get_contents($image_url);
$file = file_save_data($img, "public://course_images/$image_name", FileSystemInterface::EXISTS_REPLACE);

I’ve tried to replace public://course_images with public://public/course_images and s3://public/course_images and I received the exact same error…

What’s even stranger is that my staging instance that has the exact same configurations and the same s3 bucket permissions works perfectly fine (specifically with the s3://public/course_images option.

Considering it uploads fine via the admin UI, how can I get the correct path to be able to upload to S3 programatically?

custom post types – Search CPT by tag ids

I need to search custom post type by tagids. I have created a post type that is “gampu”. In this post type i have register 5 tags taxonomy like ‘fitting’, ‘adapter’, ‘type’, ‘volume’ and ‘gaki’. Now admin can create many tags in this tag taxonomies and when admin create any post then they will select the tags from all of those 5 register tag taxonomies.

On front end i want to add filter by tag. When user select (checkboxes) tags and click on search i need to fetch only those post that associated by tag ids. I have tried below code but its not working for me.

               $args = array(
                    'post_type' => 'gampu',
                    'posts_per_page' => -1,
                    'tag__in' => array(30,31,34),
                    'post_status' => 'any',
                    'orderby' => 'ID',
                    'order' => 'DESC'
                );
                
                $query = new WP_Query($args);
                echo '<pre>'; var_dump($query->request); echo '</pre>';

                $getpost = get_posts($args);
                echo '<pre>'; var_dump($getpost); echo '</pre>';

Nothing is coming from this code. Fix me if i am wrong anywhere in above code.

8 – 2 content types and reference

I am using Drupal 8.9.

I have 2 content types Teacher and Subject. Teacher has 2 reference fields of content type Subject (first one is the subject which the teacher is teaching and second one is the subject which the teacher lectures).

My desired functionality is that the teacher chooses Subjects which he teaches or lectures and then teacher’s name automatically shows in corresponding Subject under corresponding title (teacher or lecturer) with link to teacher’s page.

I am a total newbie in Drupal as I am doing this as my school work, so please be patient with me 🙂

Abstract Data Types vs Abstract Type

What’s the relation between Abstract Types, Abstract Data Types, Abstract variables and Concrete types?

Is there any sort of connection?

Can someone point to resource other than wikipedia pages for learning more about these topics?