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 / parse_font_awsome_css.php
Created December 6, 2016 21:50
Font Awsome to PHP Array
View parse_font_awsome_css.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 ']';
nicelife90 /
Last active November 28, 2017 22:28 — forked from ghalusa/
Installing and Configuring FreeTDS on Ubuntu 14.04.4 LTS and Establish a Connection via PHP PDO
nicelife90 /
Created May 25, 2018 13:27
Linux - IPTABLES - Default Web Server Basic Firewall
## set default policies to let everything in
iptables --policy INPUT ACCEPT;
iptables --policy OUTPUT ACCEPT;
iptables --policy FORWARD ACCEPT;
## start fresh
nicelife90 / example.php
Created October 5, 2017 20:09
Acomba ODBC - PHP Query
View example.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 / decrapifier-v2.ps1
Created February 26, 2018 19:14
Decrapifier Version 2
View decrapifier-v2.ps1
#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.
nicelife90 / SerialPortManager.cs
Created July 2, 2021 04:18 — forked from heiswayi/SerialPortManager.cs
Singleton .NET SerialPort wrapper class | Blog:
View SerialPortManager.cs
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 / 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
View VMware vSphere 6.x Licence Keys
VMware vSphere 6 Enterprise Plus
VMware vSphere with Operations Management 6 Enterprise
nicelife90 / 10.xml
Created February 26, 2018 19:15
Windows 10 unattend
View 10.xml
<?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="" xmlns:xsi="">
<Manufacturer>Addison Électronique</Manufacturer>
<SupportPhone>(Yanick Lafontaine) 514-730-xxxx</SupportPhone>