Skip to content

Instantly share code, notes, and snippets.

@tomioe
tomioe / gemini-setup.sh
Last active February 4, 2026 22:54
Bash script for setting up obra/superpowers in gemini-cli
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
setup_colors() {
if [[ -t 2 ]] && [[ -z "${NO_COLOR-}" ]] && [[ "${TERM-}" != "dumb" ]]; then
NOFORMAT='\033[0m' RED='\033[0;31m' GREEN='\033[0;32m' ORANGE='\033[0;33m' BLUE='\033[0;34m' PURPLE='\033[0;35m' CYAN='\033[0;36m' YELLOW='\033[1;33m'
else
@tomioe
tomioe / main.c
Created April 7, 2022 19:04
Struct Test
#include <stdio.h>
#include <stdlib.h>
typedef struct {
int num;
void **elems;
} test_t;
void elem_append(test_t* test_str, void* elem_app) {
*test_str->elems = elem_app;