multiples changes in tutos

This commit is contained in:
asus
2023-03-30 23:36:51 +02:00
parent a9899156ce
commit 1bb18e8779
3 changed files with 36 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
#hugogogo#
#PS1="%(?:%{%}➜ :%{%}➜ ) %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)"
PS1='%(?:%{%}➜ :%{%}➜ ) %{$fg[cyan]%}%test%{$reset_color%} $(git_prompt_info)'

View File

@@ -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/<name>.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

View File

@@ -33,6 +33,7 @@
**:Explore / :ex<tab>** navigate through directory, rename, and plus
**:Lexplore / :Lex<tab>** 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