4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
search: tag:file — newest first
  • Get the name of the current file | Vim Tips Wiki | Fandom

    :echo @% def/my.txt directory/name of file (relative to the current working directory of /abc)
    :echo expand('%:t') my.txt name of file ('tail')
    :echo expand('%:p') /abc/def/my.txt full path
    :echo expand('%:p:h') /abc/def directory containing file ('head')
    :echo expand('%:p:h:t') def First get the full path with :p (/abc/def/my.txt), then get the head of that with :h (/abc/def), then get the tail of that with :t (def)
    :echo expand('%:r') def/my name of file less one extension ('root')
    :echo expand('%:e') txt name of file's extension ('extension')

    October 25, 2021 - permalink - https://vim.fandom.com/wiki/Get_the_name_of_the_current_file
    echo file vim
  • Wormhole - Simple, private file sharing
    April 21, 2021 - permalink - https://wormhole.app/
    file share
  • git - How to amend the last commit to un-add a file? - Super User

    Pour enlever des fichiers d'un commit lors d'un rebase interactif : utiliser le keyword 'edit'
    Ensuite git reset HEAD^ path/to/file/to/revert
    Ensuite git commit --amend
    Ensuite git rebase --continue

    November 5, 2019 - permalink - https://superuser.com/questions/229290/how-to-amend-the-last-commit-to-un-add-a-file
    file git rebase remove
  • Note: fake file

    fallocate -l 10G fake.img

    July 25, 2018 - permalink - https://links.infomee.fr/shaare/IfsqkA
    fake file
  • Goploader
    June 5, 2018 - permalink - https://docs.gpldr.in/
    auto file share sharing
  • File format | Vim Tips Wiki | Fandom powered by Wikia
    December 29, 2016 - permalink - http://vim.wikia.com/wiki/File_format
    CR CRLF LF convert file format git vim
  • Edit a file in-place in vim - Stack Overflow

    Comment perdre 30 min

    :set backupcopy=yes

    When you want to modify a file, you have two options, each with its benefits and drawbacks.

    You can overwrite the file in place. This does not use any extra space, and conserves the hard links, permissions and any other attribute beyond the content of the existing file. The major drawback of doing this is that if anything happens while the file is being written (the application crashes, or the power goes out), you end up with a partially written file.
    You can write the new version of the file to a new file with a different name, then move it into place. This uses more space and breaks hard links, and if you have write permissions on a file but not on the directory it contains, you can't do it at all. On the flip side, the old version of the file is atomically replaced by the new version, so at every point in time the file name points to a valid, complete version of the file.
    

    http://vimdoc.sourceforge.net/htmldoc/options.html#%27backup%27

    November 23, 2016 - permalink - http://stackoverflow.com/questions/11043534/edit-a-file-in-place-in-vim
    docker file mount vim
  • Un nouveau logiciel libre : Lufi - LinuxFr.org
    October 7, 2015 - permalink - http://linuxfr.org/news/un-nouveau-logiciel-libre-lufi
    auto drop fichier file framasoft
  • git diff - Show all changed files between two Git commits - Stack Overflow

    Je prends de plus en plus le réflexe de "git init" dans certains dossiers un peu chaud qui bougent beaucoup comme des dossiers de configuration..

    Et là arrive le moment où je me pose la question : qu'est ce que j'ai touché depuis que j'ai fais mon git ini ? Et voilà la commande magique qui répond à ma question :

    git diff --name-only SHA1 SHA2

    Après si vous voulez la liste entre le premier et le dernier commit :
    git diff --name-only HEAD $(git log --format=%H | tail -1)

    November 5, 2014 - permalink - http://stackoverflow.com/questions/1552340/show-all-changed-files-between-two-git-commits
    diff file git list
  • Command-line and web file sharing - transfer.sh
    September 30, 2014 - permalink - https://transfer.sh/
    file files share transfer
  • A Unix Utility You Should Know About: lsof - good coders code, great reuse

    Exemples d'utilisation de lsof

    February 7, 2014 - permalink - http://www.catonmat.net/blog/unix-utilities-lsof/
    file linux lsof socket
  • Déployer en utilisant bitorrent

    ça peut être utile..
    + une autre solution plus légère : https://github.com/russss/Herd

    via Skunnyk

    January 28, 2014 - permalink - https://blog.twitter.com/2010/murder-fast-datacenter-code-deploys-using-bittorrent
    deploy file torrent
  • Empêcher la suppression d’un fichier ou d’un répertoire - Tux-planet
    December 7, 2013 - permalink - http://www.tux-planet.fr/empecher-la-suppression-dun-fichier-ou-dun-repertoire/
    chatter ext file permission right
  • Ncdu Manual

    Outils en ligne de commande pour trouver ce qui occupe de la place, bien pratique

    November 26, 2013 - permalink - http://dev.yorhel.nl/ncdu/man
    backup file files linux space tools
  • Obtenir le chemin absolu d'un fichier en shell

    Parfois ça sert (la flemme de faire un copier/coller depuis le prompt qui affiche le path courant..)

    readlink -e

    November 21, 2013 - permalink - https://links.infomee.fr/shaare/SkmEyA
    absolut chemin file path
  • Dukto R5 | Raw material

    Genial pour s'envoyer des fichiers quand on est sur le meme réseau local sans se faire chier avec les partages de dossier windob qui ne marchent jamais..

    August 28, 2012 - permalink - http://www.msec.it/blog/?page_id=11
    envoi fichier file lan share transfert
  • iSendr – Transfert sécurisé de fichier sans logiciel

    iSendr propose le même concept que PipeBytes, à savoir établir une connexion directe entre 2 ordinateurs (via le browser) pour transférer de gros fichiers

    January 23, 2011 - permalink - http://www.korben.info/isendr-transfert-securise-de-fichier-sans-logiciel.html
    file transfert