Skip to content

Instantly share code, notes, and snippets.

@birgitta410
birgitta410 / gist:a8fcd71f04b2453dfbd26b3376ea9345
Created August 15, 2024 10:20
Experiment: Enzyme test migration with autogen
# Prerequisites:
# - pip install pyautogen
# - pip install python-dotenv
# - git clone git@github.com:openmrs/openmrs-react-components.git
# - .env file in the same directory with the respective env variables needed for the model connection
#
# Implementation based on https://microsoft.github.io/autogen/docs/notebooks/agentchat_function_call_code_writing/
# Prompt based on docs at https://testing-library.com/docs/react-testing-library/migrate-from-enzyme/
import os
@birgitta410
birgitta410 / pull_all.sh
Last active January 3, 2018 15:33
Script to update multiple git repos in a folder
#!/bin/bash
set -e
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[1;34m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
BRANCH_AHEAD_PATTERN="^.*ahead.*$"
NOT_STAGED_PATTERN="^.*not staged.*$"
@birgitta410
birgitta410 / women_techmakes_resources.md
Last active March 28, 2017 09:03
Women Techmakers Meetup - Resources
@birgitta410
birgitta410 / plato_repo_history.rb
Last active August 29, 2015 14:01
Simple script to generate JS static code analysis history for a git repository
#https://github.com/schacon/ruby-git
#https://github.com/es-analysis/plato
require 'git'
##################################
# root location of git repository
root_location = '/path/to/my/repo'
# JS scripts folder, relative to folder where script is started
@birgitta410
birgitta410 / hack.sh
Created August 30, 2013 11:18 — forked from DAddYE/hack.sh
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions: