lionkor / inspire Goto Github PK
View Code? Open in Web Editor NEWa simple command-line idea collection tool
License: GNU General Public License v2.0
a simple command-line idea collection tool
License: GNU General Public License v2.0
If someone were to add ideas containing tokens used by bash or a similar shell, such as $HOME, they should put the entire idea in quotes. In this case, however, we should ignore the quotes when storing the idea.
Line 33 in 0f33815
Currently the workaround is to edit $HOME/.inspire/data
, but this should at least be somewhat easier to find. Just printing the path with a command like inspire file
would make inspire file | vim
possible and solve the issue (somewhat).
An option to "reply" to the output of inspire give
to say "please remove this one from the list" would be best.
Currently, the $HOME/.inspire/data file could be replaced by anything, like a symlink to a huge file. This is kind of dangerous, and I don't see why we would load arbitrary files. This could be used to OOM the system, for whatever reason one might do this.
One way to fix this is to choose some random number like 500MB and assume that this is will never OOM the system, then stat the file before we read it to make sure that it's not larger than that (which would be a ridiculous amount of ideas).
Another way to fix this is to add a header to the file head. You could still OOM by appending a large amount of data, but the original problem would be fixed.
Now this problem seems ridiculous and this is an edge case that will never happen, but I feel like this is easy to implement, and its good to make this program as solid as possible.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.