Orion42 Blog

~IT made easy~

Computer and Coding

Linux, Bash and Git

[Git] Rename a local and remote branch

If you want to rename a git branch on both your local and remote repository, you can change its name using the -m parameter of the branch command. Rename your local branch. You can do it both from inside the…

Computer and Coding Linux, Bash and Git

[Git] How to rebase last commit to a different branch with cherry-pick

In git is possible to rebase the last commit of Branch B onto Branch A and rollback Branch Bone commit using the cherry-pick instruction. Initial state: — — — —    (Branch-A) \ — XX      (Branch-B) Final state:…

Computer and Coding Window 10

How to Uninstall Windows 10’s Built-in Apps for all users

It is possible to uninstall Win10 preinstalled (built-in) via powershell in admin mode. The generic command  to remove APP_NAME is: get-appxpackage -allusers APP_NAME| remove-appxpackage To remove the app only for the current user remove the srting “‘allusers”. Credits: A deeper…

Linux, Bash and Git

[Bash] How to remove all empty directories in a sub-tree?

Using bash, both in Linux or in Windows Sub-system for Linux [WSL], you can remove all the empty directories in a folder or hard drive and in all the sub-folders. Short answer: open your terminal and navigate into the top…

Computer and Coding

Fast Download of Samsung Firmware

Have you struggled to find a site where to fast download firmware for your Samsung device? I did.  I found a lot of websites where you either paid a fee or subscription or you download at max 40-50 Kb/s. Finally,…


[Matlab] Solved Multiple instance of Matlab when opening .m files

If you have a new instance of matlab opening each time you open a new file you can check these page for a lot of differente ways of fixing it. On the official site: “Why is a new instance of…


How to add_submenu_page() passing a $variable (parameter=value) with called function

Since in WordPress you cannot pass directly a parameter into the callback function called by the add_submenu_page, I have figured out another simple way to do it. My problem was to pass a simple parameter into a sub-menu page, something…


How to have sticky pages on wordpess

You have to change a single line (#137) in  wp-admin/includes/meta-boxes.php from: <?php if ( $post_type == ‘post’ && current_user_can( ‘edit_others_posts’ ) ) : ?> to: <?php if ( in_array( $post_type, (array) apply_filters( ‘sticky_post_types’, array( ‘post’, ‘page’  )  ) ) &&…


Using microdata RDFa with Breadcrumb NavXT 4.4 (schema.org)

Small tutorial on how to set up RDFa microdata in Breadcrumb NavXT plugin on a Wordpress site for a structured data breadcrumb (for Google seo and serp)