Notes from reverse engineering serial protocol used by Radex One from Quarta
○ Examples
# GtkWindow3: restore focus on application start | |
# https://github.com/GNOME/gtk/blob/3.24.37/gtk/gtkwindow.c | |
Index: b/gtk/gtkwindow.c | |
=================================================================== | |
--- a/gtk/gtkwindow.c | |
+++ b/gtk/gtkwindow.c | |
@@ -6357,7 +6357,9 @@ gtk_window_map | |
/* inherit from transient parent, so that a dialog that is | |
* opened via keynav shows focus initially | |
*/ |
Notes from reverse engineering serial protocol used by Radex One from Quarta
○ Examples
<?php | |
function read_cb($ch, $fp, $length) { | |
return fread($fp, $length); | |
} | |
$fp = fopen('php://memory', 'r+'); | |
$string = "From: <no-reply@example.com>\r\n"; | |
$string .= "To: <hdogan@example.com>\r\n"; | |
$string .= "Date: " . date('r') . "\r\n"; | |
$string .= "Subject: Test\r\n"; |
# Customize BASH PS1 prompt to show current GIT repository and branch. | |
# by Mike Stewart - http://MediaDoneRight.com | |
# SETUP CONSTANTS | |
# Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
# I don't remember where I found this. o_O | |
# Reset | |
Color_Off="\[\033[0m\]" # Text Reset |
<?php | |
/* | |
* This script deletes duplicate images and imagerows from the database of which the images are not present in the filesystem. | |
* It also removes images that are exact copies of another image for the same product. | |
* And lastly, it looks for images that are on the filesystem but not in the database (orphaned images). | |
* | |
* This script can most likely be optimized but since it'll probably only be run a few times, I can't be bothered. | |
* | |
* Place scripts in a folder named 'scripts' (or similar) in the Magento root. |