bartobri/no-more-secrets: A command line tool that recreates the famous data decryption effect seen in the 1992 movie Sneakers.
https://github.com/bartobri/no-more-secrets
https://github.com/bartobri/no-more-secrets
GitHub
GitHub - bartobri/no-more-secrets: A command line tool that recreates the famous data decryption effect seen in the 1992 movie…
A command line tool that recreates the famous data decryption effect seen in the 1992 movie Sneakers. - bartobri/no-more-secrets
نوشتههای ترمینالی
یه آموزش همراه با تعریف کردن خاطره از docker و docker-compose خوبیش اینه که جای هر تکنولوژی براتون روشن میشه. https://softchris.github.io/pages/docker-concepts.html
یه آموزش فرمالتر از همین نویسنده برای مفاهیم و دستورات داکر و docker-compose
https://dev.to/softchris/5-part-docker-series-beginner-to-master-3m1b?wt.mc_id=academic-0000-chnoring
البته تو صفحه بالا، لینک قسمت اولش خرابه، برای همین اینجا میذارمش:
https://dev.to/azure/learn-docker-from-the-beginning-part-i-images-and-containers-2g6a
https://dev.to/softchris/5-part-docker-series-beginner-to-master-3m1b?wt.mc_id=academic-0000-chnoring
البته تو صفحه بالا، لینک قسمت اولش خرابه، برای همین اینجا میذارمش:
https://dev.to/azure/learn-docker-from-the-beginning-part-i-images-and-containers-2g6a
DEV Community
5 part Docker series, beginner to master
This is to tell you that I've written a 5 part Docker series that takes you all the way from beginner to proficient in Docker
👍1🔥1
اگه neovim دارید و یه کانفیگ به هم ریخته دارید
یا ویم رو تنظیم کردید و میخواید یه neovim به در بخور با پلاگین و auto complete داشته باشید این ویدیو میتونه کمکتون کنه
https://www.youtube.com/watch?v=w7i4amO_zaE
یا ویم رو تنظیم کردید و میخواید یه neovim به در بخور با پلاگین و auto complete داشته باشید این ویدیو میتونه کمکتون کنه
https://www.youtube.com/watch?v=w7i4amO_zaE
YouTube
0 to LSP : Neovim RC From Scratch
I setup the entire neovim experience from nothing to LSP!
Become a backend engineer. Its my favorite site
https://boot.dev/?promo=PRIMEAGENYT
This is also the best way to support me is to support yourself becoming a better backend engineer.
REPO: h…
Become a backend engineer. Its my favorite site
https://boot.dev/?promo=PRIMEAGENYT
This is also the best way to support me is to support yourself becoming a better backend engineer.
REPO: h…
👍5🔥4
یه مصاحبه با لینوس توروالدز که حرفای جالبی زده و سوالای مناسبی هم پرسیده شده
https://www.youtube.com/watch?v=o8NPllzkFhE
https://www.youtube.com/watch?v=o8NPllzkFhE
YouTube
The mind behind Linux | Linus Torvalds | TED
Linus Torvalds transformed technology twice — first with the Linux kernel, which helps power the Internet, and again with Git, the source code management system used by developers worldwide. In a rare interview with TED Curator Chris Anderson, Torvalds discusses…
🔥4👍1
نوشتههای ترمینالی
با / rm -rf ممکنه مادربوردتون brick بشه. چرا؟ چون پارتیشن mount شده از مادربورد دارید. پس در خانه امتحان نکنید https://www.techworm.net/2016/02/running-rm-rf-is-now-bricking-uefi-based-linux-systems.html
این دستور هم نزنید لطفا :)) مثل همون بالاییه که ریپلای کردم و خطرناکه. :))
نوشتههای ترمینالی
https://github.com/kaelzhang/shell-safe-rm یه wrapper برای rm اصلی سیستم که میاد و از یه سری اتفاقات ناگوار جلوگیری میکنه. مثلا اگه rm رو با این safe-rm، جایگزین کرده باشید (مثلا alias) دیگه اجازه rm -rf /* رو نمیده بهتون یا دایرکتوری های حساس رو گیر میده…
اینم دوباره یادآوری کنم برای جلوگیری از rm های خطرناک
👍6
منظور از کد pythonic چه کدیه؟
https://blog.startifact.com/posts/older/what-is-pythonic.html
https://blog.startifact.com/posts/older/what-is-pythonic.html
Secret Weblog
What is Pythonic?
What the heck does "pythonic" mean?
This was a question asked a few months ago, on, of all places, the
EuroPython mailing list, which is mainly used to plan the EuroPython
conference. It was an intere
This was a question asked a few months ago, on, of all places, the
EuroPython mailing list, which is mainly used to plan the EuroPython
conference. It was an intere
مفهوم closure در زبانهایی که از higher order function پشتیبانی میکنند وجود داره.
اینجا توضیح مفصلش در پایتون رو بخونیم:
https://www.scaler.com/topics/python/python-closure/
اینجا توضیح مفصلش در پایتون رو بخونیم:
https://www.scaler.com/topics/python/python-closure/
Scaler Topics
Python Closure | Closure in Python - Scaler Topics
Learn about closure in Python along with nested functions and non-local variables in nested functions. Scaler Topics also explains the benefits and properties of Python closure.
👍1🔥1
در مورد مفهوم cloud native
https://en.m.wikipedia.org/wiki/Cloud_native_computing
https://en.m.wikipedia.org/wiki/Cloud_native_computing
Wikipedia
Cloud-native computing
Cloud native computing is an approach in software development that utilizes cloud computing to "build and run scalable applications in modern, dynamic environments such as public, private, and hybrid clouds". These technologies such as containers, microservices…
هرچیزی که به عنوان برنامه نویس باید در مورد floating point بدونید:
https://ece.uwaterloo.ca/~dwharder/NumericalAnalysis/02Numerics/Double/paper.pdf
https://ece.uwaterloo.ca/~dwharder/NumericalAnalysis/02Numerics/Double/paper.pdf
👍1
این ابزار jq هم برای کار با json توی کامندلاین رو من زیاد استفاده کردم اخیرا.
یه اموزش مختصر ازش رو اینجا میتونید ببینید.
https://www.baeldung.com/linux/jq-command-json
به شکل پیشفرض فقط pretty print میکنه ولی کارهای دیگه مثل بیرون کشیدن اطلاعات یا حتی map کردن و min/max میشه باهاش انجام داد.
یه اموزش مختصر ازش رو اینجا میتونید ببینید.
https://www.baeldung.com/linux/jq-command-json
به شکل پیشفرض فقط pretty print میکنه ولی کارهای دیگه مثل بیرون کشیدن اطلاعات یا حتی map کردن و min/max میشه باهاش انجام داد.
Baeldung on Linux
Guide to Linux jq Command for JSON Processing | Baeldung on Linux
Explore the capabilities that jq provides for processing and manipulating JSON via the command line.
👍4🏆1
چرا و چه زمانی در سی do-while false در سی نیاز داریم؟
https://stackoverflow.com/questions/4674480/do-whilefalse-pattern
https://stackoverflow.com/questions/4674480/do-whilefalse-pattern
Stack Overflow
do while(false) pattern
Possible Duplicate:
Why use apparently meaningless do-while and if-else statements in macros?
Why is the do while(false) necessary in the macros below?
#define LOG(message, ...) \
do { \
Lock<
Why use apparently meaningless do-while and if-else statements in macros?
Why is the do while(false) necessary in the macros below?
#define LOG(message, ...) \
do { \
Lock<
🔥1
در مورد GraphQL این ویدیو جزو منابع آموزشی وبسایت رسمیش بود و خیلیم به نظرم خوب توضیح داده
https://youtu.be/UBGzsb2UkeY
https://youtu.be/UBGzsb2UkeY
YouTube
Zero to GraphQL in 30 Minutes – Steven Luscher
Spend this 30 minutes learning how to adapt your existing ORM, SOA, or REST API to GraphQL so that you can begin to use GraphQL-based technologies like Relay.
https://github.com/steveluscher/zero-to-graphql
Part of a series of tech talks at Facebook HQ…
https://github.com/steveluscher/zero-to-graphql
Part of a series of tech talks at Facebook HQ…
👍3
اگر بینهایت توان پردازشی داشته باشید با بینهایت زمان(!) آیا رمزنگاری های ما همچنان امن خواهد بود؟
معمولا خیر
اما یکسری الگوریتم وجود داره که اثبات میشه با بینهایت توان و زمان پردازشی همچنان امنه.
بهشون میگن information theoretic secure.
مثلاً اگه کامپیوتر های کوانتومی هم به اندازه کافی قوی بشن اینا همچنان مقاومن.
https://en.m.wikipedia.org/wiki/Information-theoretic_security
معمولا خیر
اما یکسری الگوریتم وجود داره که اثبات میشه با بینهایت توان و زمان پردازشی همچنان امنه.
بهشون میگن information theoretic secure.
مثلاً اگه کامپیوتر های کوانتومی هم به اندازه کافی قوی بشن اینا همچنان مقاومن.
https://en.m.wikipedia.org/wiki/Information-theoretic_security
Wikipedia
Information-theoretic security
security of a cryptosystem which derives purely from information theory
👍2
نوشتههای ترمینالی
اگر بینهایت توان پردازشی داشته باشید با بینهایت زمان(!) آیا رمزنگاری های ما همچنان امن خواهد بود؟ معمولا خیر اما یکسری الگوریتم وجود داره که اثبات میشه با بینهایت توان و زمان پردازشی همچنان امنه. بهشون میگن information theoretic secure. مثلاً اگه کامپیوتر…
حالا داستان چیه؟ الگوریتم های سنتی اصولاً برای سیستم های کامپیوتری سنتی، غیر قابل شکستن هستن و هرچیم بگذره و کامپیوتر ها قوی بشن، همچنان خیلی مشکلی براشون پیش نمیاد.
اما از طرفی کامپیوتر های کوانتومی تهدید مهمی محسوب میشن برای الگوریتم های رمزنگاری، چون که میتونن یکسری مسأله رو خیلی بهتر از کامپیوتر های سنتی حل کنن، چه مسائلی رو؟ همون مسائلی که الگوریتم های رمزنگاری فرض کردن که حلشون خیلی طول میکشه.
توی مطلب ۳ تا مساله رو نام میبره که امنیت الگوریتم های رمزنگاری (البته کلید نامتقارن) به حل نشدن اینا وابسته س، یکیش که من سر در میارم integer factorization ئه
در واقع الگوریتم میاد دو تا عدد اول بزرگ انتخاب میکنه و ضرب میکنه، حالا اکه بتونید اون عدد بزرگ نهایی رو به دو تا عدد اول بزرگ ها فاکتور بگیرید الگوریتم شکسته میشه.
کامپیوتر های کوانتومی با کمک الگوریتم شور ( algorithm Shor's ) میتونن این مسأله ها رو حل کنن.
البته فعلا (خیلی) نگران نباشید چون کامپیوتر های کوانتومی اونقدر قوی نیستن که این الگوریتم رو اجرا کنن ولی داره روش کار میشه
یه نکته هم که وجود داره اینه که این داستان ها بسیار برای شکستن رمزنگاری کلید نامتقارنه، اما کلید متقارن چی؟ نکته اینه که اون امنیت خوبی داره، به یک شرط، اگر کلید درست رو داری متوجه نشی کلیدت درسته! در واقع ویژگی های plain text رو بپوشونیم که راحت قابل تشخیص نباشه. (اگه نادقیق میگم بگید)
البته در کل الگوریتم های هش و رمزنگاری متقارن هم با کمک کوانتوم کامپیوتینگ قابل ضعیف شدن هست ولی کلیت الگوریتم لازم نیست تغییری کنه و همین که اندازه کلید بزرگ بشه کفایت میکنه.
https://en.m.wikipedia.org/wiki/Post-quantum_cryptography
اما از طرفی کامپیوتر های کوانتومی تهدید مهمی محسوب میشن برای الگوریتم های رمزنگاری، چون که میتونن یکسری مسأله رو خیلی بهتر از کامپیوتر های سنتی حل کنن، چه مسائلی رو؟ همون مسائلی که الگوریتم های رمزنگاری فرض کردن که حلشون خیلی طول میکشه.
توی مطلب ۳ تا مساله رو نام میبره که امنیت الگوریتم های رمزنگاری (البته کلید نامتقارن) به حل نشدن اینا وابسته س، یکیش که من سر در میارم integer factorization ئه
در واقع الگوریتم میاد دو تا عدد اول بزرگ انتخاب میکنه و ضرب میکنه، حالا اکه بتونید اون عدد بزرگ نهایی رو به دو تا عدد اول بزرگ ها فاکتور بگیرید الگوریتم شکسته میشه.
کامپیوتر های کوانتومی با کمک الگوریتم شور ( algorithm Shor's ) میتونن این مسأله ها رو حل کنن.
البته فعلا (خیلی) نگران نباشید چون کامپیوتر های کوانتومی اونقدر قوی نیستن که این الگوریتم رو اجرا کنن ولی داره روش کار میشه
یه نکته هم که وجود داره اینه که این داستان ها بسیار برای شکستن رمزنگاری کلید نامتقارنه، اما کلید متقارن چی؟ نکته اینه که اون امنیت خوبی داره، به یک شرط، اگر کلید درست رو داری متوجه نشی کلیدت درسته! در واقع ویژگی های plain text رو بپوشونیم که راحت قابل تشخیص نباشه. (اگه نادقیق میگم بگید)
البته در کل الگوریتم های هش و رمزنگاری متقارن هم با کمک کوانتوم کامپیوتینگ قابل ضعیف شدن هست ولی کلیت الگوریتم لازم نیست تغییری کنه و همین که اندازه کلید بزرگ بشه کفایت میکنه.
https://en.m.wikipedia.org/wiki/Post-quantum_cryptography
Wikipedia
Post-quantum cryptography
cryptography that is secure against quantum computers
👍2
Forwarded from Agora (Alireza)
«هنگ کرده؟ سیستمو ریست کن!»
TIP: REBOOT IS USEFUL
Earlier on, we noted that the only solution to infinite loops (and similar behaviors) under cooperative preemption is to reboot the machine. While you may scoff at this hack, researchers have shown that reboot (or in general, starting over some piece of software) can be a hugely useful tool in building robust systems [C+04].
Specifically, reboot is useful because it moves software back to a known and likely more tested state. Reboots also reclaim stale or leaked resources (e.g., memory) which may otherwise be hard to handle. Finally, reboots are easy to automate. For all of these reasons, it is not uncommon
in large-scale cluster Internet services for system management software to periodically reboot sets of machines in order to reset them and thus obtain the advantages listed above.Thus, next time you reboot, you are not just enacting some ugly hack. Rather, you are using a time-tested approach to improving the behavior of a computer system. Well done!
از کتاب Operating Systems Three Easy Pieces
TIP: REBOOT IS USEFUL
Earlier on, we noted that the only solution to infinite loops (and similar behaviors) under cooperative preemption is to reboot the machine. While you may scoff at this hack, researchers have shown that reboot (or in general, starting over some piece of software) can be a hugely useful tool in building robust systems [C+04].
Specifically, reboot is useful because it moves software back to a known and likely more tested state. Reboots also reclaim stale or leaked resources (e.g., memory) which may otherwise be hard to handle. Finally, reboots are easy to automate. For all of these reasons, it is not uncommon
in large-scale cluster Internet services for system management software to periodically reboot sets of machines in order to reset them and thus obtain the advantages listed above.Thus, next time you reboot, you are not just enacting some ugly hack. Rather, you are using a time-tested approach to improving the behavior of a computer system. Well done!
از کتاب Operating Systems Three Easy Pieces
👍5🔥4😱2
یه ویدیوی خیلی خوب با طول منطقی برای مفاهیم intermediate داکر
https://www.youtube.com/watch?v=_m9JYAvFB8s
https://www.youtube.com/watch?v=_m9JYAvFB8s
YouTube
Intro to Docker - Part 2 (Networking, Docker Compose)
In Intro to @DockerInc (Part 1), we learned about the fundamentals of Docker. In this video, we build on that knowledge and explain a few more concepts that are important to understand when using Docker, especially around networking which quickly comes up…
👍1
Forwarded from La3tKnight (Amir.)
هر چی از عاشقان ترمینال بگیم کم گفتیم 😂
📎soundcloud9000
ساوندکلاود داخل ترمینال
📎Calcure
تقویم تحت ترمینال
La3tKnight
📎soundcloud9000
ساوندکلاود داخل ترمینال
📎Calcure
تقویم تحت ترمینال
La3tKnight
😁6👍3👎3