Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where is already exists #28

Open
chapmanjacobd opened this issue Aug 20, 2020 · 2 comments
Open

where is already exists #28

chapmanjacobd opened this issue Aug 20, 2020 · 2 comments

Comments

@chapmanjacobd
Copy link

it's whereis

whereis grub
grub: /usr/lib/grub /etc/grub.d /etc/grub2.cfg /usr/share/grub

@chapmanjacobd
Copy link
Author

chapmanjacobd commented Aug 23, 2020

actually most of these already exist...

A better cd

enter z

A program that can split one file into many

something like unar is for archives eh? 300mb CSV is nothing tbh... you could import it into RStudio with data.table in less than 1second but if it has ragged rows then you'll need to do some additional research. But splitting CSV by hand is quite straightforward. I'm sure csvkit or https://github.com/BurntSushi/xsv would work well too. You could use head and >> (sh redirection append) to build small CSVs from a big CSV without much thought. The first chunk would be head -5000 ./file

yeah I just checked xsv split will auto-chunk

command-line utility that gets the extension of a file

awk -F'.' '{print $NF}'
~/Downloads » type fileExtStatistics 
function fileExtStatistics
    awk -F'.' '{print $NF}' | sort | uniq -c | sort -g
end

🌮 fd | fileExtStatistics
      1 geojson
      1 gif
      1 gz
      1 twiki
      2 json
      5 jgw
      5 jpeg
      5 jpg
     22 png

generates a random string that is N characters long

head -1000 /dev/urandom | tr -dc '[:alnum:]' | head -10c

first get 1000 lines from urandom, delete everything which is not ascii+num then keep only 10 char

password hasher, encrypted string

hashing is not encrypting. these are pretty different things. but this tool is cool and useful: https://pypi.org/project/ciphey/

command-line utility to grep through SQL

I would just use rg instead of building a custom tool tbh. instead of " --db=" just search "from ", etc

regression testing CLI diffs images

I've seen this before but forgot the name but I know it exists

bash shell script/program that logs all the files you've written to

cool idea. let me see... so this will actually show you which files you have modified but to track deletions you would need to use git or something:

fd --changed-within 1year

The stat command can show last accessed (this is also viewable in krusader and maybe other file managers). This is pretty cool. This oneline will show you the etc files which were last modified:

find /etc -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort

this will show you files with last accessed: ls -tu /etc
in exa, date modified, sorted by last accessed: exa -l -saccessed /etc

hmm I wish fd included last-access but I can't find it. Only date modified... this should be easier

soundexed

very cool idea

apache access log file viewer

I feel like there are so many but it is difficult to find one which is just what you are looking for

Merge two videos together

ffmpeg is really, really powerful. the syntax is a little weird at first but you quickly get used to it. for programmatic video editing there is https://github.com/mifi/editly

desktop app which logs the time of each application that you view

there are a ton of these but not many FOSS options. google "activity monitor software" "track employees programs" https://www.rescuetime.com/ is very popular

standardise hotkeys across programs

yeah this is super badly needed. or at least sync settings like shortcuts or locale between computers/phones/OSes instantly. that would be very welcome

displays (and sells) art from people in various institutions

this is a really neat idea. In Hawaii all new construction projects are required to buy at least 1% of construction costs worth of art. Art creation accessability, appreciation, and higher valuation of mediocore/amateur art should be more widespread.

organise their thoughts

some people really like roam research. "digital gardens" is a good search term. I like tiddlywiki. It's a neat technology in that it can export itself but it also works well too.

MusiCSS

https://codepen.io/codebuzz/pen/mZmrjX
https://github.com/0xfe/vexflow/wiki/Using-EasyScore
https://sejikco.github.io/CssGridSheetMusic/beethoven-ode-to-joy.html

farmers in 3rd world countries so they don't get scammed by traders

I mean... farmers already have a good idea what price they should expect. scams are just when their buyer doesn't pay, etc.

but you can take a look at how these people help farmers:

https://www.facebook.com/RiceApp
http://www.changemag-diinsider.com/blog/riceup-empowering-filipino-farmers

would have to be fuzzy because they're probably not great at spelling

lol...

amazon monitoring program

https://camelcamelcamel.com/

site generator based on markdown

github kinda does this so you could just upload the files to github then copy inner HTML :)

hopefully native browser support for markdown will be realistic soon

Zip / Postal Code Lookup – Enter a zip or postal code and have it return which city/cities that are in that zip code.

could be done pretty easily with PostGIS


overall there are many good ideas and unique ones. the easy ones are fun too. I am mostly just having fun right now

@joereynolds
Copy link
Owner

Hey @chapmanjacobd,

Thanks for these solutions!
A lot of these ideas been introduced over time and you can tell. The more trivial ones were added when I was first trying to think of things to code for myself when I was beginning. These days I don't contribute as many ideas but the ones I do are more project based and fleshed out.

I'll leave this "issue" up because it could be beneficial to beginners and people not familiar with command-line tools.
Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants