linux.wiki
1 %title: linux 2 linux tips and tricks 3 :dev: 4 [[nixOS]] 5 6 = installing an app to the gnome menu = 7 add an desktop entry to ~/.local/share/applications/ for desktop entries available to a single user (look in that folder for examples) 8 9 = cron = 10 crontab -e to edit the cron file 11 cron takes 5 inputs followed by the CMD you wish to run: 12 13 * * * * * ls 14 min hour day month week 15 16 the above cron tag will run ls every minute of every day all the time. Hour is in 24hr format. So 17 00 00 * * * ~/scripts/music-pull 18 will run music-pull everyday at 12AM 19 20 its generally advisable to schedule these scripts at specific odd times so that they don't clash with other things 21 22 There are also other types of formats: 23 @reboot (i've run into trouble with this, as it is only called specifically when the computer is rebooted, not at any boot) 24 25 = ssh copy = 26 to copy your ssh key to a new computer run 27 ssh-copy-id <user@server> 28 29 = ssh config = 30 the ssh config file is truly versatile 31 32 = hamachi = 33 stop: /etc/init.d/logmein-hamachi stop 34 start: /etc/init.d/logmein-hamachi start 35 36 = git = 37 rename a branch: 38 * git branch -m <old> <new> 39 40 pull upstream master changes: 41 * git checkout master 42 * git pull https://hostname/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git BRANCH_NAME 43 * git merge 44 45 see remote repos: 46 * git remote -v 47 48 add remote repo: 49 * git remote add <name> ssh://<user>@<ip>:<dir/of/remote> 50 * git remote add <name> https://<web.repo.com>:<dir/to/remote> 51 52 create a git branch: 53 * git branch <branch-name> 54 55 checkout a branch: 56 * git checkout <branch-name> 57 58 push to specific branch: 59 * git push --set-upstream <remote> <branch> 60 61 = systemd = 62 = theming = 63 64 ----- 65 = Backlinks = 66 67 - [[index|index]] 68 - [[200921-1454]]