From 1bb18e8779a1b3395c8b32241d84c803b5f6b8b4 Mon Sep 17 00:00:00 2001 From: asus Date: Thu, 30 Mar 2023 23:36:51 +0200 Subject: [PATCH] multiples changes in tutos --- config_files/.zshrc | 2 ++ tutos/computer.txt | 33 +++++++++++++++++++++++++++++++++ tutos/vim.txt | 1 + 3 files changed, 36 insertions(+) diff --git a/config_files/.zshrc b/config_files/.zshrc index a9dd7e4..777e177 100644 --- a/config_files/.zshrc +++ b/config_files/.zshrc @@ -1,6 +1,8 @@ #hugogogo# +#PS1="%(?:%{%}➜ :%{%}➜ ) %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)" +PS1='%(?:%{%}➜ :%{%}➜ ) %{$fg[cyan]%}%test%{$reset_color%} $(git_prompt_info)' diff --git a/tutos/computer.txt b/tutos/computer.txt index 1c4f98f..1b3efa7 100644 --- a/tutos/computer.txt +++ b/tutos/computer.txt @@ -14,6 +14,14 @@ **sftp -P XXXX username@ssh.server.domain** se connecter a un server ssh avec le protocol ftp **vim scp://username@ssh.server.domain:XXXX//home/path/to/file** edit a remote file from local vim +**having multiples audio in the same time** + https://askubuntu.com/questions/78174/play-sound-through-two-or-more-outputs-devices + - launch paprefs (pulse audio preferences) + - choose 'add virtual output' in 'simultaneous output' + - restart pulsaudio for the changes to take effect : **pulseaudio -k** + - launch pavucontrol (pulse audio volume controle) + - choose the simultaneous output (this will also enable the computer speakers, so you might want to put them at 0) + **pdftotext** transforme un pdf en un fichier texte **^** designe le debut d'une ligne * n'importe quel caractere autant de fois que possible @@ -70,6 +78,24 @@ find | sort | grep -ve "node_modules/" -e ".git/" | sed 's#[^/]*/#|__ #g;s#__ |# **applications :** **ln -s /path/to/executable /usr/bin** add /usr/share/applications/.desktop as explained above for appimages + **maybe, example with firefox :** + Download Firefox + Got to the Download folder in your terminal: + **cd ~/Downloads** + Extract the archive: + **tar xjf firefox-*.tar.bz2** + Move the Firefox files to /opt: + **mv firefox /opt** + Create a symlink to the Firefox binary: + **ln -s /opt/firefox/firefox /usr/local/bin/firefox** + Download a desktop file: + **wget https://raw.githubusercontent.com/mozilla/sumo-kb/main/install-firefox-linux/firefox.desktop -P /usr/local/share/applications** + Remove the snap version of Firefox: + **sudo snap remove firefox** + Launch the new Firefox by running this command in a terminal: + **/usr/local/bin/firefox** + Go to Dock -> right click on Firefox -> Add to Favorites -> Move it to the top + **firefox extension source code :** **right click on install** and select "copy link" @@ -112,6 +138,13 @@ find | sort | grep -ve "node_modules/" -e ".git/" | sed 's#[^/]*/#|__ #g;s#__ |# ssh hugugtzx@world-370.fr.planethoster.net -p 5022 **to enable vi :** `export TERM=xterm` **locked files on nextcloud :** https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883 + **vi nextcloud.hugulumu.fr/nextcloud/config/config.php** : change maintenance mode to true + **mysql -u hugugtzx -p** + **(SHOW DATABASES;)** + **USE hugugtzx_next645;** + **(SHOW TABLES;)** + **DELETE FROM oc_file_locks WHERE 1;** + **vi nextcloud.hugulumu.fr/nextcloud/config/config.php** : change maintenance mode back to false **youtube-dl for france.tv :** https://github.com/ytdl-org/youtube-dl/issues/29956#issuecomment-1013345689 diff --git a/tutos/vim.txt b/tutos/vim.txt index 0d7d81d..20c59ba 100644 --- a/tutos/vim.txt +++ b/tutos/vim.txt @@ -33,6 +33,7 @@ **:Explore / :ex** navigate through directory, rename, and plus **:Lexplore / :Lex** buffer directory open in left split window **:Lexplore 30** Explore window is of size 30 + **:vertical resize 40** **search through files :** **:vim** the one function that gets to be name as the software ;) performes a kind of grep search on a list of files