If you get the following error when running wp
command
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 12288 bytes) in ....
You can overcome that the following way
php -d memory_limit=256M /usr/bin/wp
#!/bin/bash | |
################# | |
### VARIABLES ### | |
################# | |
NODE_VERSION="v18" | |
NPM_PACKAGES="yarn gulp standard" | |
BREW_ESSENTIALS="zsh zsh-autosuggestions zsh-syntax-highlighting vlc firefox brave-browser virtualbox virtualbox-extension-pack jq tmux nmap git pyenv" | |
BREW_DEV_TOOLS="tfenv vagrant packer ansible docker vagrant-manager rbenv ruby-build terraform-docs graphviz jq ffmpeg" |
version: '3.1' | |
services: | |
odoo: | |
image: odoo:17.0 | |
command: odoo --dev all | |
depends_on: | |
- db | |
ports: | |
- "8069:8069" |
# Scan for nearby Bluetooth LE devices and their services | |
# @credits: https://medium.com/@protobioengineering/how-to-make-a-detailed-bluetooth-le-scanner-with-a-macbook-and-python-8e2c7dccfd39 | |
# @install: pip install bleak | |
import asyncio | |
from bleak import BleakClient, BleakScanner | |
async def main(): | |
devices = await BleakScanner.discover() | |
for device in devices: |
// ==UserScript== | |
// @name Scroll Meetup Messages | |
// @namespace https://meetup.net/ | |
// @version 0.2 | |
// @description Script to scroll to the last message in your Inbox, and last member on a Meetup Group | |
// @author Alex B | |
// @match https://secure.meetup.com/messages/* | |
// @match https://www.meetup.com/*/members/ | |
// @grant none | |
// @require http://code.jquery.com/jquery-latest.js |
const AWS = require('aws-sdk') | |
const IS_OFFLINE = process.env.NODE_ENV !== 'production' | |
let options = {} | |
// connect to local DB if running offline | |
if (IS_OFFLINE) { | |
const DYNAMO_ENDPOINT = process.env.DYNAMO_ENDPOINT | |
options = { |
* alicloud_ess_alarm.alarm_up: CreateAlarm got an error: &errors.ServerError{httpStatus:400, requestId:"xxxx-xxxx", | |
hostId:"ess.eu-central-1.aliyuncs.com", errorCode:"InvalidParameter", recommend:"", | |
message:"The specified value of parameter \"MetricName\" is not valid.", comment:""}. |
If you get the following error when running wp
command
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 12288 bytes) in ....
You can overcome that the following way
php -d memory_limit=256M /usr/bin/wp
Chef High Availability: Backend Cluster and its not so common problems list.
chef-backend-ctl
commands are for backend nodeschef-server-ctl
commands are for frontend nodesversion: '3.1' | |
services: | |
db: | |
image: mariadb | |
restart: always | |
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci --init-connect='SET NAMES UTF8;' --innodb-flush-log-at-trx-commit=0 | |
ports: | |
- 3306:3306 |
Compilation of useful AWS CLI commands that I accumulate over time
Don't forget to export AWS_DEFAULT_PROFILE=MyMagicalAWSProfile
:)