A Complete Guide on How To Use Bash Arrays
▻https://www.shell-tips.com/bash/arrays
Sed par l’exemple : devenez expert de la commande Linux sed – Buzut
▻https://buzut.net/apprendre-commande-sed-linux
utiliser la commande sed : des exemples concrets expliqués.
Voir aussi :
– mémo rapide de toutes les astuces d’écritures de sed : ▻https://www.commentcamarche.net/faq/6699-sed-trucs-et-astuces
– le fonctionnement détaillé de sed et en particlier de toutes les commandes : ▻https://www.commentcamarche.net/faq/9536-sed-introduction-a-sed-part-i
TabFS
▻https://omar.website/tabfs
TabFS is a browser extension that mounts your browser tabs as a filesystem on your computer.
[...]
Each of your open tabs is mapped to a folder.
The files inside a tab’s folder directly reflect (and can control) the state of that tab in your browser.
Example: the url.txt, text.txt, and title.txt files inside a tab’s folder, which tell me those live properties for that tab
This gives you a ton of power, because now you can apply all the existing tools on your computer that already know how to deal with files — terminal commands, scripting languages, point-and-click explorers, etc — and use them to control and communicate with your browser.
Now you don’t need to code up a browser extension from scratch every time you want to do anything. You can write a script that talks to your browser in, like, a melange of Python and bash, and you can save it as a single ordinary file that you can run whenever, and it’s no different from scripting any other part of your computer.
]]>Démarrer rapidement et facilement un projet avec un script
Et si vous aviez un #script pour faire le boulot ? Un script qui pourrait vous générer un projet prêt à démarrer, et ce en quelques instants, avec uniquement des interventions de votre part au début pour répondre à des questions basiques ?
▻https://darklg.me/demarrer-rapidement-et-facilement-un-projet-avec-un-script
Mes 1ers tests par ici avec mon boilerplate #SPIP : ▻https://gitlab.com/jmoupah/zcm-installer
Couplé à #SPIP-CLI / #Checkout, ça commence à causer :)
SPIP-CLI : ►https://contrib.spip.net/SPIP-Cli
Checkout : ▻https://git.spip.net/spip-contrib-outils/checkout
#git #developpement #bash #outil
]]>WebSVN – Zone – Révision 118024 – /outils/checkout.php
▻https://websvn.spip.net/filedetails.php?repname=Zone&path=%2F_outils_%2Fcheckout.php
Script d’installation ou mise à jour d’un SPIP en ligne de commande qui permet de faire des checkout/up indifféremment en git/svn/ftp, + une méthode « spip » .
La commande :checkout.php spip
permet de récupérer un SPIP et ses externals en git
Pour les dev, on peut spécifier qu’on veut cloner en git (pour pouvoir pusher dessus ensuite) :checkout.php spip git@git.spip.net
On peut checkout une branche de SPIP autre que master :checkout.php spip -bspip3.2
Et pour faire la mise à jour (stash/pull —rebase/stash) sur tous les repos, il suffit de relancer la commande
Le repo original : ▻https://git.nursit.net/snippets/15
]]>checkout.php dans spip-zone/outils. – SPIP-ZONE
https://zone.spip.net/trac/spip-zone/browser/spip-zone/_outils_/checkout.php?rev=118024
Un script de checkout multifonction, documente, qui permet de checkout SPIP (core+externals) en prime
]]>How to Start your own #bitcoin #exchange Business with Money-Spinning Strategies?
▻https://hackernoon.com/how-to-start-your-own-bitcoin-exchange-business-with-money-spinning-stra
Cryptocurrencies have been the hot talk of the town. Blockchain has been certainly the most crucial technology for the trader’s out there. Popular cryptocurrencies such as Bitcoins, Altcoins are experiencing great emendations to keep ahead of the competition.So if you are an investor who is ready to kick-start the Bitcoin Exchange Business, the next 7 minutes will give you a complete guide on them!How much does a website cost per month?If your query is to start your own website, then it can also be certainly done! Before we discuss the cost for the website, let us primarily know the steps involved to start a Bitcoin Exchange website!There are totally ten steps which will ensure a high-quality business! If your query is How much does it cost to develop a Bitcoin Exchange website, you will (...)
]]>How to quickly get the dates for the first 10 Mondays using #ruby
▻https://hackernoon.com/how-to-quickly-get-the-dates-for-the-first-10-mondays-using-ruby-ce90669
If you are sometimes feeling bored and want to entertain yourself, then rather than aimlessly scrolling in a social media, you can try to learn something new. For example, you can learn something that you have not known that you can do with Ruby: Getting the dates for next Mondays, Tuesdays or any other day of the week.Here is how you do it:▻https://medium.com/media/9302ec923c0527390247b753e813cfd0/hrefAfter you execute it, you will see the list of the dates:We can replace the part monday with any other name of the days of the week in English and it will work fine.I know that this may look like something that may not be that much benefit, but maybe, you could use it in a personal #script that you have. In a better case, I hope this inspires you to explore more in the documentation of a (...)
]]>#python Generators Explained ! (Sort of)
▻https://hackernoon.com/python-generators-35ac68334882?source=rss----3a8144eabfe3---4
Learn python generators by example.GENERATORSAs IteratorsUsing generators (generator functions)>>> def integers(): i = 1 while True: yield i i = i + 1>>> a = integers()>>> next(a)1>>> next(a)2>>> next(a)3>>> next(a)4>>> next(a)5>>>Assigning a #generator to a varialble will automatically create ._next_() or next(generator) methodThis will allow you to iterate through the generator valuesConverting to list>>> def yrange(n): i = 0 while i < n: yield i i += 1>>> y = yrange(5)>>> list(y)[0, 1, 2, 3, 4]>>> list(y)[]You can convert a generator to a list however on the process it will lose its value and transfer it to the list.>> y = (...)
]]>La commande sed - ▻https://www.commentcamarche.com/faq/9536-sed-introduction-a-sed-part-i
Les bases de sed.
Voir aussi :
– ▻http://anaturb.net/sed.htm comme aide-mémoire
– ►https://www.grymoire.com/Unix/Sed.html : ultra-complet pour le détail des options, commandes et flags
Linux Shell Scripting Tutorial - A Beginner’s handbook
▻https://bash.cyberciti.biz/guide/Main_Page
Guide de base pour l’utilisation de bash et l’écriture de scripts shell : simple et bien organisé
]]>Guide avancé d’écriture des scripts Bash
▻https://abs.traduc.org/abs-fr
Guide avancé d’écriture des scripts Bash : Une exploration en profondeur de l’art de la programmation shell
avec (entre autre) plein d’exemples d’utilitaires et d’astuces
]]>Poor coding limits IS hackers’ cyber-capabilities
▻http://www.bbc.com/news/technology-41385619
All the tools had problems, he said.
. the group’s malware was full of basic bugs
. a secure email system it developed leaked information about users
. the UCC’s web attack tool failed to take down any significant target
In addition, attempts to raise cash via donations of bitcoins have been diluted by fraudsters cashing in on the IS name and producing websites mimicking the appeals for funds.
Four Lions was a documentary.
#hacking #scriptKiddies #amateurHour
via ▻https://crypto.quebec/les-chiens-de-garde-66-les-dangers-de-la-consultation-psychologique-en-li
]]>How to defend your website with ZIP bombs
▻https://blog.haschek.at/post/f2fda
So it turns out #ZIP compression is really good with repetitive data so if you have a really huge text file which consists of repetitive data like all zeroes, it will compress it really good. Like REALLY good.
As 42.zip shows us it can compress a 4.5 peta byte (4.500.000 giga bytes) file down to 42 kilo bytes. When you try to actually look at the content (extract or decompress it) then you’ll most likely run out of disk space or RAM.
Sadly, web browsers don’t understand ZIP, but they do understand GZIP.
So firstly we’ll have to create the 10 giga byte GZIP file filled with zeroes. We could make multiple compressions but let’s keep it simple for now.
]]>Getting Started with Headless Chrome
▻https://developers.google.com/web/updates/2017/04/headless-chrome
#Chrome #Chromium #script #screenshots
Using headless Chrome as an automated screenshot tool
▻https://medium.com/@dschnr/using-headless-chrome-as-an-automated-screenshot-tool-4b07dffba79a
Documentation generator for shell scripts (bash, sh, zsh) ▻https://github.com/reconquest/shdoc
]]>Shell Scripts Matter
▻https://dev.to/thiht/shell-scripts-matter
The weird thing about #shell #scripts is that even strong advocates of good practices gladly forget all they know when it comes to shell scripting.
(bon le titre est un peu idiot mais bonnes pratiques pour qui prend au sérieux le développement des scripts) #bash #programmer
]]>Combien coûte un service tiers gratuit ? | BrainCracking - HTML5, Performances Web et les technos du Web, par Jean-pierre VINCENT
►http://braincracking.org/2016/12/21/combien-coute-un-service-tiers-gratuit
Analyse détaillée des pertes de performances (et parfois d’audience) liées à l’intégration de scripts tiers dans les pages web d’un site (Analytics, tracking, boutons de partage, réseaux sociaux, Tests A/B, widgets divers : cartes, commentaires, chats…).
Propose des outils et méthodes pour minimiser leur impact.
La carte des chaînes d’appels de prestataires externes du site du Monde est édifiante... :
#PowerShell : désactiver les clés #USB des machines d’un domaine
▻http://www.dsfc.net/developpement/scripting/powershell-desactiver-cles-usb-machines-domaine
PowerShell vous permet très facilement d’agir à distance sur l’ensemble des ordinateurs de votre parc.
#Scripting #Active_Directory #Base_de_registre #Formateur_Powershell #USBStor
]]>#PowerShell sur Linux : un branlage de dindons signé Microsoft !
▻http://www.dsfc.net/developpement/scripting/powershell-linux-branlage-dindons-microsoft
Combien d’ingénieurs au juste travaillent réellement sur le portage du PowerShell et accessoirement du framework .Net sur Linux ?
]]>Une histoire de pdf - Le Blog de Cyrille BORNE
▻https://cyrille-borne.com/article2178/une-histoire-de-pdf
Pour #réduire_la_taille_d_un_fichier_pdf, une ligne de commande :
gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/paramètre -sOUTPUTFILE=output.pdf -f input.pdf
Le paramètre qui va bien va dans l’ordre de compression de la qualité la plus pourrie à la meilleure : screen, #ebook, printer.
]]>Compiler le #PowerShell
▻http://www.dsfc.net/developpement/scripting/compiler-le-powershell
En fait, il s’agit plutôt de traduire le code du script PowerShell en Bytecode.
]]>Le #PowerShell n’est pas fait pour ça !
▻http://www.dsfc.net/developpement/scripting/le-powershell-n-est-pas-fait-pour-ca
Il n’y a pas besoin d’être énarque pour transformer faire pousser de la laitue dans le Sahara !
#Scripting #Formateur_Powershell #Formation_PowerShell #WPF #XAML
]]>#libreoffice Headless with #systemd
▻https://etienne.depar.is/a-ecrit/post/2016/03/23/LibreOffice-Headless-with-systemd
I’ve fought a very annoying bug recently and think it’s worth sharing it here. At work we manage different type of user provided documents. For various reason we convert it to pdf. This step is achieved using a headless libreoffice installation. Our server run Debian GNU/Linux Wheezy and everything go smoothly. Until... one of our client need our software to be hosted on his own servers, running CentOS. Nothing bad here, but it leads us to develop various systemd service files for our systems as recent versions of CentOS switched to systemd. Here come the bug. We were used to run libreoffice as follow, embed in an init.d #script: 1: soffice -headless -accept="socket,host=127.0.0.1,port=8101;urp;" -display :5.0 -nofirststartwizard & > /var/log/soffice.log 2>&1 Moving on systemd (...)
]]>Analyse des mails de rapport DMARC
▻https://etienne.depar.is/a-ecrit/post/2016/04/04/Analyse-des-mails-de-rapport-DMARC
Dans le cadre de la mise en place de DMARC sur un serveur mail donné, les prestataires externes s’appuyant sur la vérification des champs DMARC pour filtrer les emails entrant sont tenus de vous envoyer un #email récapitulatif des actions entreprises chaque jour où ils ont reçu des mails du serveur en question à minuit. J’ai découvert un petit #script permettant de vérifier l’état de ces remontées d’information. Installation Ce script requiert #offlineimap (dispo en paquet debian ou AUR) mpack (idem) ce script go
#configuration Utiliser la configuration suivante pour offlineimap (ça va récupérer tous les mails de la boîte observée, mais on s’occupera de fine-tuner ça plus tard). 1 : $ cat ~/.offlineimaprc 2 : [Account MonCompte] 3 : localrepository = Local_MonCompte 4 : remoterepository = MonCompte 5 : (...)
]]>#anti-adblock-killer
▻https://github.com/reek/anti-adblock-killer
Anti-Adblock Killer: helps you keep your Ad-Blocker active, when you visit a website and it asks you to disable. Composed of a user #script «AakScript» written in #javascript and a filter list «AakList» using the same syntax as lists #adblock and AdBlock Plus, the two are complementary and unlock different website.
]]>Quiz sexuel : ces personnages de séries ont-ils consenti ? - Rue89 - L’Obs
▻http://rue89.nouvelobs.com/rue69/2016/03/25/quiz-sexuel-personnages-series-ont-ils-consenti-263568
Un petit quizz sur le consentement avec des séries télé.(Permalink)
]]>Convert from #innodb to #myisam
▻https://easyengine.io/tutorials/mysql/innodb-to-myisam
Générer un fichier de commande sql pour faire la #conversion des tables d’une base de InnoDB vers MyIsam.
]]>De biens drôles de questions sur le #PowerShell !
▻http://www.dsfc.net/developpement/scripting/de-biens-droles-de-questions-sur-le-powershell
L’une des questions posées par mon interlocuteur monégasque m’interroge sur la manière dont le PowerShell est présenté dans certains centres de formation parisiens.
]]>Ressources #VbScript
▻http://www.dsfc.net/developpement/scripting/ressources-vbscript
Ces quelques ressources vont permettront de mettre à jour et d’améliorer vos scripts écrits en VbScript.
#Scripting #Formateur_Powershell #Formateur_VbScript #Formation_PowerShell #Formation_VbScript #PowerShell #Support_VbScript
]]>La liste des logiciels installés sous Windows en #PowerShell
▻http://www.dsfc.net/developpement/scripting/powershell-la-liste-des-logiciels-installes-sous-windows
Un script en PowerShell qui fournit la liste des logiciels installés sur un système Windows !
]]>Support de cours – Tutorial #PowerShell 4.0
▻http://www.dsfc.net/formations/scripting-formations/support-de-cours-tutorial-powershell
PowerShell 4.0 est disponible nativement sur les systèmes Windows 8.1 / Server 2012 R2 et supérieurs. Il exige le framework .Net 4.5. Ce support que je mets à votre disposition vous permettra, je l’espère, d’apprendre le #PowerShell_4.0.
#Scripting #ADSI #Formateur_Powershell #Formateur_PowerShell_4.0 #Windows_Management_Instrumentation #Windows_PowerShell #Windows_Scripting_Host #WMI
]]>#Formation_PowerShell
▻http://www.dsfc.net/formations/scripting-formations/formation-powershell
Nous vous proposons un cursus de formation de 4 jours pour apprendre #PowerShell 3.0, la technologie de #Scripting présente sur à partir des systèmes Windows 7 et Windows Server 2008 !
#Formateur_Powershell #Formateur_PowerShell_4.0 #Formation_Powershell_4.0 #PowerShell_4.0 #Windows_10 #Windows_8.1 #Windows_Server_2012_R2
]]>Editeurs et IDE gratuits pour #PowerShell
▻http://www.dsfc.net/developpement/scripting/editeurs-ide-gratuits-powershell
Parmi les éditeurs et IDE PowerShell gratuits, c’est Idera PowerShell Plus Professional Edition qui apparaît, de loin, l’outil le plus intéressant.
#Scripting #Editeur_PowerShell #Formateur_Powershell #Formateur_PowerShell_4.0 #Formation_PowerShell #Formation_Powershell_4.0 #PowerShell_4.0 #PowerShell_Editor #PowerShell_IDE
]]>Ressources #PowerShell 4.0
▻http://www.dsfc.net/developpement/scripting/ressources-powershell
PowerShell est de plus en plus utilisé par les techniciens et les administrateurs Système et Réseau qui travaillent sur des environnements #Windows.
#Scripting #Formateur_Powershell #Formation_PowerShell #Formation_Powershell_4.0 #PowerShell_4.0 #Scripting_Windows #Windows_8.1 #Windows_Scripting #Windows_Server_2012_R2 #WMF_4.0
]]>Ecole : L’écriture liée fait de la résistance à Genève - News Genève : Actu genevoise - tdg.ch
▻http://www.tdg.ch/geneve/actu-genevoise/L-ecriture-liee-fait-de-la-resistance-a-Geneve/story/15738676
Je débarque, j’ignorais que l’#écriture_cursive n’était plus enseignée dans certains pays
Certains ont tranché. Les Etats-Unis et la Finlande ont abandonné l’écriture liée – mais pas le #script – au profit de la #dactylographie. La Suisse n’en est pas encore là. Mais des cantons alémaniques, dont Zurich récemment, ont adopté une nouvelle écriture en attaché, simplifiée et exempte de fioritures. Où en sont les réflexions à Genève ?
...
Dans les années 30, l’écriture script domine, elle est généralisée au primaire. En 1949, l’écriture liée est introduite à titre d’essai dans les deux derniers degrés du primaire. « Un député avait interpellé le DIP sur le script, auquel on reprochait notamment sa lenteur, raconte Chantal Renevey Fry, archiviste du #DIP. Cela avait pour conséquence que les élèves, lorsqu’ils commençaient à prendre des notes dans les écoles secondaires, se fabriquaient une écriture personnelle déformée et pas vraiment lisible… Le DIP avait reconnu que le script, parfait pour les premiers apprentissages, devait être adapté dans les derniers degrés du primaire. »
Un article de 2013
Aux Etats-Unis, l’écriture sur la touche
►http://www.liberation.fr/planete/2013/09/24/etats-unis-l-ecriture-sur-la-touche_934379
Les belles lettres rondes et attachées qu’on enseigne en France dès la maternelle sont en voie de disparition aux Etats-Unis, et avec elles, peut-être, toutes formes d’écriture manuscrite. Les nouveaux « programmes communs » adoptés par 45 des 50 Etats américains ne prévoient plus l’enseignement de l’écriture cursive, mais plutôt la maîtrise du clavier d’ordinateur. Au début du XXe siècle déjà, les Etats-Unis étaient passés au script, un type d’écriture à la main qui s’inspire des caractères d’imprimerie, jugés plus faciles à tracer. L’apprentissage du cursif a perdu, mais à titre secondaire - il est brièvement enseigné en troisième classe de primaire, vers 8-9 ans. Voilà que ce dernier disparaît de l’horizon, tandis que le soin apporté au script est en déclin. Est-ce la fin de l’écriture manuelle au profit du clavier ?
...
« La maîtrise de la #calligraphie semble avoir un effet vraiment sans équivalent sur le développement de l’enfant », observe cette pédagogue, assurant que les facteurs extérieurs, notamment le milieu social dans lequel grandissent les enfants, n’y changent rien. Elle-même a observé ce principe de causalité sur ses propres jumelles : l’une écrivait beaucoup mieux que l’autre à l’âge de 4 ans et récolte aujourd’hui les A en troisième classe (CE2), tandis que sa sœur est plutôt abonnée aux B.
]]>Liste de mots du #français
▻http://www.pallier.org/ressources/dicofr/dicofr.html
Lien vers la liste des mots du français (+ de 330 000 termes) généré à partir du #dictionnaire libre Français-Gutenberg + la procédure pour générer cette liste avec un système linux.
]]>L’art du script pousser au maximum, ou le fait d’être un génie.
]]>ShellCheck – #shell #script analyzer
▻http://www.shellcheck.net
automatically detects problems with sh/bash scripts and commands Tags: shell script #test #clevermarks
]]>Ressources | #octopuce
▻https://www.octopuce.fr/categorie/ressources
plein de #scripts et tutos pour l’admin de serveurs web sous debian
]]>