Skip to content

Instantly share code, notes, and snippets.

View noeGnh's full-sized avatar
🤙
Yo !

Noé Gnanih noeGnh

🤙
Yo !
View GitHub Profile
@vikpe
vikpe / fix_authenticity_of_github_problem.md
Last active April 16, 2025 13:44
FIX: The authenticity of host github.com can't be established.

Error

The authenticity of host 'github.com (140.82.113.4)' can't be established.

Fix

ssh-keyscan github.com >> ~/.ssh/known_hosts
@pavankjadda
pavankjadda / How to fix gitignore not working issue.md
Last active April 24, 2025 15:39
How to fix "gitignore not working" issue

FYI: Created blog post with more details

How to fix ".gitignore not working" issue?

Sometimes git does not exclude files/folders added .gitignore especially if you had commited them before. Here is how to fix it. I am ignoring node_modules from Angular project as an example

  1. Update .gitignore with the folder/file name you want to ignore. You can use anyone of the formats mentioned below (prefer format1)
### Format1  ###
node_modules/
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active April 28, 2025 11:14
crack activate Office on mac with license file
@achesco
achesco / generate-mongo-ssl.md
Last active April 22, 2025 12:17
Generate self-signed SSL certificates for MongoDb server and client

CNs are important!!! -days 3650

Make PEM containig a public key certificate and its associated private key

openssl req -newkey rsa:2048 -new -x509 -days 3650 -nodes -subj '/C=US/ST=Massachusetts/L=Bedford/O=Personal/OU=Personal/[email protected]/CN=localhost' -out mongodb-cert.crt -keyout mongodb-cert.key
cat mongodb-cert.key mongodb-cert.crt > mongodb.pem
@simonhamp
simonhamp / AppServiceProvider.php
Last active April 7, 2025 20:15
A pageable Collection implementation for Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
class AppServiceProvider extends ServiceProvider
{
public function boot()