PHPnews.io

Overview for 'alfrednutile'

Lambda Tips

Written by Alfred Nutile RSS / Original link on Aug. 1, 2019

@WIP ## Taking advantage of a running Lambda function and it's state [https://aws.amazon.com/blogs/compute/sharing-secrets-with-aws-lambda-using-aws-systems-manager-parameter-store/](https://aws.amazon.com/blogs/compute/sharing-secrets-with-aws-lambda-using-aws-systems-manager-parameter-store/) und…


Mocking in Python

Written by Alfred Nutile RSS / Original link on Jul. 3, 2019

Serious note to self. I wanted to mock the Github module for python. My simple class will get the ID of the team. ``` from github import Github, Team from dotenv import load_dotenv import os import sys import json class GetTeamId: def __init__(self): load_dotenv() self.team_id = 5555 self.token =…


Mocking in Python

Written by Alfred Nutile RSS / Original link on Jul. 3, 2019

Serious note to self. I wanted to mock the Github module for python. My simple class will get the ID of the team. ``` from github import Github, Team from dotenv import load_dotenv import os import sys import json class GetTeamId: def __init__(self): load_dotenv() self.team_id = 5555 self.token =…


Mocking in Python

Written by Alfred Nutile RSS / Original link on Jun. 27, 2019

Serious note to self. I wanted to mock the Github module for python. My simple class will get the ID of the team. ``` from github import Github, Team from dotenv import load_dotenv import os import sys import json class GetTeamId: def __init__(self): load_dotenv() self.team_id = 5555 self.token =…


Mocking in Python

Written by Alfred Nutile RSS / Original link on Jun. 26, 2019

Serious note to self. I wanted to mock the Github module for python. My simple class will get the ID of the team. ``` from github import Github, Team from dotenv import load_dotenv import os import sys import json class GetTeamId: def __init__(self): load_dotenv() self.team_id = 5555 self.token =…


PHP Xdebug Visual Code

Written by Alfred Nutile RSS / Original link on Mar. 28, 2019

This article got me going on using Xdebug [https://tighten.co/blog/configure-vscode-to-debug-phpunit-tests-with-xdebug](https://tighten.co/blog/configure-vscode-to-debug-phpunit-tests-with-xdebug) But since 7.2 it has been tricky on the Mac. ``` pecl install xdebug ``` Then `vim /usr/local/etc/php/…