Skip to content

Instantly share code, notes, and snippets.

View scud167's full-sized avatar

Gaël Héripret scud167

  • Lille, France
View GitHub Profile
@scud167
scud167 / LDAP_to_Excel.vba
Created February 22, 2022 15:13
Export LDAP depuis Excel
Type Type_AD_Extraction
User_Name As String
User_Login As String
User_Department As String
User_Company As String
User_Mail As String
User_TelephoneNumber As String
End Type
Sub Extract_AD_UserName_And_UserLogin()
@scud167
scud167 / Database.php
Last active November 24, 2021 23:52
Connexion base de donnée php
<?php class Database {
private static $dbName = 'nom_bdd' ;
private static $dbHost = 'localhost' ;
private static $dbUsername = 'root';
private static $dbUserPassword = 'mdp';
private static $cont = null;
public function __construct() {
die('Init function is not allowed');
}
public static function connect()
@scud167
scud167 / hackPwdExcel.vba
Created April 29, 2019 15:13
Retrait des protections de fichiers excel
Sub PasswordBreaker()
'Breaks worksheet password protection.
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
On Error Resume Next
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66