for /f "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f" "%f")
for /f "Tokens=*" %g in ('dir /b') do (for /f "Tokens=*" %f in ('dir %~fg /l /b /a-d') do (rename "%~fg\%f" "%f"))
| 1. Rename the folder xampp/mysql/data to xampp/mysql/data_old (you can use any name) | |
| 2. Create a new folder xampp/mysql/data | |
| 3. Copy the content that resides in xampp/mysql/backup to the new xampp/mysql/data folder | |
| 4. Copy all your database folders that are in mysql/data_old to mysql/data (except mysql, performance_schema, and phpmyadmin folders from data_old) | |
| 5. Now copy the ibdata1 file from xampp/mysql/data_old and replace it inside xampp/mysql/data folder | |
| 6. You can start MySQL again from control panel now |
| $.validator.addMethod('intlTelInput', function (value, element) { | |
| return $(element).intlTelInput("isValidNumber"); | |
| }, commonjs_script_env.translate.phone_number); | |
| $.validator.addMethod('emailExt', function(value, element, param) { | |
| return value.match(/^[a-zA-Z0-9_\.%\+\-]+@[a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,}$/); | |
| }, commonjs_script_env.translate.email); |
| <!doctype html> | |
| <html class="no-js" lang=""> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>Ping</title> | |
| <meta name="description" content=""> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="apple-touch-icon" href="apple-touch-icon.png"> | |
| <style> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="refresh" content="0; url='URL_TO_REDIRECT'" /> | |
| <script type="text/javascript"> | |
| window.location.href = "URL_TO_REDIRECT" | |
| </script> | |
| </head> | |
| <body> | |
| <p>You will be redirected to URL_TO_REDIRECT soon!</p> |
| mysqldump -u root -p sakila > C:\MySQLBackup\sakila_20200424.sql |
| <?php if (strpos( $_SERVER['HTTP_ACCEPT'], 'image/webp' ) !== false) { ?> | |
| <section | |
| class="section" | |
| style="background-image:url(path-to-webp-image);" | |
| > | |
| <?php } else { ?> | |
| <section | |
| class="section" | |
| style="background-image:url(path-to-fallback-image);" | |
| > |
| /** | |
| * Returns a hash code for a string. | |
| * (Compatible to Java's String.hashCode()) | |
| * | |
| * The hash code for a string object is computed as | |
| * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] | |
| * using number arithmetic, where s[i] is the i th character | |
| * of the given string, n is the length of the string, | |
| * and ^ indicates exponentiation. | |
| * (The hash value of the empty string is zero.) |
for /f "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f" "%f")
for /f "Tokens=*" %g in ('dir /b') do (for /f "Tokens=*" %f in ('dir %~fg /l /b /a-d') do (rename "%~fg\%f" "%f"))
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.com | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
| * Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
| */ | |
| $args = array( |
| <html> | |
| <head> | |
| <script type="text/javascript" src="/jquery.min.js"></script> | |
| <title>Mime type checker</title> | |
| <script> | |
| $(function () { | |
| var result = $('div#result'); | |
| if (window.FileReader && window.Blob) { | |
| $('span#submit').click(function () { | |
| var files = $('input#file').get(0).files; |