Skip to content

Instantly share code, notes, and snippets.

maestrojed

Block or report user

Report or block maestrojed

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Feed
{
"recipes":[
{
"Nid":"18018",
"PostDate":"01132020",
"UpdatedDate":"01132020",
"Title":"Announcement - The App is discontinues",
"BodyCopy":"",
"Summary":"The IBX app is discontinued.",
"Dek":"\u003Cp\u003EThe IBX app is discontinued.\u003C\/p\u003E\r\n",
@maestrojed
maestrojed / APIConfigForm.php
Created Oct 21, 2019
PHP Fatal error: Class 'Drupal\Core\Form\formBase' not found in modules/custom/my_module/src/Form/APIConfigForm.php on line 13
View APIConfigForm.php
<?php
namespace Drupal\my_module\Form;
use Drupal\Core\Form\formBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Component\Utility\UrlHelper;
/**
@maestrojed
maestrojed / config
Last active Jun 20, 2019
Two remotes meant to stay in sync (mostly)
View config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
precomposeunicode = true
excludesFile = .gitignore-local
[remote "origin"]
@maestrojed
maestrojed / composer_output.txt
Created Apr 18, 2019
Composer upgrade after upgrading core to 8.6.15
View composer_output.txt
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package doctrine/common could not be found in any version, there may be a typo in the package name.
Problem 2
- The requested package doctrine/annotations could not be found in any version, there may be a typo in the package name.
Problem 3
- The requested package zendframework/zend-feed could not be found in any version, there may be a typo in the package name.
Problem 4
- The requested package doctrine/common could not be found in any version, there may be a typo in the package name.
View sample.sql
SELECT
sum(r.`actualDuration`) as jobTimeRecorded,
b.`date` as invoiceCreated,
j.`jobNumber`,
j.`creationDate`,
j.`lastModified`,
co.`name` as companyName,
sum(t.`hourlyRate` * r.`actualDuration`) as testingCost,
js.value as jobStatus,
br.`value` as branchName,
View ModuleHanderInterface.php
<?php
interface ModuleHandlerInterface {
/**
* Returns the list of currently active modules.
*
* @return \Drupal\Core\Extension\Extension[]
* An associative array whose keys are the names of the modules and whose
* values are Extension objects.
View PermissionHandler.php
<?php
use Drupal\Core\Extension\ModuleHandlerInterface;
class PermissionHandler implements PermissionHandlerInterface {
/** SOME OTHER METHODS REMOVED TO BE CONSISE. **/
/**
* Returns all module names.
View Jan-29-2019-13-24-03-1234.log
testFile.txt
Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-141-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
@maestrojed
maestrojed / maestrojed.bash
Last active Jan 29, 2019
Redirect Output from remote connection using a heredoc
View maestrojed.bash
#!/usr/bin/env bash
# sets some vars so the editor doesn't report errors
deployID="1234" # A custom ID retrived in our script, for demo, hardcard
logFile=$(date +%b-%d-%Y-%H-%M-%S)-$deployID".log"
projectPath=${PWD}
sshUser="maestrojed"
sshHost="maestrojed.example.com"
set -x
View my.cnf
#performance Updates March 05 2018
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
query_cache_limit = 2M
query_cache_size = 0
query_cache_type = 0
join_buffer_size = 10M
tmp_table_size = 64M
You can’t perform that action at this time.