به نظرم سورس کد yay به عنوان یه پروژه قشنگ Go بخونید.
اونقدرم پیچیده نیست ولی زیباست.
https://github.com/Jguer/yay
اونقدرم پیچیده نیست ولی زیباست.
https://github.com/Jguer/yay
GitHub
GitHub - Jguer/yay: Yet another Yogurt - An AUR Helper written in Go
Yet another Yogurt - An AUR Helper written in Go. Contribute to Jguer/yay development by creating an account on GitHub.
اشتباهات برنامه نویسات مبتدی
https://jscomplete.com/learn/pro-programmer/beginner-programmers-mistakes
https://jscomplete.com/learn/pro-programmer/beginner-programmers-mistakes
jsComplete.com
Beginner Programmers' Mistakes :: The Professional Programmer
The mistakes beginner programmers usually make. Learn to identify these situations and avoid them. :: My tips and advice on your journey from a beginner programmer into a professional one
شاید براتون پیش اومده باشه که چطوری خود gitignore رو از git ایگنور کنیم؟
برای اینکار دو تا ایده هست.
اولی
https://luisdalmolin.dev/blog/ignoring-files-in-git-without-gitignore/
دومی هم igtignore سراسری
https://stackoverflow.com/questions/7335420/global-git-ignore
برای اینکار دو تا ایده هست.
اولی
.git/info/exclude
https://luisdalmolin.dev/blog/ignoring-files-in-git-without-gitignore/
دومی هم igtignore سراسری
https://stackoverflow.com/questions/7335420/global-git-ignore
Stack Overflow
Global Git ignore
I want to set up Git to globally ignore certain files.
I have added a .gitignore file to my home directory (/Users/me/) and I have added the following line to it:
*.tmproj
But it is not ignoring ...
I have added a .gitignore file to my home directory (/Users/me/) and I have added the following line to it:
*.tmproj
But it is not ignoring ...
👍2
آیا امنه که یه برنامه سی رو فقط کامپایل کنیم؟ (ران نه)
جواب اینه که متاسفانه نه.
https://security.stackexchange.com/questions/138881/is-it-dangerous-to-compile-arbitrary-c
جواب اینه که متاسفانه نه.
https://security.stackexchange.com/questions/138881/is-it-dangerous-to-compile-arbitrary-c
Information Security Stack Exchange
Is it dangerous to compile arbitrary C?
I have a small server and I would like to check compile times on C programs provided by users. The programs would never be run only compiled.
What risks are there to allowing users to compile
What risks are there to allowing users to compile
آیا داشتن کامپایلر قدیمی ریسک امنیتیه؟
خلاصه: جدیدش یه جور ریسکه، قدیمیش یه جور.
پاک کنید بره اصلا.
https://stackoverflow.com/questions/37479403/is-using-an-outdated-c-compiler-a-security-risk
خلاصه: جدیدش یه جور ریسکه، قدیمیش یه جور.
پاک کنید بره اصلا.
https://stackoverflow.com/questions/37479403/is-using-an-outdated-c-compiler-a-security-risk
Stack Overflow
Is using an outdated C compiler a security risk?
We have some build systems in production which no one cares about and these machines run ancient versions of GCC like GCC 3 or GCC 2.
And I can't persuade the management to upgrade it to a more re...
And I can't persuade the management to upgrade it to a more re...
آموزش ویم: هرجا اشتباه کردی u رو بزنی مثل undo عمل میکنه.
من که اشتباهی u زدم و ناخواسته undo شده با زدن مجدد u:
🧐🧐
من که اشتباهی u زدم و ناخواسته undo شده با زدن مجدد u:
🧐🧐
چرا رزومه شما خونده نمیشه؟
و نکات خوبی برای بهتر ایمیل اپلای کاری زدن
https://medium.com/who-what-why/why-i-didn-t-look-at-your-resume-2a8ed1f4a5bb
و نکات خوبی برای بهتر ایمیل اپلای کاری زدن
https://medium.com/who-what-why/why-i-didn-t-look-at-your-resume-2a8ed1f4a5bb
Medium
Why I didn’t look at your resume
I’m frustrated.
اگر میخواین آدرس آیپی یه url از dns خونده نشه، داخل فایل /etc/hosts یه خط اضافه کنین. (با قالب باقی سطر هاش)
حالا اگر میخواین تست کنین از nslookup استفاده نکنین چون این دقیقا میره از dns میخونه.
بلکه با ping تست کنین که ip ای که خودتون ست کردین رو میخونه یا نه.
حالا اگر میخواین تست کنین از nslookup استفاده نکنین چون این دقیقا میره از dns میخونه.
بلکه با ping تست کنین که ip ای که خودتون ست کردین رو میخونه یا نه.
تو نسخه های جدید maven از repository های http دانلود نمیکنه.
دو تا کار میشه کرد، آدرس اون repo رو https کنین
راه دوم هم اینکه به عنوان unsecure source بگین که بخونه حتما.
دو تا کار میشه کرد، آدرس اون repo رو https کنین
راه دوم هم اینکه به عنوان unsecure source بگین که بخونه حتما.
چرا اسم صفحه پیشفرضی که توی یه پوشه توسط وب سرور برگردونده میشه index.htmlئه؟
https://www.quora.com/Why-is-the-default-html-file-called-index-html
https://www.quora.com/Why-is-the-default-html-file-called-index-html
Quora
Why is the default html file called index.html?
Answer (1 of 5): The original idea was that navigating to a particular directory would simply list the files in it, just like clicking on a folder on your desktop, but if you preferred you could provide your own custom index of the files. You specified this…
اسیب پذیری سرور به خاطر pickle! مطلب جالبی بود.
https://memoryleaks.ir/escalate-to-backend-from-redis-cache/
https://memoryleaks.ir/escalate-to-backend-from-redis-cache/
مموریلیکس - نگاشتههایی پیرامون امنیت، شبکه و رمزنگاری
چرا باید از باز بودن Redis Cache بیشتر بترسیم؟ - مموریلیکس - نگاشتههایی پیرامون امنیت، شبکه و رمزنگاری
استفاده از Redis Cache در اپلیکیشنهای وب متداول است. به علت سادگی راهاندازی (در حد docker run redis)، ممکن است در تنظیمات امنیتی Redis سهلانگاری شود و این دیتابیس در دسترس نفوذگران قرار گیرد. پیشتر ذهنیتم این بود که اگر روزی موفق به نفوذ به یک Redis شوم،…
گذاشتن دیتابیس روی static host
به نظرم جدا کار های عجیبی با وباسمبلی و دام و .. کرده، اگر سر در میارید ببینید.
https://phiresky.github.io/blog/2021/hosting-sqlite-databases-on-github-pages/
به نظرم جدا کار های عجیبی با وباسمبلی و دام و .. کرده، اگر سر در میارید ببینید.
https://phiresky.github.io/blog/2021/hosting-sqlite-databases-on-github-pages/
phiresky.github.io
Hosting SQLite databases on Github Pages - (or IPFS or any static file hoster) - phiresky's blog
I was writing a tiny website to display statistics of how much sponsored content a Youtube creator has over time when I noticed that I often write a small tool as a website that queries some data from a database and then displays it in a graph, a table, or…
در صورتی که میخواین یه کارکتر با کد اسکی خاص وارد کنین (در ویم)
اول وارد insert mode بشین
بعد Ctrl-v رو بزنین
بعد کد سه رقمی کارکترتون رو وارد کنین. اگه ۲ رقمی یا کمتره قبلش صفر بزنین مثلا اگه بزنین ۰۶۵ میشه A
اول وارد insert mode بشین
بعد Ctrl-v رو بزنین
بعد کد سه رقمی کارکترتون رو وارد کنین. اگه ۲ رقمی یا کمتره قبلش صفر بزنین مثلا اگه بزنین ۰۶۵ میشه A
A bug in a programmer’s computer program leads him and his co-workers through an investigation down the stack to a frightening realisation about trust and reality.
https://www.teamten.com/lawrence/writings/coding-machines/
https://www.teamten.com/lawrence/writings/coding-machines/
پیاده سازی ساختمان دادهی set به شکل thread safe و غیر thread safe در go
https://bbengfort.github.io/2018/01/go-set/
https://bbengfort.github.io/2018/01/go-set/
Libelli
Thread and Non-Thread Safe Go Set
I came across this now archived project that implements a set data structure in Go and was intrigued by the implementation of both thread-safe and non-thread-safe implementations of the same data structure. Recently I’ve been attempting to get rid of locks…
آیا ابزار های posixی اولیه، به شکل موازی اجرا میشن؟
https://newbedev.com/are-basic-posix-utilities-parallelized
(جواب اینه که اکثرا نه، باقی هم به شکل دیفالت نه)
https://newbedev.com/are-basic-posix-utilities-parallelized
(جواب اینه که اکثرا نه، باقی هم به شکل دیفالت نه)
NewbeDEV
Are basic POSIX utilities parallelized? | Newbedev
You can get a first impression by checking whether the utility is linked with the pthread library. Any dynamically linked program that uses OS threads should us
دستورات bash به شکل sequential اجرا میشن، حالا چی میشه اگه بخوایم به ازای هر خط یک ورودی (مثلا خروجی دستور قبلی) یک ترد جدید بسازیم و اونجا اجرا کنیم؟
مثلا فکر کنید میخوایم ۱۰۰ تا عملیات mv انجام بدیم. اگه توی for بنویسیم باید اولی تموم بشه تا دومی شروع بشه.
اما با کمک gnu parallel میتونیم این کارو به شکل parallel انجام بدیم.
https://opensource.com/article/18/5/gnu-parallel
مثلا فکر کنید میخوایم ۱۰۰ تا عملیات mv انجام بدیم. اگه توی for بنویسیم باید اولی تموم بشه تا دومی شروع بشه.
اما با کمک gnu parallel میتونیم این کارو به شکل parallel انجام بدیم.
https://opensource.com/article/18/5/gnu-parallel
Opensource.com
Get more done at the Linux command line with GNU Parallel
Do you ever get the funny feeling that your computer isn't quite as fast as it should be? I used to feel that way, and then I found GNU Parallel.