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
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 |
/* | |
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 |
#!/bin/bash | |
## | |
## set default policies to let everything in | |
iptables --policy INPUT ACCEPT; | |
iptables --policy OUTPUT ACCEPT; | |
iptables --policy FORWARD ACCEPT; | |
## | |
## start fresh |
<?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> |
#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 | |
# |
sudo apt-get install -y unixodbc unixodbc-dev unixodbc-bin libodbc1 odbcinst1debian2 tdsodbc php5-odbc
<?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"; |
<?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 ']'; |