Skip to content

Instantly share code, notes, and snippets.

View wzieba's full-sized avatar
🏎️

Wojciech Zięba wzieba

🏎️
View GitHub Profile
"""
Basic skeleton of a mitmproxy addon.
Run as follows: mitmproxy -s anatomy.py
"""
import json
import os
# File to store events
struct GravatarProfileSheet: View {
@Environment(\.presentationMode) var presentationMode
@State private var isLoading = true
var email: String
var body: some View {
NavigationView {
VStack {
ProfileViewControllerWrapper(email: email)
@wzieba
wzieba / buildEnvironment
Last active August 8, 2024 08:18
wordpress-rs kotlin downgrade
> Task :buildEnvironment
------------------------------------------------------------
Root project 'wordpress-rs'
------------------------------------------------------------
classpath
+--- com.android.application:com.android.application.gradle.plugin:8.5.1
| \--- com.android.tools.build:gradle:8.5.1
| +--- com.android.tools.build:gradle-settings-api:8.5.1
@wzieba
wzieba / 55199e2344e932ec3dc85f99202bd95c3b7f4199
Created February 21, 2024 12:08
diff-55199e2344e932ec3dc85f99202bd95c3b7f4199
From 55199e2344e932ec3dc85f99202bd95c3b7f4199
// Automatically generated file. DO NOT MODIFY
package org.wordpress.android.util.config
import kotlin.String
import kotlin.collections.List
public object FeaturesInDevelopment {
public val featuresInDevelopment: List<String> = listOf(
@wzieba
wzieba / ec1baba114bba7d8eb6557fff1f48c581ab8870b
Created February 21, 2024 12:05
diff-ec1baba114bba7d8eb6557fff1f48c581ab8870b
From ec1baba114bba7d8eb6557fff1f48c581ab8870b
// Automatically generated file. DO NOT MODIFY
package org.wordpress.android.util.config
import kotlin.String
import kotlin.collections.List
public object FeaturesInDevelopment {
public val featuresInDevelopment: List<String> = listOf(
@wzieba
wzieba / merge-gradle-profiler-results.py
Created January 24, 2024 16:27 — forked from gabrielfeo/merge-gradle-profiler-results.py
Compare separate gradle-profiler (v0.17.0) benchmark results by merging them into a single HTML
#!/usr/bin/env python3
from collections import namedtuple
import os
import shutil
import re
import json
import argparse
parser = argparse.ArgumentParser(
@wzieba
wzieba / gw.sh
Created December 13, 2022 16:09
if ./gradlew "$@" ; then
osascript -e "display notification \"Success\" with title \"Gradle\" sound name \"hero\""
else
osascript -e "display notification \"Failure\" with title \"Gradle\" sound name \"bottle\""
fi
sequenceDiagram

autonumber
participant mobile as Woo Mobile App
participant core as WooCommerce Core

mobile->>mobile:generate list of possible variations
note right of mobile: "abort if >100"
mobile-&gt;&gt;core:products//variations/batch
sequenceDiagram

autonumber
participant mobile as Woo Mobile App
participant core as WooCommerce Core

mobile->>mobile:generate list of possible variations
loop Until all variations created
mobile-&gt;&gt;core:products//variations/batch
sequenceDiagram

autonumber
participant mobile as Woo Mobile App
participant core as WooCommerce Core
participant core_internal as CRON? Internal jobs?

mobile->>core:create_variations?product_id=<id>
loop Until all variations created