Skip to content

Instantly share code, notes, and snippets.

View jotelha's full-sized avatar

Johannes L. Hörmann jotelha

View GitHub Profile
@jotelha
jotelha / ubuntu_custom_launcher.md
Last active July 17, 2019 12:57
Create custom application launchers for Ubuntu 18.04

On Ubuntu (18.04), system-wide desktop launcher files are found within /usr/share/applications/. Within ${HOME}/.local/share/applications/ create custom starter files:

Samples:

  • firefox.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Firefox User Install

Useful git commands

View commits affecting the differences of certain files between two different branches:

git log --reverse -p getFileByQuery..master -- fireworks/utilities/filepad.py fireworks/user_objects/firetasks/filepad_tasks.py

Create a patch from these differences:

git log --reverse -p getFileByQuery..master -- fireworks/utilities/filepad.py fireworks/user_objects/firetasks/filepad_tasks.py > patch.diff
@jotelha
jotelha / vimdiff.md
Created July 22, 2019 08:17
Vimdiff-related

Compare two remote files

vimdiff scp://[email protected]//home/testuser/README.md scp://[email protected]//home/testuser/README.md

In advance, start

 eval $(ssh-agent)
 ssh-add .ssh/my-key-file

if remote host requires authentication by key.

@jotelha
jotelha / issues.md
Last active August 30, 2019 17:41
Fireworks knowledge

FW id 17540

  - _fw_name: PyTask
    func:    glob.glob
    args:    ["frame*.lammps"]
    outputs: [ frame_file_list ]

  - _fw_name: ForeachTask
@jotelha
jotelha / lmod.md
Last active August 15, 2019 11:20
fireworks