Skip to content

Instantly share code, notes, and snippets.

View geomtech's full-sized avatar
🏠
Working from home

Alexy Da Cruz geomtech

🏠
Working from home
View GitHub Profile
@geomtech
geomtech / heading.css
Created March 5, 2023 01:32
Heading CSS for editor.js to work with TailwindCSS
h1.ce-header {
font-size: 2.5em !important;
}
h2.ce-header {
font-size: 1.875em !important;
}
h3.ce-header {
font-size: 1.5em !important;
@geomtech
geomtech / months.py
Created January 24, 2022 10:03
A python dictionary of months numbers associated to theirs months names in french
months_num = { 1: 'Janvier',
2: 'Février',
3: 'Mars',
4: 'Avril',
5: 'Mai',
6: 'Juin',
7: 'Juillet',
8: 'Août',
9: 'Septembre',
10: 'Octobre',
# author : Alexy DA CRUZ
# command : create_accounts.ps1 "C:\...\truc.csv"
Import-Module ActiveDirectory
$ADUsers = Import-CSV "$args" -Delimiter ";"
foreach ($User in $ADUsers) {
$Username = $User.username
$Password = $User.password
# author : Alexy DA CRUZ
# command : ./create_group_foreach_organizational_unit.ps1
$ADOUs = Get-ADOrganizationalUnit -LDAPFilter '(name=*)' -SearchBase 'OU=Classe,OU=Accounts,DC=interne,DC=geomtech,DC=fr' -SearchScope OneLevel
foreach ($OU in $ADOUs)
{
$OUName = $OU.name
$OUDN = $OU.DistinguishedName