Skip to content

Instantly share code, notes, and snippets.

View MarkVilludo's full-sized avatar
🎯
Happy to develop new things.

Mark Villudo MarkVilludo

🎯
Happy to develop new things.
View GitHub Profile
@MarkVilludo
MarkVilludo / TailwindCSS_v3.0-Using-PostCSS-PUBLIC.md
Created November 10, 2023 06:19 — forked from xpharsh/TailwindCSS_v3.0-Using-PostCSS-PUBLIC.md
Setting up Tailwind CSS v3.0 - Using PostCSS

Setting up Tailwind CSS v3.0 - Using PostCSS

Follow the Steps given blow to install Tailwind CSS for fresh development for HTML

Install & Setting up - Tailwind and PostCSS

Step 1 - Install Tailwind CSS

Install tailwindcss and its peer dependencies via npm, and create your tailwind.config.js file.

Code 1

<?php
$ldap_dn = "uid=".$_POST["username"].",dc=example,dc=com";
$ldap_password = $_POST["password"];
$ldap_con = ldap_connect("ldap.forumsys.com");
ldap_set_option($ldap_con, LDAP_OPT_PROTOCOL_VERSION, 3);
if(@ldap_bind($ldap_con,$ldap_dn,$ldap_password))
echo "Authenticated";
@MarkVilludo
MarkVilludo / user.js
Created March 20, 2019 08:43 — forked from EtienneR/user.js
XMLHttpRequest RESTful (GET, POST, PUT, DELETE)
// Get all users
var url = "http://localhost:8080/api/v1/users";
var xhr = new XMLHttpRequest()
xhr.open('GET', url, true)
xhr.onload = function () {
var users = JSON.parse(xhr.responseText);
if (xhr.readyState == 4 && xhr.status == "200") {
console.table(users);
} else {
console.error(users);

XAMPP - Replacing MariaDB with MySQL

As of XAMPP 5.5.30 and 5.6.14, XAMPP ships MariaDB instead of MySQL. MariaDB is not 100% compatible with MySQL and can be replaced with the "orginal" MySQL server.

Requirements

  • Windows
  • XAMPP for Windows
  • Administrator privileges to restart Windows services
#!/usr/bin/env bash
# curl -LO https://gist.githubusercontent.com/mannysoft/e4b54662b3aec5c0b1b88be52177ab68/raw/04dba433394c7a03d891f94c75b52975d2e7a621/install.sh
# chmod +x install.sh
# ./install.sh
# ppk to pem:
# puttygen key.ppk -O private-openssh -o key.pem
echo "--- Welcome User. This is very exciting. ---"
echo "--- Updating packages list ---"