#oneliner — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #oneliner, aggregated by home.social.
-
A #BASIC #oneliner from Rajiv Gatha for #AmstradCPC (published in "Amstrad Action", June 1987, p. 24:
10 MODE 0:s=306:WHILE(TEST(s+8,18))=0:TAG:MOVE s,14:PRINT CHR$(239);:MOVE RND(1)*620,399:PRINT CHR$(46);:TAGOFF:LOCATE 1,1:PRINT CHR$(11);CHR$(11);:s=s-((INKEY(71)+1) AND s>=0)*4:s=s+((INKEY(63)+1) AND s<=612)*4:WEND:PRINT"WHOOPS":FOR t=0 TO 1000:NEXT:RUN
-
A #BASIC #oneliner from Rajiv Gatha for #AmstradCPC (published in "Amstrad Action", June 1987, p. 24:
10 MODE 0:s=306:WHILE(TEST(s+8,18))=0:TAG:MOVE s,14:PRINT CHR$(239);:MOVE RND(1)*620,399:PRINT CHR$(46);:TAGOFF:LOCATE 1,1:PRINT CHR$(11);CHR$(11);:s=s-((INKEY(71)+1) AND s>=0)*4:s=s+((INKEY(63)+1) AND s<=612)*4:WEND:PRINT"WHOOPS":FOR t=0 TO 1000:NEXT:RUN
-
A #BASIC #oneliner from Rajiv Gatha for #AmstradCPC (published in "Amstrad Action", June 1987, p. 24:
10 MODE 0:s=306:WHILE(TEST(s+8,18))=0:TAG:MOVE s,14:PRINT CHR$(239);:MOVE RND(1)*620,399:PRINT CHR$(46);:TAGOFF:LOCATE 1,1:PRINT CHR$(11);CHR$(11);:s=s-((INKEY(71)+1) AND s>=0)*4:s=s+((INKEY(63)+1) AND s<=612)*4:WEND:PRINT"WHOOPS":FOR t=0 TO 1000:NEXT:RUN
-
A #BASIC #oneliner from Rajiv Gatha for #AmstradCPC (published in "Amstrad Action", June 1987, p. 24:
10 MODE 0:s=306:WHILE(TEST(s+8,18))=0:TAG:MOVE s,14:PRINT CHR$(239);:MOVE RND(1)*620,399:PRINT CHR$(46);:TAGOFF:LOCATE 1,1:PRINT CHR$(11);CHR$(11);:s=s-((INKEY(71)+1) AND s>=0)*4:s=s+((INKEY(63)+1) AND s<=612)*4:WEND:PRINT"WHOOPS":FOR t=0 TO 1000:NEXT:RUN
-
The art of #oneliner #programming - viewed from two very different perspectives: Edsger #Dijkstra and Donald #Knuth:
-
The art of #oneliner #programming - viewed from two very different perspectives: Edsger #Dijkstra and Donald #Knuth:
-
The art of #oneliner #programming - viewed from two very different perspectives: Edsger #Dijkstra and Donald #Knuth:
-
The art of #oneliner #programming - viewed from two very different perspectives: Edsger #Dijkstra and Donald #Knuth:
-
Generate perintah one-liner untuk membagi video dengan cepat dan efisien. Cocok untuk developer, content creator, dan pengguna FFmpeg.
#fediverse #Video #Splitter #OneLiner
https://dalam.web.id/olah-media/video-splitter-one-liner-generator
-
Jokes a Comin' #gaming #residentevil #streaming #horror #residentevilrequiem #funny #quip #oneliner #owncast #loops
I am a huge fan of this latest sitcom my guys.
Check out my livestream: https://dingusmacdongle.live
-
Jokes a Comin' #gaming #residentevil #streaming #horror #residentevilrequiem #funny #quip #oneliner #owncast #loops
I am a huge fan of this latest sitcom my guys.
Check out my livestream: https://dingusmacdongle.live
-
Jokes a Comin' #gaming #residentevil #streaming #horror #residentevilrequiem #funny #quip #oneliner #owncast #loops
I am a huge fan of this latest sitcom my guys.
Check out my livestream: https://dingusmacdongle.live
-
Jokes a Comin' #gaming #residentevil #streaming #horror #residentevilrequiem #funny #quip #oneliner #owncast #loops
I am a huge fan of this latest sitcom my guys.
Check out my livestream: https://dingusmacdongle.live
-
Jokes a Comin' #gaming #residentevil #streaming #horror #residentevilrequiem #funny #quip #oneliner #owncast #loops
I am a huge fan of this latest sitcom my guys.
Check out my livestream: https://dingusmacdongle.live
-
The 'pv' #Linux utility is quite nice as you can track any process read process with the -d option. But what if it is not installed?
p=long_run_prog_name; while pgrep $p >/dev/null; do echo $(date -Isec) $(awk -v s=$(stat -c %s infile) '/pos/{printf "%.3f %%\n", 100*$2/s}' $(eval echo /proc/{$(pgrep -d, $p)}/fdinfo/3) ); sleep 30;done
'infile' is the file read on file descriptor 3 (after fdinfo)
output for two proceeses:
2026-03-09T19:20:15+02:00 40.552 % 44.543 %
-
The 'pv' #Linux utility is quite nice as you can track any process read process with the -d option. But what if it is not installed?
p=long_run_prog_name; while pgrep $p >/dev/null; do echo $(date -Isec) $(awk -v s=$(stat -c %s infile) '/pos/{printf "%.3f %%\n", 100*$2/s}' $(eval echo /proc/{$(pgrep -d, $p)}/fdinfo/3) ); sleep 30;done
'infile' is the file read on file descriptor 3 (after fdinfo)
output for two proceeses:
2026-03-09T19:20:15+02:00 40.552 % 44.543 %
-
The 'pv' #Linux utility is quite nice as you can track any process read process with the -d option. But what if it is not installed?
p=long_run_prog_name; while pgrep $p >/dev/null; do echo $(date -Isec) $(awk -v s=$(stat -c %s infile) '/pos/{printf "%.3f %%\n", 100*$2/s}' $(eval echo /proc/{$(pgrep -d, $p)}/fdinfo/3) ); sleep 30;done
'infile' is the file read on file descriptor 3 (after fdinfo)
output for two proceeses:
2026-03-09T19:20:15+02:00 40.552 % 44.543 %
-
The 'pv' #Linux utility is quite nice as you can track any process read process with the -d option. But what if it is not installed?
p=long_run_prog_name; while pgrep $p >/dev/null; do echo $(date -Isec) $(awk -v s=$(stat -c %s infile) '/pos/{printf "%.3f %%\n", 100*$2/s}' $(eval echo /proc/{$(pgrep -d, $p)}/fdinfo/3) ); sleep 30;done
'infile' is the file read on file descriptor 3 (after fdinfo)
output for two proceeses:
2026-03-09T19:20:15+02:00 40.552 % 44.543 %
-
How to Swap Variables Without a Temp
Destructuring. One line. No third variable.
-
To search for Google API keys recursively in the current folder and its sub-folders with ripgrep:
rg 'AIza[0-9A-Za-z\-_]{35}' -o
Also shared on Shodan Snippets:
https://snippets.shodan.io/c/FHw2r7wWIFmjVAfG
#Security #OneLiner #Google #GoogleAPIKeys #APIkeys #ripgrep #Regex #BugBounty #Snippet
-
To search for Google API keys recursively in the current folder and its sub-folders with ripgrep:
rg 'AIza[0-9A-Za-z\-_]{35}' -o
Also shared on Shodan Snippets:
https://snippets.shodan.io/c/FHw2r7wWIFmjVAfG
#Security #OneLiner #Google #GoogleAPIKeys #APIkeys #ripgrep #Regex #BugBounty #Snippet
-
To search for Google API keys recursively in the current folder and its sub-folders with ripgrep:
rg 'AIza[0-9A-Za-z\-_]{35}' -o
Also shared on Shodan Snippets:
https://snippets.shodan.io/c/FHw2r7wWIFmjVAfG
#Security #OneLiner #Google #GoogleAPIKeys #APIkeys #ripgrep #Regex #BugBounty #Snippet
-
I found a useful Git one liner buried in leaked CIA developer docs
#HackerNews #Git #OneLiner #CIA #Docs #UsefulTips #DeveloperTools
-
I found a useful Git one liner buried in leaked CIA developer docs
#HackerNews #Git #OneLiner #CIA #Docs #UsefulTips #DeveloperTools
-
I found a useful Git one liner buried in leaked CIA developer docs
#HackerNews #Git #OneLiner #CIA #Docs #UsefulTips #DeveloperTools
-
I found a useful Git one liner buried in leaked CIA developer docs
#HackerNews #Git #OneLiner #CIA #Docs #UsefulTips #DeveloperTools
-
Co zrobić jeśli potrzebujesz szybko zdjąć hasło z PDF-a? Okazuje się, że nie trzeba wiele. Dla użytkowników Linuksa rozwiązaniem jest prosty one-liner :debian:
https://blog.narecki.name/na-szybko-jak-usunac-haslo-z-pdf-a
-
Co zrobić jeśli potrzebujesz szybko zdjąć hasło z PDF-a? Okazuje się, że nie trzeba wiele. Dla użytkowników Linuksa rozwiązaniem jest prosty one-liner :debian:
https://blog.narecki.name/na-szybko-jak-usunac-haslo-z-pdf-a
-
Co zrobić jeśli potrzebujesz szybko zdjąć hasło z PDF-a? Okazuje się, że nie trzeba wiele. Dla użytkowników Linuksa rozwiązaniem jest prosty one-liner :debian:
https://blog.narecki.name/na-szybko-jak-usunac-haslo-z-pdf-a
-
Co zrobić jeśli potrzebujesz szybko zdjąć hasło z PDF-a? Okazuje się, że nie trzeba wiele. Dla użytkowników Linuksa rozwiązaniem jest prosty one-liner :debian:
https://blog.narecki.name/na-szybko-jak-usunac-haslo-z-pdf-a
-
i dont know who needs to hear this... but this saved my day
`find . -mindepth 2 -type f -exec mv -n -t . {} + && find . -mindepth 1 -type d -empty -delete`
just flattens a folder, takes alllllll the sub folders and their sub folders and flattens them into the current dir.
-
#One-liner #Politics & #TuneTues What did the corrupt congressman order on Election Day? A: Stuffed ballots. If you’re not part of the solution, then you’re probably running for president. I think we should get rid of democracy. All in favor raise your hand. open.spotify.com/track/4YXbMk...
Only a Dream -
#One-liner #Politics & #TuneTues What did the corrupt congressman order on Election Day? A: Stuffed ballots. If you’re not part of the solution, then you’re probably running for president. I think we should get rid of democracy. All in favor raise your hand. open.spotify.com/track/4YXbMk...
Only a Dream -
#One-liner #Politics & #TuneTues What did the corrupt congressman order on Election Day? A: Stuffed ballots. If you’re not part of the solution, then you’re probably running for president. I think we should get rid of democracy. All in favor raise your hand. open.spotify.com/track/4YXbMk...
Only a Dream -
clear && echo "" && date | tr -d "\n" && uptime && echo ""
Output:
Sat Dec 20 12:18:53 GMT Standard Time 2025 12:18:53 up 5 days, 16:03, load average: 0.00, 0.00, 0.00
NB This #commandline #wizardry is a #busybox script running on #Windows11. Enjoy #DOScember.
-
Another of my #oneliner functions: play 50 random photos in fullscreen, each for 90 seconds.
find ~/Pictures/private/ -type f \( -iname "*.jpg" -o -iname "*.png" -o -iname "*.jpeg" \) -print0 | sort -zR | head -z -n 50 | xargs -0 mpv --image-display-duration=90 --loop-file=no --fs --autofit-larger=1920x1080
Change the path to match your environment and adapt the display duration & autofit to your liking and screen resolution.
Any suggestions? Let me know 🤓
-
Another of my #oneliner functions: play 50 random photos in fullscreen, each for 90 seconds.
find ~/Pictures/private/ -type f \( -iname "*.jpg" -o -iname "*.png" -o -iname "*.jpeg" \) -print0 | sort -zR | head -z -n 50 | xargs -0 mpv --image-display-duration=90 --loop-file=no --fs --autofit-larger=1920x1080
Change the path to match your environment and adapt the display duration & autofit to your liking and screen resolution.
Any suggestions? Let me know 🤓
-
Another of my #oneliner functions: play 50 random photos in fullscreen, each for 90 seconds.
find ~/Pictures/private/ -type f \( -iname "*.jpg" -o -iname "*.png" -o -iname "*.jpeg" \) -print0 | sort -zR | head -z -n 50 | xargs -0 mpv --image-display-duration=90 --loop-file=no --fs --autofit-larger=1920x1080
Change the path to match your environment and adapt the display duration & autofit to your liking and screen resolution.
Any suggestions? Let me know 🤓
-
🚀 "Port an entire library with just ONE sentence!" 😂 Because, who needs a whole team of developers when you’ve got #Slate, the magical agent that turns complex coding tasks into a single-liner? 🤖🌟 We’re all just one sentence away from being obsolete, apparently! 🙄
https://randomlabs.ai/blog/porting-a-library-with-slate #PortingLibraries #OneLiner #Magic #TechHumor #DevLife #HackerNews #ngated -
🚀 "Port an entire library with just ONE sentence!" 😂 Because, who needs a whole team of developers when you’ve got #Slate, the magical agent that turns complex coding tasks into a single-liner? 🤖🌟 We’re all just one sentence away from being obsolete, apparently! 🙄
https://randomlabs.ai/blog/porting-a-library-with-slate #PortingLibraries #OneLiner #Magic #TechHumor #DevLife #HackerNews #ngated -
#oneliner #reality #cybersecurity #technology #informatique
Les pirates d’hier volaient de l’or. Ceux d’aujourd’hui volent tes données bancaires en pyjama. -
#oneliner #reality #cybersecurity #technology #informatique
Les pirates d’hier volaient de l’or. Ceux d’aujourd’hui volent tes données bancaires en pyjama. -
#oneliner #reality #cybersecurity #technology #informatique
Les pirates d’hier volaient de l’or. Ceux d’aujourd’hui volent tes données bancaires en pyjama.