Skip to content

Instantly share code, notes, and snippets.

View w0rldart's full-sized avatar

Al w0rldart

View GitHub Profile
w0rldart / docker-compose.yaml
Last active February 19, 2024 16:36
Odoo 17 with docker compose watch
version: '3.1'
image: odoo:17.0
command: odoo --dev all
- db
- "8069:8069"
w0rldart /
Last active January 14, 2024 21:32
Bluetooth scanner via Bleak
# Scan for nearby Bluetooth LE devices and their services
# @credits:
# @install: pip install bleak
import asyncio
from bleak import BleakClient, BleakScanner
async def main():
devices = await
for device in devices:
w0rldart / scroll-meetup-messages.user.js
Last active March 12, 2020 15:08
Scroll to the last message on Meetup
// ==UserScript==
// @name Scroll Meetup Messages
// @namespace
// @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*
// @match*/members/
// @grant none
// @require
w0rldart / app.js
Last active May 20, 2023 20:31
NodeJS Lambda with DynamoDB setup for dev environment
const AWS = require('aws-sdk')
const IS_OFFLINE = process.env.NODE_ENV !== 'production'
let options = {}
// connect to local DB if running offline
options = {
* alicloud_ess_alarm.alarm_up: CreateAlarm got an error: &errors.ServerError{httpStatus:400, requestId:"xxxx-xxxx",
hostId:"", errorCode:"InvalidParameter", recommend:"",
message:"The specified value of parameter \"MetricName\" is not valid.", comment:""}.
w0rldart /
Created July 18, 2018 20:13
wp cli with increased memory_limit

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
w0rldart /
Last active July 14, 2021 15:32
Chef cluster recovery notes


Chef High Availability: Backend Cluster and its not so common problems list.


  • In my case, Chef HA setup is entirely on AWS but this can be translated to other vendors too
  • chef-backend-ctl commands are for backend nodes
  • chef-server-ctl commands are for frontend nodes


w0rldart / docker-compose.yaml
Last active February 12, 2024 15:49
MariaDB docker-compose with UTF8 Collation
version: '3.1'
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
- 3306:3306
w0rldart /
Last active January 29, 2018 11:38
Useful aws cli commands

Compilation of useful AWS CLI commands that I accumulate over time

Don't forget to export AWS_DEFAULT_PROFILE=MyMagicalAWSProfile :)