Posts

Compiling cuetools with spksrc for synology NAS

Image
Read the disclaimer This article describes how to compile cuetools for synology devices, package it and install it. You can get the cuetools sources at https://github.com/svend/cuetools The package described in this guide will download the content from that repository. cuetools is a set of utilities for working with Cue Sheet (cue) and Table of Contents (toc) files. This guide is the same that : https://dayandnightcoding.blogspot.com/2020/04/compiling-cpulimit-with-spksrc-for.html You can follow the different steps there. I'll document only the steps referring specifically to cuetools Clone the repository and make setup It's documented here :  https://github.com/SynoCommunity/spksrc/wiki/Developers-HOW-TO on the ubuntu host start a terminal choose a folder for the git clone root git clone https://github.com/youpla/spksrc.git cd spksrc/ make setup Compile the cuetools package for your architecture in a terminal navigate to the cuetools folder ...

Testing a package compiled with spksrc for synology NAS

Image
Read the  disclaimer Now that you've compiled a package, you can test it on a device. See :  https://dayandnightcoding.blogspot.com/2020/04/compiling-cpulimit-with-spksrc-for.html Ways to test:  Online demo @ synology.com Using a blank device Online demo Synology provides online demo at  https://demo.synology.com/ There's no terminal window there to my knowledge, but you can use the scheduler as a workaround. Go to the "package center" clic "settings" and select "any publisher" Select "manual install" Reminder : the demo platform is x64 while writing this article. Select your x64 compiled package. In this example : "cpulimit_x64-6.1_0.2-0.spk"   Now you can see your package in the "package center" In order to test it, you can go to "control panel"  "task scheduler" Create>scheduled task>user-defined script Select "admin" Thi...

Compiling cpulimit with spksrc for synology NAS

Image
Read the disclaimer This article discribes how to compile cpulimit for synology devices, package it and install it. I've set up a forked repository of spksrc at  https://github.com/youpla/spksrc There I publish some tools. You can get cpulimit sources at https://github.com/opsengine/cpulimit The package described in this guide is will download the content from that repository. cpulimit is a simple program which attempts to limit the cpu usage of a process expressed in percentage, not in cpu time. The apprehensible quality of this software is allowing you to run demanding software without rendering the NAS unusable. In order to compile the software there are two possibilities. a virtual machine a docker container In this example I'll rely on a virtual machine running Ubuntu . There are many steps involved in getting a virtual machine ready that are beyond this article scope, here are some basic steps: chose an hypervisor  install Ubuntu install th...

Mikrotik router Dynamic DNS : Infomaniak / NOIP

Image
Read the disclaimer You can get the scripts here :  https://github.com/youpla This script queries http://checkip.dyn.com in order to obtain the public IP. With webfig: Integrate the script in the router Go to System>Scripts Click "Add New" Copy the script stored on github, select the one adapted to your need: NOIP: Infomaniak: Paste it into the script area: Don't forget to adapt your : username password hostname Policy : read,write,test Create a scheduler  Point to the previously created script. On Event : has to be the script name configured in the previous step. Policy :read,write,test

Disclaimer

These scripts come without warranty of any kind. Use them at your own risk. I assume no liability for the accuracy, correctness, completeness, or usefulness of any information provided by this site nor for any sort of damages using these scripts may cause.  These hardware modification/manipulation come without warranty of any kind. Use them at your own risk. I assume no liability for the accuracy, correctness, completeness, or usefulness of any information provided by this site nor for any sort of damages using these hardware modification/manipulation may cause.

Reading WooCommerce REST API from PERL

Here is a basic example how to download and parse the WooCommerce REST API Json file from perl. If you want to get data from the WooCommerce REST API you've got ready to use documentation for the following connectors: Node.js Python PHP Ruby You can find more regarding the WooCommerce REST API here: https://docs.woocommerce.com/document/woocommerce-rest-api The returned data will be a perl array reference. You'll find more on that topic here: https://perlmaven.com/array-references-in-perl