Orion42 Blog

~IT made easy~

Latest post

[C++] Count how many even and odd numbers there are in a sequence

Today we learn how to count how many even and odd numbers there are in a sequence of integers. Like any problem, many solutions exist and here we analyse just one among many possible ones. This is the complete code:…

[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…

[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:…

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…

Bash logo

[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…

AppLike, scam or legit?

Short answer: Legit. I used the app and I received a payment. Here the proof: Click here to install the app and receive 2555 coins for free: https://r.applike.info/s/5b1d4034394e8 Enjoy!

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…

Wordpress Logo

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’  )  ) ) &&…