Skip to content

Instantly share code, notes, and snippets.

View CypherpunkSamurai's full-sized avatar
😶
Currently Busy 🌻🐢

Cypherpunk Samurai CypherpunkSamurai

😶
Currently Busy 🌻🐢
View GitHub Profile
# Docker Compose File for Mitmproxy Web Interface
version: "3.7"
services:
mitmproxy:
image: mitmproxy/mitmproxy
container_name: mitmproxy
restart: unless-stopped
ports:
- 8080:8080
@CypherpunkSamurai
CypherpunkSamurai / python-cert-patcher.Dockerfile
Created April 22, 2024 09:59
Python SSL Certs Patching using Docker (for MITM)
# Python Dockerfile to Allow Mitm using Mitmproxy Proxy
FROM python:3.10 as python-mitm
# Install Openssl
RUN apt-get update -y && apt-get install -y openssl
# Install Python Packages
RUN pip install -q --upgrade certifi requests setuptools pip
# Get System Certs
@CypherpunkSamurai
CypherpunkSamurai / readme.md
Created April 22, 2024 09:31
Backup-Restore Removing / Reinstalling Podman on Windows

Backup-Restore / Remove / Reinstall Podman on Windows

These are steps you can follow to remove podman on Windows (WSL2)

Backup Restore Podman Machine to Tar

To backup the current podman machine to tarball

wsl --export podman-machine-default podman-machine-default.tar
@CypherpunkSamurai
CypherpunkSamurai / WSL2 On Windows Quickstart.md
Created April 22, 2024 09:31
WSL2 on Windows Quickstart Guide

WSL2 On Windows Quickstart

Install a Distro

Open a Terminal and type the following command to Install ubuntu

wsl --install
@CypherpunkSamurai
CypherpunkSamurai / miniconda_portable.ps1
Last active April 21, 2024 17:27
Miniconda Portable Installer for Windows
# Get Miniconda
Invoke-WebRequest -Uri "https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe" -OutFile "miniconda.exe"
# Extract the Miniconda package
.\miniconda.exe /InstallationType=JustMe /AddToPath=0 /S /RegisterPython=0 /D=$PWD\conda_install
# Move _conda.exe to conda.exe
Move-Item .\conda_install\_conda.exe .\conda_install\conda.exe
# Note:

Install Devika in Windows using WSL2

Setup WSL2

First install WSL Ubuntu distro

wsl --install -d Ubuntu
# it will automatically run a shell
# to run shell later manually use the command
@CypherpunkSamurai
CypherpunkSamurai / opendevin.test1.md
Last active April 26, 2024 03:57
OpenDevin agent test prompts

OpenDevin Test Prompt

These prompts are useful for testing OpenDevin and it's workings

write modular pygame game of pong. refer to online pygame documentation.
write a FastAPI api that returns current system uptime and python version. implement proper routing and dockerfiles
@CypherpunkSamurai
CypherpunkSamurai / install_opendevin_in_wsl2.md
Last active April 26, 2024 03:54
Install Devin in Windows 11 (WSL2)

Installing OpenDevin in Windows 10 / 11 using WSL 2

Setup WSL2 Ubuntu for Running Devin

Install WSL2 Ubuntu

wsl --install -d Ubuntu

# (manually) launch a terminal
@CypherpunkSamurai
CypherpunkSamurai / add_to_start.bat
Created March 16, 2024 15:20
windows android studio portable
:: .............
:: Portable Mode
:: .............
set ANDROID_SDK_ROOT=%IDE_HOME%\files\sdk\
set ANDROID_HOME=%IDE_HOME%\files\sdk\
set ANDROID_SDK_HOME=%IDE_HOME%\files\.android
set ANDROID_PREFS_ROOT=%IDE_HOME%\files\.android
set GRADLE_USER_HOME=%IDE_HOME%\files\.gradle
@CypherpunkSamurai
CypherpunkSamurai / Better lyrics style.css
Last active March 12, 2024 10:43
My Spicetify Config
.lyrics-lyrics-contentContainer .lyrics-lyricsContent-lyric.lyrics-lyricsContent-highlight { filter: blur(1.5px); padding: 15px; font-size: 110%; } .lyrics-lyrics-contentContainer .lyrics-lyricsContent-lyric.lyrics-lyricsContent-active { filter: none; padding: 20px; font-size: 130%; } .lyrics-lyrics-contentContainer .lyrics-lyricsContent-lyric { filter: blur(1.5px); padding: 15px; font-size: 110%; } .lyrics-lyrics-contentContainer .lyrics-lyricsContent-lyric.lyrics-lyricsContent-unsynced { filter: none; padding: 10px; font-size: 100%; }