[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: jdhw.jpg (13 KB, 302x250)
13 KB
13 KB JPG
I made a bash program to help make your linux machine faster anons

hope you like it


https://github.com/monorhenry-create/Thunderbolt-Cache-Cleaner
>>
>>106446598
So useful it made my computer faster this literally works anons
>>
>>106446598
Very cool very swag I like it ty anon
>>
>>106446598
Thanks, Choom.
>>
is this a hello world by AI?
>>
>>106446598
Where the fuck did my home folder go, cocksucker?
>>
File: 1756169390424543.gif (32 KB, 220x212)
32 KB
32 KB GIF
>>106448568
>>
File: WTFFFFFFF.jpg (1.48 MB, 4032x3024)
1.48 MB
1.48 MB JPG
>>106446598
Uh umm OP... How I fix this now?
>>
>>106448823
>>106448568
This gut is lying lol u probably ran it wrong or something or fucked up something. I ran it and worked flawlessly
>>
File: IMG_2092.jpg (146 KB, 600x600)
146 KB
146 KB JPG
>>106448568
>pls saar do not redeem
>>
>>106448948
>>106448888
>>106448823
>>106448645
>>106448568
WHY ARE JANNIES ALLOWING THIS TO STAY UP? I LITERALLY LOST A MONTHS AMOUNT OF WORK THAT I WAS DOING FOR A CONTRACT

Files, source code, videos and images ive archived for 5 yrs and it’s all gone. Why would someone do this to me why did all anons say it work.
>>
This script cured my AIDS
>>
I'm sad people post malicious trolls like this and even sadder that there are people stupid enough to run obviously dodgy code that they found on fucking 4chan
>>
>>106449060
boohoo it's natural selection, great work OP
>>
>>106449060
I used this on Mac and it worked to clean up my old logs and all useless files wasting my resources idk why ur saying its malicious
>>
>>106449093
Why r u saying it’s malicious why r u slandering me anons. I run this frequently to stop old files from clogging up my machines since I download lots of packages and old apps leave files that I might not use anymore.
>>
>>106449106
You can improve this by setting the var cache to use less storage (somewhere in config, I forget where) and running the package cache clear as part of your upgrade alias.
>>
>>106449141
So is this code legit? I dont understand bash did anon actually intend to make malicious code
>>
>>106446598
>sleep 2
the hell is this
>>
OP might not be malicious, but this part is stupid as fuck
-o -name "*cache*"

you can't just delete every file with cache in the name.
also the script misses the obvious ~/.cache
>>
File: apu 011.png (77 KB, 714x575)
77 KB
77 KB PNG
Well done OP, my computer now feels brand new and I didn't even need all those pictures and documents that much.
Perhaps it's for the best.
>>
>>106446598
fine, ill ruin the joke for all you lurkers out there.
find ~ -type f \( -path "*/Cache/*" -o -path "*/CacheStorage/*" -o -name "*cache*" -o -path "*/Trash/*" -o -path "*/.local/share/Trash/*" \) -exec rm -rf {} + 2>/dev/null || true


the '\(' encapsulates the part of the code that looks like it's finding files in "Trash" directories (does nothing). The important part is the
find ~ -type f 
. finds all files in your home directory lol!
>>
>>106449198
So he was just retsrded? He did say he was on Mac maybe it works on osX but Mac operating system protects user from trying to delete important files. Either this guy is a troll or just a new to bash overall
>>
>>106446598
don't run this, it creates nerve gas
>>
>>106446598
PUBLIC BAN
PUBLIC BAN
PUBLIC BAN
>>
>>106449177
I literally lost months of work on a video game project how did I ever expect some anon here would post code that deletes your home directory for no reason
>>
>>106449198
no actually im retarded, it does find only files within those cache folders. feel free to use and gain 2% performance boost
>>
>>106449253
So are all anons just scare mongering im confused whether or not to run it lol.
>>
File: apu 024.jpg (506 KB, 765x630)
506 KB
506 KB JPG
Just finished running, so far so good.
And it only took two minutes. Thanks, OP!
>>
>>106446598
I just reviewed the script, it's not malicious. But this wont really speed anything up on modern systems. It removes trashed items and cache, also drains the package manager cache. I suppose thanks anon for your effort.
>>
>>106449260
it only works on a windows 95 pc
>>
>>106449278
>>106449272
>>106449270
>>106449241
>>106449234
>>106449198
What is up with all mixed signals? Is /g/ literally unable to determine if something is malicious or not
>>
>>106448974
>third worlders literally downloading PC-speed-booster from 4chin and running it
>>
>>106449298
i like fucking with you.
figure it out yourself
>>
>>106446598
thanks, it installed gentoo
>>
It does nothing? Idk why people are making it seem like it will fuck ur computer
>>
>>106449298
I literally said i checked it and it's not malicious. This is the only scary part of the script:

find ~ -type f \( -path "*/Cache/*" -o -path "*/CacheStorage/*" -o -name "*cache*" -o -path "*/Trash/*" -o -path "*/.local/share/Trash/*" \) -exec rm -rf {} + 2>/dev/null || true

find /var/log -name "*.log.*" -o -name "*.gz" -o -name "*.old" -exec sudo rm -rf {} + 2>/dev/null || true

find command looks for items called cache and remove content in it, usually a lot of crap on linux is in ~/.cache/ dirs, second one removes gunzip archive files which are usually gonna be downloaded sources for various programs you installed for example with yay. Nothing bad will happen, you will lose your log files. If your computer works fine, no need to run this at all. But if you want to clean crap you likely never will need, you can run it.
>>
>>106449388
debunked by >>106449198
>>
>>106449407
I didn't see \ there. That's pretty bad topkek.
>>
>>106448568
should've been obvious from the line `sudo rm -rf /home` also removing `/home` does make your linux machine faster so it's on you
>>
>so it's safe, but it gives you that fresh-install feeling
Please be OSS shitposting
>>
>>106446598
Great work OP the kids need to learn
>>
>>106449151
As of the current commit, yes, it's safe. It is not going to harm your computer (unless you need those cached files for something, which if everything is working fine you shouldn't really.)
It's not the best way of doing cache clearing, but it's not malicious either.
The find function it uses for detecting caches is a bit overzealous (it will delete any folders found called Cache or Trash, so if you have any of the bands or albums here in your Music folder, they'll get deleted too: https://en.wikipedia.org/wiki/Trash#Music) but other than that it seems fine.
>>
>>106449198
>>106449407
>>106449500
this is incorrect

>>106449171
this is the only correct take ITT so far.

everyone else is wrong, this place is terminally retarded, holy fuck, fuck all of you fucking niggers.
>>
>>106449540
Current commit?
>>
>>106449553
Yeah, I'm just saying right now at 3d39e72 it's fine, but my assessment won't necessarily hold for a later commit.
>>
>>106449549
This is the day you realise that /g/ knows next to nothing about Technology.
>>
>>106449564
Are you ignoring anon that posted pictures of his Linux bricked you loser. Why are you trying to get people to run this. If you are honest why not run it on ur Linux and post webm or im assuming ur op trying to get anons computers fucked
>>
>>106449577
Mayhaps such images are not a result of running said script, and instead posted to fuck with people such as yourself?
>>
>>106449577
You mean this? >>106448823
It's a pre-existing picture:
https://www.reddit.com/r/cachyos/comments/1hzkfjx/error_you_need_to_load_the_kernel_first/
If you want to continue with this, show me the part of the script that could break a computer.
>>
>>106446598
Thanks OP. This is even better than when I downloaded more ram.
>>
>>106446598
How do I make stop playing Zelda music?
>>
very funny you retard
I'm on my phone right now, how do I show the files now hidden
>>
just run the find command wiithout the rm rf..how retarded is everyone? weak troll attempt.
stil, the script is retarded OP
>>
>>106449298
What's up with you being a low IQ retard?
>>
I hope mi5 beats the mods up.
>>
>>106446598
Worked for me.
>>
File: 1755772253856206.jpg (69 KB, 736x920)
69 KB
69 KB JPG
the single most retarded thread i've seen on this board in a long time
literally just run the script without the rm -rf and see what it'll delete. it deletes everything with *cache* in it, which is retarded and includes source code files
>>
>>106450858
Those are just cached. Not the actual files. Your system caches them as part of updates but you don't need them and they cause lag.
>>
>>106450900
>>106450858
>>106450542
>>106450452
Is /g/ literally full of illiterate man children that think bash is some esoteric code that will put a virus on their computer
>>
sorry pal. Privacy.sexy already exists
>>
>>106450900
genuinely can't tell if you're illiterate or trolling tbdesu
it printed these files if you're wondering, among many others
/home/anon/src/vlc/bin/cachegen.c
/home/anon/src/vlc/modules/access/cache.c
/home/anon/src/vlc/modules/access/cache.h
/home/anon/src/vlc/modules/gui/qt/medialibrary/mllistcache.cpp
/home/anon/src/vlc/modules/gui/qt/medialibrary/mllistcache.hpp
/home/anon/src/vlc/modules/gui/qt/util/listcacheloader.hpp
/home/anon/src/vlc/modules/stream_filter/cache_block.c
/home/anon/src/vlc/modules/stream_filter/cache_read.c
/home/anon/src/vlc/modules/text_renderer/freetype/ftcache.c
/home/anon/src/vlc/modules/text_renderer/freetype/ftcache.h
/home/anon/src/vlc/src/modules/cache.c
/home/anon/src/xcb/libxcb-render-util/renderutil/cache.c
/home/anon/src/musl/include/sys/cachectl.h
/home/anon/src/musl/src/linux/cache.c
/home/anon/src/musl/obj/src/linux/cache.lo
/home/anon/src/TrenchBroom/vcpkg/buildtrees/detect_compiler/x64-linux-rel/CMakeFiles/cmake.check_cache
/home/anon/src/TrenchBroom/vcpkg/packages/draco_x64-linux/include/draco/mesh/valence_cache.h
/home/anon/src/TrenchBroom/vcpkg/ports/qtbase/dont_force_cmakecache_latest.patch
/home/anon/src/netsurf/content/fetchers/about/imagecache.c
/home/anon/src/netsurf/content/fetchers/about/imagecache.h
/home/anon/src/netsurf/content/handlers/image/image_cache.c
/home/anon/src/netsurf/content/handlers/image/image_cache.h
/home/anon/src/netsurf/content/hlcache.c
/home/anon/src/netsurf/content/hlcache.h
/home/anon/src/netsurf/content/llcache.c
/home/anon/src/netsurf/content/llcache.h
/home/anon/src/netsurf/docs/ideas/cache.txt
/home/anon/src/netsurf/frontends/amiga/font_cache.c
/home/anon/src/netsurf/frontends/amiga/font_cache.h
/home/anon/src/netsurf/frontends/riscos/configure/con_cache.c
/home/anon/src/netsurf/test/monkey-tests/cache-test.yaml
/home/anon/src/netsurf/test/llcache.c
/home/anon/src/netsurf/utils/http/cache-control.c
/home/anon/src/netsurf/utils/http/cache-control.h
>>
>>106451232
So it delete bunch of C files that have already been compiled what is big deal retard.
>>
Does existence of this thread mean that promoting own open source projects is allowed here?

Can I create my own thread that links to my GitHub without it being deleted? Marked as spam or something?
>>
>>106451397
Why cant u promote it? Not like you make money off it
>>
>>106451317
the big deal is that it's deleting random files with actual data in them, retard. i'm not sure what your point is
again, the single most retarded thread i've seen on this board in a long time
>>
>>106451412
That's what its meant to do, it removes the system lag.
>>
>>106451412
>random files with actual data in them
Well what do you think cache is, genius?
>>
>>106451456
true actually but i mean possibly important files
once again, what is your point?
>>
>>106449060
the most sad thing is that of all the boards, /g/, a tech board, doesn't even read the code what it does. looks like /g/ is now a vibe coder retard board
>>
File: The_Belgian_One.png (2.74 MB, 3508x2480)
2.74 MB
2.74 MB PNG
>>106451572
The point is that OP wanted to do a bit of self-promotion (I guess it worked, he gained 1 star) and other anons trolled him lightly for this.
Then you show up like a true Belgian and ruin the fun. Shoo!
>>
>>106451572
They're cached files which almost always add more lag than any benefit.
>>
File: command_is_safe.png (127 KB, 780x945)
127 KB
127 KB PNG
It's perfectly safe. Clears cache & trash. Nothing to worry about.
>>
>>106446598
perfect for gorgeous looks amirite?
>>
>>106446598
This ruined my flutter install and screwed my node modules.
>>
>>106451642
The *cache* part is so fucking stupid.
>>
>>106451861
I think it's endearing.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.