Hey there !
For the first one. It is a quite advanced one. Involves instancing and the like. Sorry can't give you more on that one.
But: "good newws evryone!!"
For the second one. Have a look at the attached file.

It is quite simple from the geometry. Needs some creativity with parameters and coloring. It should give you a starting point...
HTH!!