This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download last official driver | |
# (see here https://support.hp.com/de-de/drivers/selfservice/samsung-xpress-sl-m2070-laser-multifunction-printer-series/16450377) | |
wget https://ftp.hp.com/pub/softlib/software13/printers/SS/SL-M4580FX/uld_V1.00.39_01.17.tar.gz | |
# Unpack archive: | |
tar -xf uld_V1.00.39_01.17.tar.gz | |
# Move into driver folder: | |
cd uld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Disable ONLY_FULL_GROUP_BY MySQL option in Devilbox | |
; | |
; Add a file cfg/mysql-X.Y/custom.cnf (or any filename with .cnf extension) | |
; make sure to fit your "X.Y" MySQL version! | |
[mysqld] | |
sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.iconTheme": "eq-material-theme-icons", | |
"editor.fontSize": 16, | |
"window.zoomLevel": 0, | |
"emmet.triggerExpansionOnTab": true, | |
"sublimeTextKeymap.promptV3Features": true, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.snippetSuggestions": "top", | |
"editor.formatOnPaste": true, | |
"workbench.colorTheme": "Monokai Dark Soda", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Gulp boilerplate | |
* | |
* Requirements: | |
* - NodeJS (https://nodejs.org/) | |
* - Gulp (http://gulpjs.com/) | |
* | |
* Start new project: | |
* ``` | |
* mkdir project-name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Date conversion class. | |
*/ | |
class DateFormat { | |
/** | |
* Date format conversion. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements MY_THEME_preprocess_block(). | |
*/ | |
function MY_THEME_preprocess_block(&$variables) { | |
global $user; | |
$block =& $variables['block']; | |
if ($block->module == 'system' && $block->delta == 'user-menu' && user_is_logged_in()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* The description used as label of the link to the uploaded file has default lentgh=128 and size=60. | |
* With this function inside your custom module you can change these (and other) default options. | |
*/ | |
/** | |
* Implements hook_preprocess_file_widget(). | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_install(). | |
*/ | |
function my_module_install() { | |
// Create a new vocabulary, if don't exists | |
$vmn = 'my_vocabulary'; // Vocabulary Machine Name | |
$voc = taxonomy_vocabulary_machine_name_load($vmn); | |
if (!$voc) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_install(). | |
*/ | |
function customodule_install() { | |
node_types_rebuild(); | |
$types = node_type_get_types(); | |
node_add_body_field($types['my_content_type']); | |
add_custom_fields(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Toggle DIVs with radio buttons</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function() { | |
$("[name=toggler]").click(function(){ | |
$('.hide').hide(); | |
$("#div-" + $(this).val()).show(); | |
}); |
NewerOlder