Code Monkey home page Code Monkey logo

Comments (2)

chapmanjacobd avatar chapmanjacobd commented on August 29, 2024

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

from what-to-code.

joereynolds avatar joereynolds commented on August 29, 2024

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!

from what-to-code.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.