- Créer un dossier n’importe où
- renommer en : GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
- entrée.
Category Archives: Uncategorized
IP HOST
WIFI QRCODE
BASH rm trop de fichiers
#Exemple:
#Enlève, delete tous les csv du répertoire quand rm *.csv renvoi un message trop de fichiers
# Argument list too long
perl -e 'for(</home/morepertoire/*.csv>){unlink}'
RASPBERRY PI clavier virtuel
sudo apt install florence -y sudo apt install at-spi2-core -y
ELECTRONIQUE Fournisseurs
- https://eu.mouser.com Composants
- https://fr.rs-online.com/web/ Composants
- https://www.conrad.fr/ Composants
- https://www.gotronic.fr/ Composants
- https://fr.farnell.com/ Composants
- https://www.adafruit.com/explore Modules et kits trés techniques
- https://aiyprojects.withgoogle.com/vision Kit intelligence artificielle
- https://www.electan.com/index-en.php Arduino Raspberry
- https://www.reichelt.com/fr/fr/?r=1
- https://www.pcbway.com/ PCB
- https://www.digikey.fr/
Licences accès distant prolonger période essais
cmd -> regedit
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
clique droit autorisations -> propriétaire -> administrateur (root)
Supprimer la clef L$RTM…
reboot
MYSQL CHANGE PASSWORD
/etc/init.d/mysql stop
/usr/sbin/mysqld --skip-grant-tables
mysql> FLUSH PRIVILEGES;
mysql> SET PASSWORD FOR root@'localhost' = PASSWORD('votre_nouveau_mot_de_passe');
mysql> FLUSH PRIVILEGES;
mysql> exit
/etc/init.d/mysql start
// création user grant all CREATE USER [IF NOT EXISTS] 'monadmin'@'%' IDENTIFIED BY 'monpass'; GRANT ALL ON *.* TO 'monadmin'@'%';
TUNNEL SSH
ssh-keygen -t rsa -b 4096 // création clef ssh ( si pas déjà fait) ssh user@dev.monserveur.com <-password // première connexion serveur relais manuelle ssh-copy-id root@ monserveur.com // copie clef dans sshd_config ajouter : GatewayPorts yes /etc/init.d/ssh restart //(debian) ssh -R 4444:localhost:80 user@dev.monserveur.com en se connectant sur dev.monserveur.com:4444 c'est localhost:80 qui répond. autossh -M 0 -q -f -N -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -R 4444:localhost:80 user@dev.monserveur.com même chose mais en tache de fond avec reconnexion automatique Lancement au boot ajouter un fichier /etc/systemd/system/autossh-tunnel.service [Unit] Description=AutoSSH tunnel service local 80 port 4444 dev.monserveur.mobi After=network.target [Service] Environment="AUTOSSH_GATETIME=0" ExecStart=/usr/bin/autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -NR 4444:localhost:80 root@dev.monserveur.mobi Restart=always User=pi [Install] WantedBy=multi-user.target puis: sudo systemctl start autossh-tunnel.service sudo systemctl stop autossh-tunnel.service sudo systemctl enable autossh-tunnel.service pour démarrage auto
NEXTCLOUD pb update
Dans le .htaccess mettre en commentaires les lignes :
<IfModule mod_php5.c>
# php_value upload_max_filesize 511M
# php_value post_max_size 511M
# php_value memory_limit 512M
# php_value mbstring.func_overload 0
# php_value always_populate_raw_post_data -1
# php_value default_charset 'UTF-8'
# php_value output_buffering 0
<IfModule mod_env.c>
SetEnv htaccessWorking true
</IfModule>
</IfModule>
<IfModule mod_php7.c>
# php_value upload_max_filesize 511M
# php_value post_max_size 511M
# php_value memory_limit 512M
# php_value mbstring.func_overload 0
# php_value default_charset 'UTF-8'
# php_value output_buffering 0
<IfModule mod_env.c>
SetEnv htaccessWorking true
</IfModule>
</IfModule>
<IfModule mod_dir.c>
# DirectoryIndex index.php index.html
</IfModule>
AddDefaultCharset utf-8
# Options -Indexes
Dans quelques cas, ajouer au my.cnf ou mariadb.conf.d/50-server.cnf (erreurs oc_addressbooks)
innodb_large_prefix=on
innodb_file_format=barracuda
innodb_file_per_table=true