Skip to content

Instantly share code, notes, and snippets.

View tribulant's full-sized avatar

Tribulant tribulant

View GitHub Profile
myisamchk -v -r -f my_table
cd /var/lib/mysql/my_database/
@tribulant
tribulant / simplyelegant.html
Created August 10, 2017 15:00
Simply Elegant Newsletter Template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>[newsletters_subject]</title>
<style type="text/css" media="screen">
body {
background-color: #f5f6f4;
margin: 0;
padding: 0;
.modal-backdrop {
z-index: 999 !important;
}
.newsletters .modal-content,
.newsletters .modal-title {
color: #333 !important;
}
@tribulant
tribulant / sendbutton.php
Created June 27, 2017 20:09
Send Button Custom Message/Alert
<?php
function my_admin_head() {
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#sendbutton').on('click', function(event) {
alert('the send/queue button was clicked');
});
@tribulant
tribulant / newslettertemplate.html
Created April 6, 2017 14:36
Newsletter Template Media Query Ignore
...
</style>
<style type="text/css" data-premailer="ignore">
@media screen and (max-width: 660px) {
.anotherclass {
/* More CSS here for devices */
}
}
</style>
git reset --hard *commit hash*
git svn rebase
@tribulant
tribulant / php.ini
Created March 28, 2017 10:02
Disable APC
apc.enabled=0
<?php
global $SubscribersList;
$subscriber_id = 1;
$old_list_id = 1;
$new_list_id = 2;
// Delete the list association...
$Db -> model = $SubscribersList -> model;