This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name _facebook | |
| // @namespace js.userscript.bewam | |
| // @include https://*.facebook.com/* | |
| // @include https://facebook.com/* | |
| // @run-at document-start | |
| // @version 1.1.0_2021-02-07 | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env bash | |
| #### USAGE | |
| #### ===== | |
| ## (this script) FILEtoBEBackedup | |
| #### settings | |
| #### ======== | |
| ## destination folder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // function to know hours in a range | |
| const hoursRange = (s, e) =>Array.from({ length: (e>s)?(e-s):(24-s+e) }, (_,i)=>(s+i<24)?s+i:s+i-24); | |
| console.log(hoursRange(18,22)) | |
| // Array(4) [ 18, 19, 20, 21 ] | |
| console.log(hoursRange(18,6)) | |
| // Array(6) [ 22, 23, 0, 1, 2, 3 ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## it downloads the rss and parse it, | |
| ## check if update, downloads the new release | |
| ## replaces link from old .jar to new one | |
| ## erases unenecessary stuff: temp., old jar(if asked) | |
| ## this script REQUIRE the use of a | |
| ## xml parser, here xqilla | |
| target_dir="$HOME/bin/" # absolute for linking |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## This script intents to be used with a schedule program like cron. | |
| ## There is a few input to setup, don't hesitate to make it verbose. | |
| ## You'll use it WITHOUT ANY WARANTY of any kind, you have to | |
| ## know what you're doing. | |
| ## Remember to modify the installation program to suit your system. | |
| ## you need: | |
| ## jq installed to parse the api response of github api | |
| ## wget installed to download |