Skip to content

Instantly share code, notes, and snippets.

View nicelife90's full-sized avatar
🌴
On vacation

Yanick Lafontaine nicelife90

🌴
On vacation
View GitHub Profile
@nicelife90
nicelife90 / 10.xml
Created February 26, 2018 19:15
Windows 10 unattend
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<OEMInformation>
<Manufacturer>Addison Électronique</Manufacturer>
<SupportHours>24/7</SupportHours>
<SupportPhone>(Yanick Lafontaine) 514-730-xxxx</SupportPhone>
</OEMInformation>
<CopyProfile>true</CopyProfile>
@nicelife90
nicelife90 / VMware vSphere 6.x Licence Keys
Created September 29, 2022 23:26 — forked from CHSuworatrai/VMware vSphere 6.x Licence Keys
VMware vSphere 6 and 7 Licence Keys
VMware vSphere 6 Enterprise Plus
1C20K-4Z214-H84U1-T92EP-92838
1A2JU-DEH12-48460-CT956-AC84D
MC28R-4L006-484D1-VV8NK-C7R58
5C6TK-4C39J-48E00-PH0XH-828Q4
4A4X0-69HE3-M8548-6L1QK-1Y240
VMware vSphere with Operations Management 6 Enterprise
4Y2NU-4Z301-085C8-M18EP-2K8M8
1Y48R-0EJEK-084R0-GK9XM-23R52
@nicelife90
nicelife90 / SerialPortManager.cs
Created July 2, 2021 04:18 — forked from heiswayi/SerialPortManager.cs
Singleton .NET SerialPort wrapper class | Blog: https://heiswayi.nrird.com/serialportmanager
/*
MIT License
Copyright (c) 2016 Heiswayi Nrird
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@nicelife90
nicelife90 / decrapifier-v2.ps1
Created February 26, 2018 19:14
Decrapifier Version 2
#Windows 10 Decrapifier 2.0: ULTRA-DECRAPIFIER
#2017 CSAND
#Dec 6 2017
#
#NEW STUFF: Nov 23 2017 - Fixed issue with sysprep /generalize. DmwApPushSvc needs to remain enabled for generalize to work. So I commented it out. Feel free to put it back in if you;re not planning to sysprep. WIll add
# a setting to keep it off at a later date.
#
#OFFICIAL DOWNLOAD:
#https://community.spiceworks.com/scripts/show/3298-windows-10-decrapifier-v2
#
@nicelife90
nicelife90 / example.php
Created October 5, 2017 20:09
Acomba ODBC - PHP Query
<?php
$dbq = "Driver={Acomba ODBC Driver};AcombaExe=C:\Users\ylafontaine\Desktop\Acomba;Dbq=\\\AD-FS01\acomba\F1000.DTA\Addison";
$conn = odbc_connect($dbq, "USER", "PASS");
if (!$conn) {
echo "Erreur au niveau de la connexion !!<br>";
}
else {
odbc_exec($conn, "BEGIN_TRANSACTION_IN");
$req = "SELECT * FROM Customer";
@nicelife90
nicelife90 / default-web-firewall.sh
Created May 25, 2018 13:27
Linux - IPTABLES - Default Web Server Basic Firewall
#!/bin/bash
##
## set default policies to let everything in
iptables --policy INPUT ACCEPT;
iptables --policy OUTPUT ACCEPT;
iptables --policy FORWARD ACCEPT;
##
## start fresh
@nicelife90
nicelife90 / freetds_install_ubuntu_14.md
Last active November 28, 2017 22:28 — forked from ghalusa/freetds_install_ubuntu_14.md
Installing and Configuring FreeTDS on Ubuntu 14.04.4 LTS and Establish a Connection via PHP PDO

Installing and Configuring FreeTDS on Ubuntu 14.04.4 LTS and Establish a Connection via PHP PDO


Install

sudo apt-get install -y unixodbc unixodbc-dev unixodbc-bin libodbc1 odbcinst1debian2 tdsodbc php5-odbc
@nicelife90
nicelife90 / parse_font_awsome_css.php
Created December 6, 2016 21:50
Font Awsome to PHP Array
<?php
$pattern = '/\.(fa-(?:\w+(?:-)?)+):before\s+{\s*content:\s*"\\\\(.+)";\s+}/';
$subject = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/css/font-awesome/css/font-awesome.css');
preg_match_all($pattern, $subject, $matches, PREG_SET_ORDER);
echo '$fa_icon = [';
foreach($matches as $match) {
echo "'$match[1]' => '<li class=\"fa $match[1]\"></li>',\n";
}
echo ']';