This file contains hidden or 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
| id: course_variation | |
| class: null | |
| field_plugin_method: null | |
| cck_plugin_method: null | |
| migration_tags: | |
| - 'Drupal 7' | |
| - Content | |
| migration_group: drupal_7 | |
| label: 'Course nodes' | |
| source: |
This file contains hidden or 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 | |
| namespace Drupal\migrate\Plugin\migrate\source; | |
| use Drupal\migrate\Row; | |
| use Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity; | |
| use Drupal\paragraphs\Plugin\migrate\field\FieldCollection; | |
| /** | |
| * Drupal 7 course variation source. |
This file contains hidden or 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
| $databases['migrate']['default'] = [ | |
| 'database' => 'database', | |
| 'username' => 'mysql', | |
| 'password' => 'mysql', | |
| 'host' => 'drupal_7', | |
| 'port' => '3306', | |
| 'driver' => 'mysql', | |
| 'prefix' => '', | |
| ]; |
This file contains hidden or 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
| systemctl status nginx |
This file contains hidden or 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
| crontab [ -u user ] [ -i ] { -e | -l | -r } | |
| (default operation is replace, per 1003.2) | |
| -e (edit user's crontab) | |
| -l (list user's crontab) | |
| -r (delete user's crontab) | |
| -i (prompt before deleting user's crontab) | |
| crontab -l -u www-data | |
| crontab -e -u www-data | |
| sudo service cron restart |
This file contains hidden or 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
| select table_name as "Table Name",sum(data_length+index_length)/1024/1024 as "Table Size in MB" from information_schema.tables; | |
| select table_name, table_rows FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'database name'; |
This file contains hidden or 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
| pragma solidity ^0.4.18; | |
| contract EmissaodeCertificados { | |
| string public nomeCurso = "Física"; | |
| string public nomeAluno = "Daniel M Medeiros"; | |
| string public emailAluno = "medeiros.danielm@gmail.com"; | |
| address public ProfessorResponsavel = 0xE2cA82616ef026ff45143705f63830F62Bf0aede; | |
| address public Aluno = 0xd4fd25d18118336e95016d532dad4b23d1610a5f; | |
| address public InstituicaoEmissora; | |
This file contains hidden or 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
| pragma solidity ^0.4.18; | |
| contract NomeDoContrato { | |
| // [tipo] [visibilidade] [nome] = [valor] [opcional] | |
| uint public idade = 10; | |
| string public nomeJogador = "Neymar Jr"; | |
| uint public numeroCamisa = 10; | |
| string public selecao = "Brasil"; | |
| address public dono; | |
This file contains hidden or 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
| pragma solidity ^0.4.18; | |
| contract ContratoQualquer { | |
| // variável qualquer | |
| string public valor; | |
| // função qualquer | |
| function alterarValor(string novoValor) public { | |
| valor = novoValor; | |
| } |
This file contains hidden or 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
| function hook_menu(){ | |
| $items = array(); | |
| $items['mycustompage/%'] = array( | |
| 'page arguments' => array(1), | |
| 'page callback' => 'page_example', | |
| 'access_callback' => TRUE, | |
| 'access arguments' => array('access content'), | |
| 'type' => MENU_CALLBACK, | |
| ); |
NewerOlder