128 private links
Setp 1: On terminal
diskutil list
identifying usb drive in terminal
The name of the USB drive should be something like /dev/disk0, ./dev/disk1, /dev/disk2.
Step 2: Identify your disk name and unmount it with the following command:
diskutil unmountDisk /dev/disk2
Step 3: Next, type in and enter the following command that will start to burn your ISO to USB:
sudo dd if=/path/to/win-iso-file of=/dev/disk2 bs=1m
Step 4: You may need to wait 10-15 minutes to an hour to let Mac burn iOS to USB. Afterward, enter this command to eject your volume successfully:
diskutil eject /dev/disk2
Des problèmes de Floating point float & double.
Très intéressant.
Editeur en ligne pour les float <=> int en bit à bit.
Très bien pour faire des schémas, à partir d'un déclaration.
Quand on a une ancienne release de Ubuntu, qu'on veut faire un "apt update" ou "apt install", mais qui n'est plus reconnue.
C'est nul en terme de sécurité mais lorsqu'on a une machine en interne, on n'a pas le choix.
Err + Ign lors d'un "apt update"
""""
$ sudo sed -i -r 's/([a-z]{2}.)?archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
$ sudo sed -i -r 's/security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
"""
Toutes les commandes spéciales pour Doxygen.
Petite astuce en langage C pour afficher un nombre de caractères précis dans un printf.
// Only 5 characters printed. When using %.s, add a value before your string variable to specify the length.
printf("Here are the first 5 characters: %.s\n", 5, mystr); //5 here refers to # of characters
Cela évite un "snprintf".
Peut-être y a--t-il encore mieux ?
Très bons conseils pour Firefox.
Extrait :
"""
dom.event.clipboardevents.enabled à false (dans la page aboug:config)
dom.event.contextmenu.enabled=false : Interdit le blocage du click-droit
dom.event.dragexit.enabled=false : Interdit de déclancher des popup/popin lorsque votre souris sort du site
"""
Comment travailler avec python et Excel !
Tout pour unitest en python.
assertEqual
assertTrue
assertGreater
asserLess
assertIsNone
assertIsInstance
assertIn
assertNotIn
Oh que c'est bien !
Merci beaucoup.
J'ai déjà eu ce sentiment : "Le choc est d’autant plus grand quand nous devons utiliser l’ordinateur de quelqu’un d’autre."
Merci encore Framablog pour ce billet résumé.
Site qui permet de contruire sa propre ligne de commande pour 7z (7zip).
Exemple :
7za a -t7z -mx0 -mhe -pPASSWORD final.7z source/
--> STORE ONLY + protection par password + cryptage des noms de fichier
Je ne m'en souviens jamais...
du -sh -- * | sort -h
Extrait:
"""
Caffeinate can prevent sleep for a certain length of time, measured in seconds. The following command prevents the Mac from sleeping for one hour - 60 x 60 seconds.
caffeinate -t 3600
Here is a command that prevents anything from sleeping for one hour:
caffeinate -dismu -t 3600
d = Prevent the display from sleeping
i = Prevent the system from idle sleeping
s = Prevent the system from sleeping on mains power
m = Prevent hard disks from sleeping
u = Says the user is active
"""
Feuille très intéressante.
Snippets (bouts de code) en PHP.
À étudier plus tard...
-force_key_frames
Comment inverser des lignes sous vim ?
:g/^/m0
: start command-line mode.
g means you'll take an action on any lines where a regular expression matches
/ begins the regular expression (could have used any valid delimiter)
^ matches the start of a line (which matches all lines in the buffer)
the second / ends the regular expression; the rest is an Ex command to execute on all matched lines (i.e. all lines in buffer)
m means move (:help :move)
0 is the destination line (beginning of buffer)
PB "lftp Erreur fatale: Certificate verification: Not trusted"
SOLUTION 1) no certificate check
echo "set ssl:verify-certificate no" >> ~/.lftp/rc
will solve the problem if you dont want the certificate to be checked
SOLUTION 2) The secure solution with certificate is
What worked for me step by step with lftp:
get certificate of host with openssl s_client -connect <ftp_hostname>:21 -starttls ftp, at the begining of result I got something like -----BEGIN CERTIFICATE-----
MIIEQzCCAyu.....XjMO
-----END CERTIFICATE-----
copy that -----BEGIN CERTIFICATE-----
MIIEQzCCAyu.....XjMO
-----END CERTIFICATE----- into /etc/ssl/certs/ca-certificates.crt
Into lftp configuration reference this certificate file adding to /etc/lftp.conf for systemwide set ssl:ca-file "/etc/ssl/certs/ca-certificates.crt"
and then do your sync or whatever with lftp, on my case it is lftp -u "${FTP_USER},${FTP_PWD}" ${FTP_HOST} -e "set net:timeout 10;mirror ${EXCLUDES} -R ${LOCAL_SOURCE_PATH} ${REMOTE_DEST_PATH} ; quit"