Skip to content

Instantly share code, notes, and snippets.

View jonnyeom's full-sized avatar
🍁
the great gatsby

Jonny Eom jonnyeom

🍁
the great gatsby
View GitHub Profile
@jonnyeom
jonnyeom / rector.php
Created December 8, 2023 17:16
Sample methodology to automate replacing api-platform 2.x deprecations
<?php
use Rector\Config\RectorConfig;
use Rector\Renaming\Rector\Name\RenameClassRector;
use Symfony\Component\Finder\Finder;
static $finder = new Finder();
$finder
->path('api-platform/core/src')
->name('deprecation.php')
@jonnyeom
jonnyeom / SampleUPSRateRequest.xml
Created May 9, 2018 19:36
A Sample UPS XML Request from their docs
<?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>Your Access License Number</AccessLicenseNumber>
<UserId>Your Username</UserId>
<Password>Your Password</Password>
</AccessRequest>
<?xml version="1.0"?>
<ShipmentConfirmRequest xml:lang="en-US">
<Request>
<TransactionReference>
@jonnyeom
jonnyeom / config.yml
Created September 12, 2017 18:01
Config.yml for drupal-vm issue #1544
---
# Available `vagrant_box` values include:
# - geerlingguy/centos7
# - geerlingguy/centos6
# - geerlingguy/debian9
# - geerlingguy/debian8
# - geerlingguy/ubuntu1604
# - geerlingguy/ubuntu1404
# - geerlingguy/ubuntu1204
vagrant_box: geerlingguy/ubuntu1204
@jonnyeom
jonnyeom / gist:d2871eb18e34105f3a6acce49a284111
Created September 12, 2017 17:56
Vagrant provision output
TASK [geerlingguy.apache : Enable Apache mods.] ********************************
ok: [project] => (item=expires.load)
ok: [project] => (item=ssl.load)
ok: [project] => (item=rewrite.load)
ok: [project] => (item=proxy.load)
failed: [project] (item=proxy_fcgi.load) => {"failed": true, "item": "proxy_fcgi.load", "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /etc/apache2/mods-available/proxy_fcgi.load", "path": "/etc/apache2/mods-enabled/proxy_fcgi.load", "src": "/etc/apache2/mods-available/proxy_fcgi.load", "state": "absent"}
to retry, use: --limit @/vagrant/vendor/geerlingguy/drupal-vm/provisioning/playbook.retry
@jonnyeom
jonnyeom / gist:6af122d82e4abd24d74a6589e08d674b
Created June 21, 2017 15:32
Vagrant Provision error with the msodbcsql package
TASK [Install mssql-tools.] ****************************************************
failed: [project] (item=[u'msodbcsql', u'mssql-tools']) => {"cache_update_time": 1498057704, "cache_updated": false, "failed": true, "item": ["msodbcsql", "mssql-tools"], "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'msodbcsql' 'mssql-tools'' failed: ERROR: The EULA was not accepted. Installation aborted.\nmssql-tools failed to preconfigure, with exit status 1\nE: Sub-process /usr/bin/dpkg returned an error code (1)\n", "stderr": "ERROR: The EULA was not accepted. Installation aborted.\nmssql-tools failed to preconfigure, with exit status 1\nE: Sub-process /usr/bin/dpkg returned an error code (1)\n", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following package was automatically installed and is no longer required:\n rlwrap\nUse 'sudo apt autoremove' to remove it.\nThe following additional packages wi