- Download and make it executable
wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64
sudo cp MailHog_linux_amd64 /usr/local/bin/mailhog
sudo chmod +x /usr/local/bin/mailhog
- Make MailHog as a service
import os | |
import glob | |
import subprocess | |
import sys | |
import shutil | |
import re | |
def install(package): | |
subprocess.check_call([sys.executable, "-m", "pip", "install", package]) |
//10+5*2 | |
const str = '10+5*2'; | |
let total = 0; | |
let currentNum = ''; | |
let operator = ''; | |
for (var i = 0; i < str.length; i++) { | |
if (parseInt(str[i]) > -1) { | |
currentNum = currentNum + str[i]; |
# Mailhog | |
MAIL_DRIVER=smtp | |
MAIL_HOST=0.0.0.0 | |
MAIL_PORT=1025 | |
MAIL_USERNAME=null | |
MAIL_PASSWORD=null | |
MAIL_ENCRYPTION=null |
from paypalrestsdk.resource import List, Find, Create, Post, Update, Replace, Resource | |
from paypalrestsdk.api import default as default_api | |
import paypalrestsdk.util as util | |
from paypalrestsdk.exceptions import MissingParam | |
class Sale(Find, Post): | |
"""Sale class wrapping the REST v1/payments/sale endpoint | |
Usage:: |
from celery import Celery | |
from celery.signals import after_task_publish,task_success,task_prerun,task_postrun | |
# first argument, current module | |
app = Celery('tasks') | |
app.config_from_object('celeryconfig') | |
# To instantiate celery and import this module | |
# do: celery -A task worker --loglevel=info | |
# after, once celery is running, instantiate a python console: |
# Empty |
For helpful resources on overriding Magento controllers, blocks, models, helpers, etc. see Josh Pratt's post on Magento: Overriding Core Files (Blocks, Models, Resources, Controllers)
Here's a list of search results that I've found most helpful; otherwise good luck with the Googling!
{"lastUpload":"2018-08-17T03:26:16.990Z","extensionVersion":"v3.0.0"} |
{"lastUpload":"2018-08-17T03:14:43.393Z","extensionVersion":"v3.0.0"} |