hacker-scripts
hacker-scripts copied to clipboard
Please provide Windows scripts
There's a whole lot of Windows developers out there who would love to use this too, and who will contribute based on it.
@AlicanC, best issue ever.
@AlicanC Just install ruby and python then you can run all of the scripts on Windows.
@AlicanC You'll probably also need to install tools like who and adapt command calls that are intended for sh.
Or just use MingW
Should be easy to implement with PowerShell. Pull requests are accepted.
https://github.com/NARKOZ/hacker-scripts/pull/40 @NARKOZ :)
Windows!!!!? Really dude!?!!
Windowz is not for hackerz :-1:
Use gitbash instead of mingw
I'm not sure but I believe that Cygwin come with Python out of the box. Isn't it a good solution?
I'm currently working on a PowerShell version for both the hangover and fucking_coffee scripts. I don't know anything about Postgres so I'll leave that one for someone else to convert.
Note: I do not have a coffee machine to test fucking_coffee with so I'll just do the best I can with it.
@RandomlyKnighted I can test it. I'll just setup a telnet server and make sure it writes sys brew
@mhsjlw Sounds good. I just finished the hangover.ps1 script and am working on fucking_coffee.ps1 now. I'm creating them as cmdlets so that they are as easy to use as possible. :smile:
@mhsjlw Here is my conversion of the fucking_coffee script if you could please test it for me.
Powershell version worked out for me On Nov 28, 2015 5:05 PM, "Tyler Hughes" [email protected] wrote:
@mhsjlw https://github.com/mhsjlw Here is my conversion of the fucking_coffee https://github.com/RandomlyKnighted/hacker-scripts/blob/powershell-conversion/powershell/fucking_coffee.psm1 script if you could please test it for me.
— Reply to this email directly or view it on GitHub https://github.com/NARKOZ/hacker-scripts/issues/35#issuecomment-160339676 .
@nupe which one did you test?
just for fun,these scripts seems to be useless of course if you really want to run these scripts on your WindowsX machine,it is easy to realize by your favorite programming language.
Not completely useless. For example, the building where I work is a metal building so I don't get any signal on my phone. Therefore, a message to my family updating them that I'm going to be getting home late is useful.
Of course it can be done by your favorite programming language. I'm not sure I see what you're getting at by your comment.
I can't believe you took this seriously. This issue was just a copypasta of https://github.com/facebook/flow/issues/6 for entertainment purposes.
I am sure these scripts will be useful for some people, but porting these to PowerShell seems unnecessary. (Unless you are doing it for fun.)
The problem with the shell scripts is that they don't work on Windows. Solving this problem by writing scripts that won't work on Unix-like environments beats the purpose. It would be better if the Ruby scripts were solidified (do they even need to be solidified?) or they were ported to other portable languages like JavaScript (for Node.js) or Python.
Regardless of where the original request came from I can see where some of these scripts could be useful. That's why I converted them to PowerShell.
Edit: Yes, it's also for fun. I've been wanting to improve my knowledge of PowerShell so this issue helps.
@RandomlyKnighted don't get me wrong, I appreciate your work. I'm just saying that JavaScript and Python are also good options if there are people who want to port these to other languages.
The project now has PowerShell files for everything except the Kumar script.
The project also now contains nodejs files for each of the scripts.