#script

magdoz@diaspora.psyco.fr

Quand #AnonchatGPT ne sait pas ce qu'est un #traqueur #google ... ^^
(aidez-moi à lui apprendre, en relançant cette " #IA" sur le sujet ^^ )

Question :
Quels outils en ligne, au code source ouvert (logiciel libre) et sans traqueur de google, peuvent aider à valider un script JavaScript ?

Réponse de #ChatPGT (en version anonyme pas #anonyme puisque bourrée de #traqueurs #google et #recaptcha) :
«
Voici quelques outils en ligne, au code source ouvert et sans traqueur de Google, qui peuvent aider à valider un script JavaScript :

  • ESLint : un linter flexible qui peut vous aider à détecter des erreurs et à adopter des meilleures pratiques de codage JavaScript. Site web : eslint.org

  • JSHint : un autre linter JavaScript qui peut vous aider à détecter les erreurs et les problèmes de style dans votre code. Site web : jshint.com

  • JSLint : un linter JavaScript strict qui peut vous aider à détecter les erreurs et les problèmes de style dans votre code. Site web : jslint.com

  • JSFiddle : un environnement de développement en ligne qui permet de tester et de déboguer votre code JavaScript en temps réel. Site web : jsfiddle.net

  • CodePen : une autre plate-forme en ligne pour éditer, expérimenter et partager du code JavaScript. Site web : codepen.io

  • WebStorm : un IDE (Environnement de développement intégré) de JetBrains doté de nombreuses fonctionnalités pour le développement JavaScript, y compris le débogage et la validation du code. Site web : jetbrains.com/webstorm/

  • Visual Studio Code : un éditeur de code hautement personnalisable avec des extensions pour la validation JavaScript, le débogage et bien plus encore. Site web : code.visualstudio.com

Tous ces outils sont open source et n'incluent pas de traqueurs de Google. Vous pouvez les utiliser en ligne ou les télécharger localement selon votre préférence.
»
................

J'ai vérifié, un seul n'a pas de traqueur google ! Et le seul qui n'en a pas, je ne sais pas du tout s'il est #LogicielLibre... ^^
#script #JavaScript #W3C #Validator #code

anonymiss@despora.de

Scripted shortcut caused double-click #disaster of #sysadmin's own making

source: https://www.theregister.com/2023/10/09/who_me/

Rather than right-clicking on the script and selecting "Edit" to make his small change, Ricardo had instead executed the script. On his production machine. The machine that stored all of his carefully constructed scripting – not to mention absolutely everything else he needed to do his job.

And of course there was no "Are you sure Y/N?" to save Ricardo's skin, was there? With a fraction of a second, the script merrily started eating away the hard drive … and Ricardo's livelihood.

#software #script #fail #administrator #omg #wtf #configuration

magdoz@diaspora.psyco.fr

#AnonChatGPT Sur https://anonchatgpt.com/ :

Sais-tu programmer en html css php et proposer des scripts pour une demande précise ?

En tant qu'IA, je suis spécialisé dans le langage de programmation et l'accompagnement dans diverses tâches. Je peux vous aider avec des questions, des conseils et des exemples liés à HTML, CSS et PHP. Cependant, la création de scripts spécifiques nécessite une compréhension détaillée des exigences et des spécifications de votre demande précise. Pouvez-vous me donner plus de détails sur le script que vous souhaitez développer ?

#ChatGPT #IA #AI #IntelligenceArtificielle #Programmation #Développeur #PHP #HTML #CSS #Javascript #Script

canoodle@nerdpol.ch

GNU Linux bash - notebook laptop test battery runtime script

