News for hackers. Stuff that matters.

bashit

How to determine which commands failed/succeeded in your Bash_History file?

I have a python application I use for taking notes in markdown. It automates several tasks for me and one of those tasks is parsing my command history and logging certain commands to a markdown file.Parsing out the command and even the timestamp of each command (if your bashrc is setup correctly) in the Bash_History file is easy. However, what if one of these commands was typed wrong or perhaps...

( Read More... | 2 comments | 5 points | on HN )
Re:How do I edit a jupyter notebook ipynb file with python? on Monday December 03, 2018 @05:55PM (#18593982)
thanks suff ~ I'm having a hard time wording this question but I know how to install jupyter notebook and edit it using the jupyter notebook application. That is easy. My question was how to automate the tasks of..

Open the notebook file Grabbing the current time and inserting it into the file at line (x). Saving and closing the file.

I want to automate those three tasks using the python language.

How do I edit a jupyter notebook ipynb file with python?

I wrote a simple note taking application that automates a few things for me when writing notes in markdown style. I can share the gitlab link if need be but perhaps a small description of my problem might be enough...My python application which is very dumb and simple (does what I want) accomplishes a few simple tasks like...* Inserting a markdown style timestamp for each new entry which links...

( Read More... | 2 comments | on HN )

How to apply a “hack” to force my CentOS system from timing out and sleeping

I work in this annoying government environment where my CentOS 7 system cannot stay awake after 10 minutes of inactivity. IT has applied this annoying global config that forces my system to sleep after this time frame requiring me to log in. This rule was mainly applied to our regular administrative staffing not so much the engineers.I have a windows systems as well. So I'm constantly bouncing...

( Read More... | 2 comments | on HN )
Re:Ask HN: What are you working on and why is it cool? on Friday October 19, 2018 @12:39PM (#18257936)
I'm sure your app is quite more user friendly and inviting ;) but I thought I would share this one. It's kind of cool to mess around with if you're a command line nut.

https://github.com/klauscfhq/taskbook

Re:Ask HN: What are you working on and why is it cool? on Friday October 19, 2018 @12:36PM (#18257911)
I'm creating an interactive presentation on Git for my company who has been using SVN since the dawn of time. Many might consider this a boring project but it also happens to be a wide sought out skill. Very few really dive in to becoming power users of Git which is why I think it's a cool project for me. Teaching any topic to someone else almost always resolves in a considerable skill enhancement for the teacher.
I took a graduate course on IoT development with a concentration on Bluetooth Mesh. My professor happened to be very enthusiastic and passionate about bluetooth. Apparently he started a meetup on IoT and IIoT. The meetup now has received alot of attention. Therefore, maybe take a class, attend a lecture, or search for a meetup. Perhaps reaching out to a university professor would be helpful in getting their perspective. Sounds like you need to grow your network.

Help! My company doesn't know how to use Git for production ready releases

My company is still widely using CVCS (Central Version Control Systems) tools mostly SVN. We've just now been slowly integrating Git into our department.Our SCM (Software Configuration Management) team audits our production ready software releases, verifies tickets are being reviewed/closed, ensuring instructions for recreating the release are clear and other tasks alike. Our company uses this...

( Read More... | no comments | on HN )
Re:Is it necessary to run the latest Git release? on Thursday October 11, 2018 @10:04PM (#18198563)
@jepler Could you explain the part on security updates regarding CVE and jessie or point me somewhere that does please? I'm sorry but I don't understand this terminology.

This is very helpful thank you!

Is it necessary to run the latest Git release?

I noticed that some linux distros ship with an older version of git. For example, my CentOS7 setup is using 1.8.3.1. As of now, the latest is 2.19. My question is more specific towards the precautions of running older versions of Git that may come preinstalled on a system.Are there any precautions or issues with running older versions?What are they and can they pose as a significant threat in...

( Read More... | 3 comments | 2 points | on HN )
Re:Cirq: A quantum programming library in Python on Thursday July 19, 2018 @01:58PM (#17568812)
Stupid question, how am I suppose to use a quantum programming library if I don't have $15 million to spare in buying one?