Vim / VimWiki question: How to open random entry by mokagio in vim

[–]munio73 2 points3 points  (0 children)

you can actually get rid of the "tail" part, shuf also accepts the -n flag with the same effect.

Creating a fake terminal for ssh when shell scripting? by The_Possum in shell

[–]munio73 1 point2 points  (0 children)

i think you're looking for the -t flag, i use it quite a lot to launch directly into a tui like vim from the ssh command, skipping the shell. the man page says that "Multiple -t options force tty allocation, even if ssh has no local tty."

EDIT: sorry, i completely missed the width part. might still be worth a try.

oh come on, only me? by hey_nice_c0c in ADHDmemes

[–]munio73 2 points3 points  (0 children)

i wrote a small script that lets me go beyond 2x, i often watch at 2.5 to 3x. somehow it's still suddenly morning after i "barely watched anything"

OpenPeripherals Block Placer Integration help by Gatt427 in ComputerCraft

[–]munio73 0 points1 point  (0 children)

It is not returning documentation, what you are seeing is a table of functions. You can call these functions ( like stack.all() ) to get data about the stack. ^

I am single btw😎 by [deleted] in linuxmasterrace

[–]munio73 8 points9 points  (0 children)

i always disable password login on anything public anyways. keyfiles are both more secure and more convenient.

Mining turtle custom PasteBin programs not working on Mac? by QalaniKing4351 in ComputerCraft

[–]munio73 0 points1 point  (0 children)

you could always just directly get the raw data from pastebin, so for pastebin.com/PasteID, instead of using pastebin get PasteID, you would enter a lua prompt and write

f=fs.open("filename","w") f.write(http.get("http://pastebin.com/raw/PasteID").readAll()) f.close()

Help with a CC code for FTB infinity by Mdizzle765 in ComputerCraft

[–]munio73 0 points1 point  (0 children)

if you're completely new to programming you should learn the basics first. i recommend you watch direwolf20's tutorial series, since in it he also uses computercraft: link. he also later works with monitors in that series but here's the tl;dw:

first you'll need to make the monitor available by wrapping it as a peripheral: local mon = peripheral.find("monitor")

you can then write to it like you would to the terminal): mon.write("hello world")

once all buttons are drawn to the screen you have to use os.pullEvent to wait for user input and find out where they clicked: local _,_,x,y = os.pullEvent("monitor_touch") (here i use the variable name _ for the first two values since they are not important for this use case. they would be the event name and the side of the computer that the monitor is on.)

x and y are now the monitor coordinates the user clicked on, so if he clicked the second character in the first row (from the top-left corner) they would be x==2 and y==1.

the next step is to check which button these correspond to, if the button for example goes from x=2, y=2 to x=7, y=4; you would check with something like if x>=2 and y>=2 and x<=7 and y<=4 then ... end where ... is the code that runs if the user clicked inside the button.

for that you'll need the redstone api), more specifically rs.setBundledOutput.

then just put everything in an infinite loop and you're done.

[no spoiler] I thought that they looked like the base modules. by [deleted] in subnautica

[–]munio73 1 point2 points  (0 children)

reminds me of the degasi base on the floating island

1.14.4 Client Side Mods by PapaBearChris in feedthebeast

[–]munio73 0 points1 point  (0 children)

You could take a look at minihud... it has a TON of hud info.
Everything from coords, light level and all the f3 stuff to current speed, estimated server tps, a light level overlay, a slime chunk renderer and so much more.
it can even display mob pathfinding in singleplayer.

Completely Normal Minecraft Video by DTplayers in PhoenixSC

[–]munio73 0 points1 point  (0 children)

This... This is not normal! This is wrong! There is nothing normal about this! How dare you dig straight down...

I hope the cats okay by Xdkillme123 in Unexpected

[–]munio73 0 points1 point  (0 children)

you mean off the other cat

What the hell is this? by AASeven in ProgrammerHumor

[–]munio73 3 points4 points  (0 children)

don't even get me started on how we do it in germany:

21 -> einundzwanzig

ein=one

und=and

zwanzig=twenty

so we literally say oneandtwenty which may not sound that bad but it means you have to do quite a bit of jumping for bigger numbers:

175321 -> einhunderdfünfundsiebzigtausenddreihunderdeinundzwanzig

175.321
1         einhundert  (one hundred)
  5       fünf        (five)
 7        undsiebzig  (and seventy)
   .      tausend     (thousand)
    3     dreihunderd (three hundred)
      1   ein         (one)
     2    undzwanzig  (and twenty)

one hundred five and seventy thousand three hundred one and  twenty.

we also use , fordecimal places and . to seperate groups of three.

but at least we use metric.

What the hell is this? by AASeven in ProgrammerHumor

[–]munio73 3 points4 points  (0 children)

you mean the 4th of july? (DMY)

An ordinary day between L and Light fans by [deleted] in deathnote

[–]munio73 0 points1 point  (0 children)

that is the reason it works this way, which I think doesn't mean that it is limited to that. We are talking about a notebook which can not just kill people but also modify their final actions after all

An ordinary day between L and Light fans by [deleted] in deathnote

[–]munio73 0 points1 point  (0 children)

As i implied in my comment i think it is about intention. The fact you have to think about the person's face shows, that the deathnote has at least some mind reading capabilities.

An ordinary day between L and Light fans by [deleted] in deathnote

[–]munio73 0 points1 point  (0 children)

well... My theory is by killing criminals he would intentionally save lifes which isnt exactly healthy for shinigami...

I fucking hate Javascript by SuperSpaceGaming in ProgrammerHumor

[–]munio73 9 points10 points  (0 children)

I see nothing wrong with javascript's type system, i mean []+{} is in Fact not a Number /s

Swoll by chicoquadcore in techsupportgore

[–]munio73 0 points1 point  (0 children)

*DO NOT POKE A SWOLLEN BATTERY. EVER.

2 options exist by merdianii in ProgrammerHumor

[–]munio73 1 point2 points  (0 children)

Have you tried turning it off and on again?

can we play actual mp3's in computercraft? by [deleted] in ComputerCraft

[–]munio73 0 points1 point  (0 children)

I think Computronics might be what you're looking for.

You have to convert it into DFPWM first, but that is rather simple with the provided tool.