Skip to content

Instantly share code, notes, and snippets.

View AlainBartmanDilaw's full-sized avatar
Got this feeling in my body

Alain Léglise AlainBartmanDilaw

Got this feeling in my body
View GitHub Profile
@AlainBartmanDilaw
AlainBartmanDilaw / gist:4c53632a743482f4f6b49d36512822b5
Last active November 19, 2023 16:48
Modification des messages de commits
https://docs.github.com/fr/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/changing-a-commit-message
# Récupération des 3 derniers messages
git rebase -i HEAD~3
# Pousser les modifications
git push --force origin
@AlainBartmanDilaw
AlainBartmanDilaw / Master2Main.sh
Created May 10, 2023 07:38
Rename master to main operations
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
@AlainBartmanDilaw
AlainBartmanDilaw / Aes256CbcEncrypterApp.cs
Created December 1, 2022 16:52 — forked from doncadavona/Aes256CbcEncrypterApp.cs
A sample C# class to encrypt and decrypt strings using the cipher AES-256-CBC used in Laravel.
using System;
using System.Text;
using System.Security.Cryptography;
using System.Web.Script.Serialization;
using System.Collections.Generic;
namespace Aes256CbcEncrypterApp
{
class MainClass
{