Author: johayek
-
using “sudoedit” on Linux
https://stackoverflow.com/questions/22084422/what-is-the-difference-between-sudoedit-and-sudo-vim#22084506 http://www.wingtiplabs.com/blog/posts/2013/03/13/sudoedit/ This protects /etc/crontab against concurrent editing and corruption: $ sudoedit /etc/crontab
-
Linux package managers: permissions, user/group ownerships of files in a package
https://en.wikipedia.org/wiki/Dpkg https://en.wikipedia.org/wiki/Dpkg#Database: /var/lib/dpkg/… https://en.wikipedia.org/wiki/Rpm_(software) https://en.wikipedia.org/wiki/Rpm_(software)#Local_RPM_installation_database: /var/lib/rpm/… https://unix.stackexchange.com/questions/634/what-are-the-pros-cons-of-deb-vs-rpm RPM based environments support verifying and resetting permissions and user/group ownerships of files in a package: https://www.cyberciti.biz/tips/reset-rhel-centos-fedora-package-file-permission.html – https://ashok-linux-tips.blogspot.de/2011/12/how-to-reset-permissions-of-installed.html https://www.novell.com/coolsolutions/feature/16238.html But what about Debian based ones? On Debian there is a file for every (installed) package: /var/lib/dpkg/info/package.list That file only includes filenames and directory names (and no details at all). Directories…
-
Git SCM: merge local master branch with remote master branch
https://stackoverflow.com/questions/18116198/merge-local-master-branch-with-remote-master-branch-in-git The “git pull remote master” did not work for me, I used “git pull origin master” instead (was this right?). https://stackoverflow.com/questions/16560095/git-pull-origin-master-branch-to-local-master-when-in-local-develop
-
jira-markup-mode: Emacs major mode for JIRA-markup-formatted text files
https://github.com/mnuessler/jira-markup-mode Editing Jira markup in a simple browser text pane is a PITA. So I shall give this a try!
-
Bash: [[…]]: the pattern, quoting, …
https://www.gnu.org/software/bash/manual/html_node/Conditional-Constructs.html — look for the very helpful xxx.txt example! I was tempted to put the entire pattern in (double) quotes. But that’s not Bash style. You can “certainly” put literal parts in quotes, but regexp parts do not belong in quotes — quotes are good for protecting, amongst other aspects: protecting against interpretation as regular expression. That’s…
-
Stack Overflow: find and restore a deleted file in a Git repository
https://stackoverflow.com/questions/953481/find-and-restore-a-deleted-file-in-a-git-repository Amongst all the suggestions there I had to find something, that fits my scenario. First find the commit ID, that includes the deletion of the resp. file (use either –summary or –raw!) (git log displays its output through $PAGER, presumably the utility less): $ git log –summary # find the file and the commit…
-
Btu (British thermal unit), Joule, Watt hours
https://en.wikipedia.org/wiki/British_thermal_unit https://de.wikipedia.org/wiki/British_thermal_unit 1 J = 1 Ws 3600 MJ (megajoules) = 1 MWh thm …Btu …joules Ws Wh kWh Mwh 1 J 1 3.6 MJ 1 0.001 3,600 MJ 1 1 Btu 1.05505585257348 kJ 0.293,071,070,159,3 1 MBtu 1,055.05585257348 kJ 1 thm 100 MBtu 105.505585257348 MJ 10 thm 1 MMBtu 1,055.05585257348 MJ 293,071.070,159.3 0.293,071,070,159,3
-
Git SCM: diff between two given tags
https://stackoverflow.com/questions/3211809/git-diff-between-given-two-tags A couple of interesting variants …
-
mDNS, Rendezvous, Bonjour, ahavi
https://www.heise.de/newsticker/meldung/Bugfix-Google-behebt-Patzer-in-Chromecast-und-Google-Home-3946037.html