Skip to content

Instantly share code, notes, and snippets.

View jamesmeneghello's full-sized avatar

James Meneghello jamesmeneghello

View GitHub Profile
@jamesmeneghello
jamesmeneghello / cps-issue-1828.patch
Last active December 19, 2015 09:49
Patch for CouchPotatoServer #1828
diff --git a/libs/enzyme/mp4.py b/libs/enzyme/mp4.py
index c53f30d..05c1630 100644
--- a/libs/enzyme/mp4.py
+++ b/libs/enzyme/mp4.py
@@ -347,7 +347,8 @@ class MPEG4(core.AVContainer):
tracktype = 'audio'
else:
log.debug(u' --> %r, %r (unknown)' % mdia)
-
+ if mdia[0] == 0:
regex.compile('alt\.binaries\.town', regex.I): [
CAT_PARENT_TV, CAT_PARENT_MOVIES
],
Index: pynab/parts.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- pynab/parts.py (revision 8f1d6e710d7bbfd60dc5c080a006594f972b43a0)
+++ pynab/parts.py (revision )
@@ -63,7 +63,7 @@
# leave off the comma
s.write('"' + part[item].replace('"', '\\"') + '"')
version: '3.5'
services:
postgres:
image: postgres:9.5.6-alpine
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 30s
max_attempts: 5
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
FROM apacheignite/ignite:latest
# install the psql client
RUN apk --update add postgresql-client && rm -rf /var/cache/apk/*
# Copy sh files and set permission
COPY run.sh $IGNITE_HOME/
# Grant permission to execute entry point
RUN chmod 555 $IGNITE_HOME/run.sh
#!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@jamesmeneghello
jamesmeneghello / script.js
Created January 29, 2025 03:32
Export Airfocus Tasks to Github
// Set an Airfocus view and set the filters you want, set a filter for appropriate options including `Integration is undefined`
// Then f12 and run this script in console. Change 'GitHub: Github' to the name of the integration.
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
(async function () {
for await (obj of document.querySelectorAll('[data-testid="table-row"]')) {
if (obj.querySelectorAll('img[alt="Github logo"]').length == 1) {
@jamesmeneghello
jamesmeneghello / bmad-workflow.html
Last active September 30, 2025 03:41
BMAD Workflow HTML Helper
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Development Workflow</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
max-width: 1000px;
@jamesmeneghello
jamesmeneghello / arch.md
Created January 15, 2026 23:48
Getting WebKitWebDriver working on Arch OS (for Tauri-Driver or other uses)

Building WebKitWebDriver on Arch Linux

WebKitWebDriver is required for E2E testing of WebKitGTK-based applications (like Tauri apps using tauri-driver). Unlike
Debian's webkit2gtk-driver package, Arch Linux's webkit2gtk packages do not include WebKitWebDriver. This guide shows how to build it from source.

Prerequisites