#Mysql: Backup and Restore
Mysql Backup and restore through command line.
mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
mysqldump -u root -p --all-databases > alldb.sql
// Map Object Type | |
const objMap: Record<string, string> = { | |
alu: 'mula', | |
}; |
console.log(add(5, 7)) // 12 | |
console.log(add(5)(7)) // 12 | |
console.log(add(3)(7)) // 10 | |
function greet(greeting, punctuation) { | |
return greeting + ' ' + this.user + punctuation; | |
} |
jest.mock('./embed-code/embed-code', () => { | |
return { | |
__esModule: true, | |
default: () => { | |
return <div>Embed component goes here</div>; | |
}, | |
}; | |
}); |
$('form.claim-details input, form select, form textarea').each(function () { | |
this.backup = this.value; | |
}); | |
$('form.claim-details').on('change keyup', 'input,select,textarea', function () { | |
if (this.value !== this.backup) { | |
this.backup = this.value; | |
this.form.isDirty = true; | |
//$(this).addClass('field-dirty'); | |
//$(this.form).addClass('form-dirty'); | |
//console.log('form is dirty'); |
git rm -r --cached . | |
git add . | |
git commit -m "fixed untracked files" |
<?php | |
$to = 'asif.saho@gmail.com'; | |
$subject = 'Email Template Testing'; | |
$headers = "From: " . "alu@mula.com" . "\r\n"; | |
$headers .= "Reply-To: ". "alu@mula.com" . "\r\n"; | |
$headers .= "MIME-Version: 1.0\r\n"; | |
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; |
function custom_pagination() { | |
global $wp_query; | |
$big = 999999999; // need an unlikely integer | |
$pages = paginate_links( array( | |
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), | |
'format' => '?paged=%#%', | |
'current' => max( 1, get_query_var('paged') ), | |
'total' => $wp_query->max_num_pages, | |
'prev_next' => false, | |
'type' => 'array', |
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); |