I made an GPT-powered Linux shell that guesses your bash command (and hallucinates crazy stuff)

  Рет қаралды 38,205

River's Educational Channel

River's Educational Channel

3 жыл бұрын

This is 100% real. No, you shouldn't trust the AI.
Follow-up video with viewers' requests: • Viewers suggest wacky ...
More details, errata, etc. here: www.riveducha.com/openai-powe...
Music credit:
"Bossa Antigua" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 4.0 License
creativecommons.org/licenses/b...

Пікірлер: 116
@riveducha
@riveducha 3 жыл бұрын
As promised, I tried out a bunch of your suggestions for commands! Check out the results here: kzbin.info/www/bejne/p3zTlaOIfaeAna8
@AlexanderNohe
@AlexanderNohe 3 жыл бұрын
"Setup a Firefox development environment" or "setup my machine to develop chromium browser" Those are multi step processes and vary based on machine type. Would be interesting to see it fetch chromium or Firefox and go through the bootstrapping
@riveducha
@riveducha 3 жыл бұрын
Might have to tweak the token limit and/or stop-words to allow a long set of commands but I’m curious to see what it’ll do!
@kuhluhOG
@kuhluhOG 3 жыл бұрын
"setup up a Linux kernel development environment" could be interesting too or actually for any complex type of software
@MrSpartaa
@MrSpartaa Жыл бұрын
Well, apparently 2 years later people are going crazy over this feature
@JulianAurelius14
@JulianAurelius14 2 ай бұрын
may-be
@gramathy999
@gramathy999 3 жыл бұрын
see if it gives you rm -rf / --no-preserve-root when you tell it "delete everything"
@bittertea
@bittertea 3 жыл бұрын
> record my zoom class meeting at 8 am on OBS studio from this link [insert link] edited: probably need a link xD
@krisu0100
@krisu0100 3 жыл бұрын
@Sandborn I think ffmpeg can record screen tho (I'm pretty noob at this stuff tho)
@bittertea
@bittertea 3 жыл бұрын
@Sandborn It does, I made the bash script in ubuntu.
@bittertea
@bittertea 3 жыл бұрын
@@krisu0100 Maybe I should look into it. I just use youtube-dl. What is interesting is what command will the AI use.
@bittertea
@bittertea 3 жыл бұрын
Probably need to give it the link now that I think about it.
@ntrgc89
@ntrgc89 3 жыл бұрын
At first I was like "ok yea it's probably going to succeed at some basic ls stuff and otherwise have lots of holes" but DAMN, this is impressive! Especially how it figured out how to download Android source code and Ubuntu "23.04" Shame this isn't publicly available, I would definitely try it out.
@ChuckClaunch
@ChuckClaunch 3 жыл бұрын
"For the love of all that is Holy format my friggin USB drive!"
@muhmann66
@muhmann66 3 жыл бұрын
Hi, just found this channel! I'm impressed by the amazing quality of your videos, keep this up and you will become a large channel for sure!
@10e999
@10e999 3 жыл бұрын
I just binge-watch all your tech videos. Your channel is great. Keep it up! Favourite video: control a fan with a PI GPIO
@icetrooper4875
@icetrooper4875 3 жыл бұрын
Never blur an image or video, use the filled rectangle instead. You should know that AI can regenerate clear images based on blurred sample :) Hope you remember that Anyway, astonishing usage of OpenAI : o
@faho995
@faho995 3 жыл бұрын
there is actually a few frames at around 0:34 which shows the key clearly.
@Uristqwerty
@Uristqwerty 3 жыл бұрын
Filled rectangles may unconsciously transfer size metadata. Even better to replace redacted information with an easter egg or troll, then reversibly blur *that* instead. Or, if not better, at least substantially more fun. Hey, waitaminut-
@dasleo
@dasleo 3 жыл бұрын
AI can GENERATE clear images based on blurred samples, but not ones of the actual key. It's impossible to recreate the key from information that simply isn't in the video anymore.
@icetrooper4875
@icetrooper4875 3 жыл бұрын
@@dasleo I got what you mean, but if you have enough samples (many frames in video) and know the blurring algorithm, regenerating key could be possible. I know, it's not as simple as I described it, but I'm sure with some effort you can do it. Look here what we've got already: kzbin.info/www/bejne/lWKkq2OBrKeVjsU I think it should be a rule of thumb not to blur images when you want to hide something vulnerable. Let's just be aware of that. :)
@dasleo
@dasleo 3 жыл бұрын
@@icetrooper4875 Interesting video, thanks for sharing!
@TheSoldierHun
@TheSoldierHun 2 жыл бұрын
Try this: "End life in the Universe, thanks"
@PujaAbbassi
@PujaAbbassi 3 жыл бұрын
This is awesome! Hope OpenAI allows you to publish it soon. I'd sponsor you on Github or through other channels for it. Btw, you're really good at making such videos, kudos!
@chirag2005
@chirag2005 3 жыл бұрын
This is amazing!! Well done
@untelevized
@untelevized 3 жыл бұрын
dude that's sick! great video
@Artillect0
@Artillect0 3 жыл бұрын
Generating makefiles would be pretty cool, it'd be really cool in general to see it write some code.
@akina1784
@akina1784 3 жыл бұрын
This is cool! Thanks for sharing!
@dominikschmidt5710
@dominikschmidt5710 3 жыл бұрын
Can you share the code without API key so that we can use it with our own keys? Thanks!
@riveducha
@riveducha 3 жыл бұрын
Yes! I need to clean some stuff up a bit but I'll post it on the website linked in the description soon!
@JimMcKeeth
@JimMcKeeth 3 жыл бұрын
Great, please post a comment here when You do!
@omarhatemelrefaei8820
@omarhatemelrefaei8820 3 жыл бұрын
@@riveducha great, I was just going to ask something similar. Maybe you should put a pinned comment saying you are doing that. Do you think that integration with smth like open-source GPT-Neo is possible?
@riveducha
@riveducha 3 жыл бұрын
Hey y'all, I put up a zip file of the code on the linked web page! I couldn't figure out what's going on with readline, so you can try commenting out readline if you're running into text-wrapping issues. And yes, you should be able to bolt it on to a local GPT model too.
@walt3719
@walt3719 3 жыл бұрын
Well I just subbed based off this vid alone.
@jamisbrill
@jamisbrill 3 жыл бұрын
This is ground breaking!
@OneSpaceyBoy
@OneSpaceyBoy 3 жыл бұрын
Really good video!
@GarethPW
@GarethPW 3 жыл бұрын
This is incredibly awesome
@ghostsdefeated4078
@ghostsdefeated4078 3 жыл бұрын
this is actually really impressive...
@FalkoJoseph
@FalkoJoseph 2 жыл бұрын
Futuristic stuff right here.
@happosade
@happosade 3 жыл бұрын
"Make bootable Gentoo installer on my usb drive"
@user-zr1ex8hq6c
@user-zr1ex8hq6c Жыл бұрын
Hi, I met this erroe when run ./aish : Using OpenAI ~> show me my IP. 🧠 Thinking... ... values[i] = one_value.encode('latin-1') UnicodeEncodeError: 'latin-1' codec can't encode character '\u2018' in position 7: ordinal not in range(256) What's wrong to me? My machine: m1 macmini, osx mojave & monterey(same errors) Thanks in advance ~.
@deno3415
@deno3415 3 жыл бұрын
that's really cool!
@devfromthefuture506
@devfromthefuture506 3 жыл бұрын
And then copilot came
@Sparkette
@Sparkette 3 жыл бұрын
You might as well have just pressed Enter when it did the command to format the drive, assuming you weren't running it as root.
@nottenarwle9906
@nottenarwle9906 3 жыл бұрын
This is terrifying for all the right reasons. I like how the AI also "forgot" that ls doesn't list all directory entries by default at 1:37. How abstract can commands be? Can it translate "Start ad-hoc bash web server that flips images at port 80" to a while loop with nc, curl, convert in the mix?
@riveducha
@riveducha 3 жыл бұрын
My guess is that commands that people have explained on the Web are most likely to work and anything past that is pretty iffy. It failed on "sort data.csv by the last column ascending", for example. But I like the web server idea and will try it out!
@Corbald
@Corbald 3 жыл бұрын
Could you try this with GPT-J?
@thisjustincole
@thisjustincole 3 жыл бұрын
Can you try running some openssl commands? Like convert a PFX to private and public PEM files? Or generate a root CA and a signed localhost certificate issued by that CA? There are so many openssl commands and options, it seems like a good use case for something like this.
@riveducha
@riveducha 3 жыл бұрын
Coincidentally, I had it list all supported SSLv3 ciphers early on (didn't make it into the video). If there are web pages that explain these OpenSSL commands, there's a good chance the GPT model knows about it. I will try it out!
@12-343
@12-343 3 жыл бұрын
Try anything using tarballs, because tar is probably the most googled command.
@russianqueen406
@russianqueen406 3 жыл бұрын
Cool I wanna buy your entire stock
@russelldicken9930
@russelldicken9930 2 жыл бұрын
Nice. I'd like to see it done using GPT-Neo
@iskamag
@iskamag 3 жыл бұрын
Alias: "Am I a joke to you?"
@stoicfloor
@stoicfloor 3 жыл бұрын
I got one: "Generate a bash script to create SkyNet's Terminator"
@parcfelixer
@parcfelixer 3 жыл бұрын
Is the NLP model running on a distant server or on your own computer?
@bujitself
@bujitself 3 жыл бұрын
"linux is too hard" they said. So we made it easier
@johningram4359
@johningram4359 3 жыл бұрын
I'll take two please
@omarhatemelrefaei8820
@omarhatemelrefaei8820 3 жыл бұрын
> the code was written with the help of a GPT-2 based AI autocompletion Is there some specific editor extension that you are using?
@riveducha
@riveducha 3 жыл бұрын
I'm using a proprietary product called TabNine that offers GPT-2 autocompletion either locally or in the cloud. Nothing beats sending all your keystrokes to some cloud server!
@noisk8
@noisk8 2 жыл бұрын
No Grand API key or OpenAI API key found. Please set GRAND_AUTH_KEY/GRAND_AUTH_SECRET or OPENAI_API_KEY. you know wath problem have?
@riveducha
@riveducha 2 жыл бұрын
Yeah, do you have an API key for one of those services and did you set it as an environment variable?
@ziwenzhuang
@ziwenzhuang 3 жыл бұрын
Did you try using this shell to install mujoco-py automatically? OpenAI wrote mujoco-py :p
@bgeaney
@bgeaney 3 жыл бұрын
>get me some bitcoin
@ornotermes
@ornotermes 3 жыл бұрын
> compile linux kernel for raspberry pi
@user-nh2ds6us9j
@user-nh2ds6us9j 3 жыл бұрын
ohmy! we definitely need to ask the release date for half-life 3!
@opticalwipe-
@opticalwipe- 3 жыл бұрын
How good does it awk?
@nanow1990
@nanow1990 2 жыл бұрын
Now it's time for Codex new model by OpenAI which is much better. Just replace "davinci" with "davinci-codex" and see what it does. Btw can you provide a link for code so I can test it myself?
@riveducha
@riveducha 2 жыл бұрын
Code should be in the link in the description. I’m still on the waitlist for codex so can’t test it yet, but it’s on my to-do list.
@anthonyettinger4329
@anthonyettinger4329 3 жыл бұрын
can you ask it to "download a csv of all NYSE, AMEX, and NASDAQ companies with their tickers" I cannot find any free data source out there.
@riveducha
@riveducha 3 жыл бұрын
I tried it out for each exchange separately. Not surprisingly, it made up some URLs that 404’d.
@anthonyettinger4329
@anthonyettinger4329 3 жыл бұрын
@@riveducha bummer
@baumaffe7649
@baumaffe7649 3 жыл бұрын
Wait so the commands are all generated by OpenAI, it knows the bash commands and you don't have to do anything abiut that?
@riveducha
@riveducha 3 жыл бұрын
OpenAI fed the AI model a ton of text (I think mainly from the web). So it should know about anything there’s a lot of online. It has no idea what’s actually installed on my computer though.
@baumaffe7649
@baumaffe7649 3 жыл бұрын
@@riveducha That's very interesting! But still how does it know what shell you are using for instance? Are you sending more parameters?
@riveducha
@riveducha 3 жыл бұрын
I wrote a bit about this in the linked web page, but I give it a few hand-written examples so it knows what to generate. There’s no guarantee it will stay on topic, but bash on Linux is usually the assumption online so the probability is good. If you asked for PowerShell it might stray off topic, but I haven’t tried.
@baumaffe7649
@baumaffe7649 3 жыл бұрын
@@riveducha That's absolutely fascinating. I'm gonna be honest I fully expected the answer to be something like "Yes actually, I send it a bash specification / grammar file" but this is beyond amazing.
@riveducha
@riveducha 3 жыл бұрын
@@baumaffe7649 In fact, if you give it a bash command it occasionally gets confused and gives you the English description of the command.
@oriontvv
@oriontvv 3 жыл бұрын
We definitely need to integrate this Musk's neauralink
@Vekikev1
@Vekikev1 2 жыл бұрын
kzbin.info/www/bejne/b3qlXp56ZaeihbM kzbin.info/www/bejne/a4DXfHibqaysaLs Get smarter whiteboy. People like Elon Musk because he tells everyone they wont have to change their life style to prevent climate change.
@oriontvv
@oriontvv 2 жыл бұрын
@@Vekikev1 thanks. Maybe. Also people like Elon because he had pushed space program and gasoline empire, which (as far as I know) make numerous value to climate change. I like the way how his team optimize currect things and processes - I hope it could help to prevent it.
@aim__freakz8499
@aim__freakz8499 3 жыл бұрын
3::45 haha :D
@efeakaroz4761
@efeakaroz4761 2 жыл бұрын
Hello what is the os you are using in this video
@cobalt7002
@cobalt7002 Жыл бұрын
Ubuntu
@efeakaroz4761
@efeakaroz4761 Жыл бұрын
@@cobalt7002 Which?
@HaseebHeaven
@HaseebHeaven Жыл бұрын
@@efeakaroz4761 why it matters just use the latest Ubuntu
@efeakaroz4761
@efeakaroz4761 Жыл бұрын
@@HaseebHeaven ubuntu is not open source. I hate ubuntu. Use arch instead.
@AIC_onyt
@AIC_onyt Жыл бұрын
@@efeakaroz4761 neither is arch. when you want a 100% libre system you have to run parabola linux on a RISC V or RaptorComputing power9 system
@kwc2086
@kwc2086 3 жыл бұрын
how about: "deepfake nicolas cage into home alone 2"
@gabbyafter7473
@gabbyafter7473 3 жыл бұрын
How did you get the API key?
@riveducha
@riveducha 3 жыл бұрын
You can join the waitlist at beta.openai.com
@matparedovich3172
@matparedovich3172 3 жыл бұрын
"What are my spects?" It could be interesting because it means it have to install neofetch if not already installed
@riveducha
@riveducha 3 жыл бұрын
It gave me "echo $SHELL" for your description, and "uname -a" when I spelled it as "specs". Guess you need to specify what kind of specs!
@matparedovich3172
@matparedovich3172 3 жыл бұрын
@@riveducha I think the better description is "show me the system details like in r/unixporn" or something like that.
@MrEnriqueag
@MrEnriqueag 3 жыл бұрын
Why can't you publish the code without your api key?
@gandhi123
@gandhi123 3 жыл бұрын
This is awesome you're awesome
@jpdominator
@jpdominator 3 жыл бұрын
Pretty funny
@noxiouspro
@noxiouspro 3 жыл бұрын
Where's the github repo url?
@NicolaiWeitkemper
@NicolaiWeitkemper 3 жыл бұрын
If the model doesn't know anything about your system, how does it know your partitions? Did you provide examples for this?
@riveducha
@riveducha 3 жыл бұрын
It doesn’t know anything about my partitions. If my hard drive were /dev/nvme0 then it would simply be wrong.
@NicolaiWeitkemper
@NicolaiWeitkemper 3 жыл бұрын
@@riveducha Got it. I misunderstood the part at 2:40, then.
@sargismartirosyan9946
@sargismartirosyan9946 Жыл бұрын
I saw your key 😂😁😁 now me and you have the key
@Hasi29347
@Hasi29347 3 жыл бұрын
So is this basically "A programmer's chatbot" ?
@cowswirl
@cowswirl 3 жыл бұрын
I didn't think that API keys resembled regular doorknob keys. Is that a joke?
@Teashrock212
@Teashrock212 3 жыл бұрын
And of course, this thing is not open-source, huh? I wonder if I should start my own AI projects and then give their technology to the humanity.
@riveducha
@riveducha 3 жыл бұрын
I think you would be interested in the group EleutherAI, who train and publish their own versions of GPT: www.eleuther.ai/faq/
@Teashrock212
@Teashrock212 3 жыл бұрын
@@riveducha Oh, thank you very much! I appreciate this.
@dionisii93
@dionisii93 3 жыл бұрын
now try it with gpt-neo
@elyahu5
@elyahu5 3 жыл бұрын
Try cowlick commands lol
@expensivecats
@expensivecats 2 жыл бұрын
Source code?
@riveducha
@riveducha 2 жыл бұрын
Yes, on the web page linked in the description.
@csolisr
@csolisr 3 жыл бұрын
You know, it's a shame that there's no open-source, self-hostable alternative to OpenAI, at least not for GPT-3
@MrTurboTash
@MrTurboTash 2 жыл бұрын
Yeah, kinda takes the open out of openAI
@jtgdyt2
@jtgdyt2 3 жыл бұрын
"download OpenAI for free"
I tried to make a Valorant AI using computer vision
19:23
River's Educational Channel
Рет қаралды 1,4 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 82 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:26
CRAZY GREAPA
Рет қаралды 22 МЛН
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 6 МЛН
OpenAI Codex Live Demo
29:43
OpenAI
Рет қаралды 884 М.
How A Steam Bug Deleted Someone’s Entire PC
11:49
Kevin Fang
Рет қаралды 942 М.
Abusing Raspberry Pi GPIO pins as a radio transmitter to control my ceiling fan
5:00
River's Educational Channel
Рет қаралды 30 М.
Learning Awk Is Essential For Linux Users
20:02
DistroTube
Рет қаралды 291 М.
Comparing C to machine language
10:02
Ben Eater
Рет қаралды 5 МЛН
Who Wins the Terminal Battle: Bash or Zsh?
4:12
Jeremy Shanks
Рет қаралды 12 М.
Why I Switched Back to Bash, And Why You Should Too
10:42
The Linux Cast
Рет қаралды 36 М.
Hack your brain with Obsidian.md
11:53
No Boilerplate
Рет қаралды 1,9 МЛН
Hacking My Ceiling Fan Radio Signal With a $15 USB TV Tuner (RTL2832U)
7:20
River's Educational Channel
Рет қаралды 15 М.
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН
НОВЫЕ ФЕЙК iPHONE 🤯 #iphone
0:37
ALSER kz
Рет қаралды 317 М.
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 10 МЛН
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 7 МЛН