Skip to content

Instantly share code, notes, and snippets.

@akfreas
akfreas / translate_strings.py
Created January 18, 2024 10:49
Auto Translate iOS Strings
#!/usr/bin/env python3
import argparse
import os
import openai
from pprint import pprint
import os
from openai import OpenAI
from tqdm import tqdm
@akfreas
akfreas / find_replace.sh
Created January 24, 2024 16:55
Find and replace filenames and references
'
# File Replacement and Backup Script
This script is designed to search through files within a specified directory, replace occurrences of a search string with a replacement string, and backup the original files.
It will rename every instance of that string, found not only in the files themselves, but also in the filename and directory name.
## Features
- Searches for files containing a specific string.
- Replaces the found string with a new string.