hacker-scripts icon indicating copy to clipboard operation
hacker-scripts copied to clipboard

Please provide Windows scripts

Open AlicanC opened this issue 9 years ago • 22 comments

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 avatar Nov 25 '15 07:11 AlicanC

@AlicanC, best issue ever.

lukeocodes avatar Nov 25 '15 10:11 lukeocodes

@AlicanC Just install ruby and python then you can run all of the scripts on Windows.

ghost avatar Nov 25 '15 12:11 ghost

@AlicanC You'll probably also need to install tools like who and adapt command calls that are intended for sh.

joranvar avatar Nov 25 '15 12:11 joranvar

Or just use MingW

ghost avatar Nov 25 '15 12:11 ghost

Should be easy to implement with PowerShell. Pull requests are accepted.

NARKOZ avatar Nov 25 '15 16:11 NARKOZ

https://github.com/NARKOZ/hacker-scripts/pull/40 @NARKOZ :)

chenghuang-mdsol avatar Nov 25 '15 22:11 chenghuang-mdsol

Windows!!!!? Really dude!?!!

YixuanFranco avatar Nov 26 '15 15:11 YixuanFranco

Windowz is not for hackerz :-1:

ravkr avatar Nov 26 '15 17:11 ravkr

Use gitbash instead of mingw

nupe avatar Nov 27 '15 03:11 nupe

I'm not sure but I believe that Cygwin come with Python out of the box. Isn't it a good solution?

moacirosa avatar Nov 27 '15 15:11 moacirosa

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.

codewithtyler avatar Nov 28 '15 20:11 codewithtyler

@RandomlyKnighted I can test it. I'll just setup a telnet server and make sure it writes sys brew

ghost avatar Nov 28 '15 21:11 ghost

@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:

codewithtyler avatar Nov 28 '15 21:11 codewithtyler

@mhsjlw Here is my conversion of the fucking_coffee script if you could please test it for me.

codewithtyler avatar Nov 28 '15 22:11 codewithtyler

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 avatar Nov 29 '15 15:11 nupe

@nupe which one did you test?

codewithtyler avatar Nov 29 '15 15:11 codewithtyler

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.

y1yang0 avatar Nov 29 '15 15:11 y1yang0

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.

codewithtyler avatar Nov 29 '15 15:11 codewithtyler

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.

AlicanC avatar Nov 30 '15 05:11 AlicanC

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.

codewithtyler avatar Nov 30 '15 05:11 codewithtyler

@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.

AlicanC avatar Nov 30 '15 05:11 AlicanC

The project now has PowerShell files for everything except the Kumar script.

The project also now contains nodejs files for each of the scripts.

codewithtyler avatar Dec 02 '15 06:12 codewithtyler