how long (many hours) will this notebook-laptop battery last? some sensors/softwares report/calculate things like this... 5days on one charge is a very very optimistic estimate for most intel or amd based notebooks (even for RISC/ARM based notebooks-laptops that would be AWESOME, most[...]

#linux #gnu #gnulinux #opensource #administration #sysops #hardware #battery #test #script #bash #scripting #scripts

Originally posted at: https://dwaves.de/2022/07/08/gnu-linux-bash-notebook-laptop-test-battery-runtime-script/

fr1tz0@diasp.org

Gaomon PD2200 Windows Enterprise Installer

I wrote this batch because Gaomon builds / assembles very nice graphic tablets but their current driver setup is unusable by default, it installs everything into %userprofile%. It's an Inno setup and the parameters I use below change the default install path to %programfiles% and the setup type to AllUsers.

Cheers, Fritz

@ECHO OFF & CLS & COLOR 17
REM ******************************************
REM Gaomon PD2200 Windows Enterprise Installer
REM (c) Fritz R. 01.07.2022
REM ******************************************

ECHO - checking for administrative privileges
net session >nul 2>&1 || (PowerShell start -verb runas '%~0' &exit /b)

ECHO ******************************************
ECHO Gaomon PD2200 Windows Enterprise Installer
ECHO (c) Fritz R. 01.07.2022
ECHO ******************************************

ECHO - changing path to %CD%
CD %CD%
PUSHD %CD%
IF %errorlevel% NEQ 0 GOTO:ERROR

ECHO - starting Gaomon installer, please wait...
%cd%\GaomonWindowsDriver_v14.8.213.1502_HID.exe /DIR="c:\program files\Gaomon" /ALLUSERS /VERYSILENT /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /TYPE=FULL /SUPPRESSMSGBOXES
IF %errorlevel% NEQ 0 GOTO:ERROR

GOTO:DONE

:ERROR
ECHO - ERROR - INSTALLATION FAILED
ECHO - Gaomon Inno installer failed, check for errors
PAUSE
GOTO:END

:DONE
ECHO - Gaomon Inno installer finished the installation

:END
POPD
ECHO - current path is %CD%
ECHO - you can close this window now
ECHO.
PAUSE
COLOR

#batch #windows #script #gaomon #tablet #graphic

me@nerdpol.ch

muahahahaaaaa!!!

A Dream came true!

Automated Panorama Stitching from within gthumb

ghtumb_make_panorama

Story:
Since (appraently 5) Yeas i've been Dreaming about a Solution to be able to use the automatic panorama stitching technology from hugin, and my hotfolder .from within my Picture Management Software. Because it seemed to be the right place for this functionality, and usabilty/ease of use would greatly Icrease.

The Years and also my search for a #FLOSS replacement for Picasa went by and only recently i learned to use and appreciate #gthumb. it did most things Picasa did for me - just without database - and fast search etc. HOWEWER one day very recently i saw a video about Gthumb's features and was hit by exitement when i learned that it supports custom scripts - i immedeatly started to Work on it and now its time other People should Use and test it as well

gthumb_make_panorama is alive

https://github.com/paskalito/gthumb_make_panorama

I'm particulary interested if the installation method works for you - i tried to simplify it good as i could.

#share #photo #gnu #opensource #panorama #automation #panotools #stitching #photography #postprocessing #lazy #script #pano #easy #makelifeeasier #automate #linux #shell #hugin #foto #fotographieren #dreamcametrue #adreamcomestrue #lifegoals #achievement #happy

felix@pod.pc-tiede.de

For those who manage more than one #Gentoo⁠-based workstation, here's a little #script to avoid manually figuring out the list of outstanding updates every other day.

#!/bin/bash

# Check for updates

KERNELFLAVOR="" # Potentially "gentoo" or "vanilla" or any other available flavor

LOGFILE="$(mktemp -t updates_log.XXXXXXXXXX)"

emerge --sync 2>${LOGFILE} >/dev/null
if [ $? -ne 0 ]; then
    logger "Package tree synchronization has failed"
    exit 1
fi

emerge world -uDNtp --with-bdeps=y --nospinner >> ${LOGFILE}
glsa-check -t new 2>/dev/null >> ${LOGFILE}

emerge -1uq --nospinner ${KERNELFLAVOR}-sources >> ${LOGFILE}

[ $(cat ${LOGFILE} | wc -l) -gt 4 ] && \
    mail -s "Available Updates for $(hostname)" root < ${LOGFILE}
rm -f ${LOGFILE}

# End of script

If this script is run by #anacron on a daily or weekly basis, there is of course a privacy concern, as the script reports in whenever the system becomes available. However, this is reduced by the script only sending a mail if there actually are updates available.

@Rebeka Catalina

julien1001@diasp.eu

Connaissez-vous lightsOn ?

Il s’agit d’un programme (licence #GPL 2+) pour X.org qui permet d’empêcher que votre économiseur d’écran ne s’active ou que votre écran ne se mette en veille alors que vous êtes en train de regarder une vidéo en plein écran.

Un paquet #Guix peut être trouvé ici.

Je viens de le modifier légèrement afin qu’il s’applique à n’importe quelle application en plein écran. Ma version peut être trouvée ici.

Est-ce que vous connaissez une solution alternative pour le même besoin ?

#lightsOn #fullscreen #script #bash #XOrg #DPMS #screensaver #ll #foss

jeromederieux@joindiaspora.com

Un script simple pour synchroniser en USB les fichiers de votre téléphone avec rsync

Je cherchais une solution pour pouvoir synchroniser les photos de mon téléphone (android) vers mon ordi lorsque je le recharge. J'utilise Debian 9 avec un bureau Gnome 3.22.2.

Par défaut le téléphone apparait dans Nautilus lorsqu'il est branché avec l'option "Transférer les fichiers", le système monte la mémoire interne et la carte sd externe (s'il y en a une) dans le navigateur de fichier. Il est alors possible de transférer des fichiers comme avec n'importe quel support externe.

Mon problème était de gérer le transfert de mes nouvelles photos entre deux branchements sans etre obligé de les transférer manuellement. La solution la plus simple est d'utiliser rsync (a installer car non présent par défaut). La difficulté que j'ai rencontrée est qu'il faut indiquer le chemin du dossier d'origine, cad le chemin du dossier du téléphone monté dans Nautilus. D'habitude les médias externes montent dans le dossier /media avec un chemin qui est toujours le même, ici les dossiers sont montés dans /run/user/identifiant_utilisteur/gvfs/ suivi d'une adresse du style mtp://[usb:001,010]/ les deux nombres changeant à chaque branchement du téléphone ce qui ne permet pas d'avoir une adresse constante pour le périphérique.

Après quelques recherches... la solution la plus simple est d'utiliser le signe * dans le chemin, l'* va remplacer l'adresse usb entre crochet par celle qui est active au moment du branchement et ainsi le chemin sera toujours le bon.

Le voici le script pour automatiser tout ca... Bien sur remplacez les chemins des dossiers que vous voulez synchroniser par ceux qui correspondent à votre configuration... L'enregistrer sous SyncAndroid.sh et autorisez l'éxécution dans Propriétés>Permissions. Cliquez sur le fichier pour le lancer ou dans Gnome avec l'extension "Top Bar Script Executor" pour avoir un icone dans la barre du bureau.

En espérant que ce script puisse etre utile à d'autres...

#linux #gnome #rsync #android #sync #script #usb

#!/bin/bash

#Definir les variables dossier source et dossier destination 
folder_Android=/sdcard1/DCIM/Camera/
folder_Home=/home/jerome/Images/Photos_Android

#Synchro avec rsync
rsync -a  --delete-after /run/user/$UID/gvfs/mtp:*$folder_Android $folder_Home
arkoprovo1996@diasp.org

Ahoy folks,

I’m an just an #undergraduate #student of #physics, trying to set myself up to flirt with #astrophysics, with a weakness for and in #blackholes, though occassionaly ogling at her sister, #cosmology, but again pulled back to stare at #quasars through only my minds eye. Did I mention that I am #newhere? If not then, I should also mention that #instrumentation and #electronics too share alarge bit of my metaphorical heart, and I just love #interfacing; what's better, than to connect physical reality to a beast a.k.a a #computer? Well #micro-controllers? I just started using an #arduino, actually an #arduinouno ( #arduinounor3 ), currently learning programing and using it for small, if not infinitesimally small, if you can call them that is, #electronicsprojects; I will soon push myself to use an #expeyes. Yeah, #microcontrollers interest me, but, as much as do #microprocessors, #8085 being one, with which I've played a little, though only through simulations. I needn't shy away from stating that I love #programing, having some knowledge in #C, #C++, #java, a little bit of #fortran. I'm learning to #code or #script, whichever way you like, #python, rather it's newborn sibling, #python3. It's no need to say that my #operatingsystem of choice, use and love is a of course, a popular distribution of #linux, i.e. #xubuntu; #xfce is my and my PC's best bond of love, along with #bash and #zsh. I love watching #movies, especially heart-moving #warfilms, thought provoking #darkcomedies, saluted #satires, divinely appetizing #epics, #neoreals, that leave you speechless, and some more and more to come; I so love #shortfilms that I do wish to someday, #make one. Well, you may call me an amateur, but I am a #photographer, #photography, being one of my passtime passions, #astrophotography, being one of my dreams, not having been able to capture a proper one yet. I have only taken part in a few well-known #photowalks, spread through social-media.

You know, like me or not, I strongly believe in #foss, especially #fosss, being a #privacy and #security concerned person, if not a #customization freak, an embryo of a #hacker and of course a #linuxlover. If that seems a bit commonplace, well it is, then I also happen to be a fan of a #marsrover; ah! #mars or Jasoom, call it what may, it's lovely. But lovelier are the #rovers that graze on it's surface. I so wish that I had a pet #quadcopter alongside my late pet #cat. Cool is the only word I can have for #robots; ah! #robotics, what a sweet art art thou. Though a little sweeter would be #cognition, whose daughter #ai is a sweet child, I wish was mine. Can #intelligence be #artificial? Or is it just another #random #oxymoron, that a #language is filled with, that #linguistics deals with? Or maybe I'm just writing a #microtale. But then, #microtales are so lovely. Be it in #english or #bengali, rather #bangla, or #hindi or #german; though for #deutsch I still need a dictionary. At least #scrabble and #hangman are still in english for me. But yes, I just happened to fall in love with #html5 and #markdown.

dkkhorsheed@diasp.org

#Islamic #Art #IslamicCalligraphy #Sufi #Thuluth #Script #Gilded #Inscription #Horse #Chestnut #Leaf #Beauty #Turkey #Culture #History #Our #World

Natural Leaf with Calligraphy

Thuluth Script

Horse Chestnut Leaf - 20. x 8.9 cm.

9th century

Turkey

The gilded inscription within the fine net of a horse chestnut leaf says, "The best people are those who do good for other people," and reads from bottom to top. This painstaking art form preserved important cultural sayings for the Sufi sect. The technique, which involved stenciling the text and covering it with wax before laying the leaf on top, soaked in chemicals that ate away nearly everything but the vein structure, to reveal the writing. The writing was further outlined with piercing to remove still more of the leaf surface. The fineness of the leaf's filigree enhances the bold lines of the calligraphy, enhancing the stature of the words both as marks and as message.