Skip to content

Instantly share code, notes, and snippets.

View palaniraja's full-sized avatar

palaniraja palaniraja

View GitHub Profile
@palaniraja
palaniraja / migrate-gogs-to-forgejo.md
Last active April 26, 2026 03:54
Migrating self-hosted Gogs instance to self-hosted Forgejo

After several failed attempts to use other's scripts, I stumbled upon the following option. Worked alright for 40+ of my repos, YMMV

Migrating gogs to forgejo

  • backup gogs repo with gogs backup
    • docker exec -it gogs_container_name
    • bash8698765c2e8a:/app/gogs# USER=git ./gogs backup
  • copy the file and unzip the gogs-backup.zip
  • extract gogs-backup/repositories.zip (has all the bare repos)
@palaniraja
palaniraja / config.ghostty
Created April 25, 2026 17:21
config.ghostty -
font-family = "JetBrains Mono"
# setup XTERM (infocmp) in remote machines on ssh
shell-integration-features = ssh-env,ssh-terminfo
@palaniraja
palaniraja / config.yaml
Created April 23, 2026 10:21
~/.config/jiratui/ - some configs
jira_api_username: ''
jira_api_token: ''
jira_api_base_url: ''
active_sprint_on_startup: true
default_project_key_or_id: ""
log_file: "/Users/palani/.config/jiratui/tui.log"
log_level: "DEBUG"
# jql_expression_id_for_work_items_search: 53753 # didnt work
# only works with my fork - a0bf86a
@palaniraja
palaniraja / buildgdb.sh
Created February 24, 2026 23:54
my attempt at building gdb on m1 mac to get gdb binary with --target=aarch64-apple-darwin
#!/bin/sh
# install additional dependencies
#brew install gmp mpfr libmpc texinfo pkg-config
# clean old config
# make distclean
@palaniraja
palaniraja / readme.md
Created February 11, 2026 16:49
medio - proof read diff viewer - readme assets

Medio - proofread diff

Repurposing Media as a proof read diff viewer

proofread1 proofread2
@palaniraja
palaniraja / main.cpp
Created December 1, 2025 20:36
ESP32 C3 with 70x40 OLED
#include <Arduino.h>
#include <U8g2lib.h>
#define LED_PIN 8
#define I2C_SDA_PIN 5
#define I2C_SCL_PIN 6
static unsigned int count = 0;
@palaniraja
palaniraja / Ap_29demo.h
Last active April 29, 2026 16:52
HINK-E075A07-A0 - epaper/eink display - Arduino IDE with ESP32C3
const unsigned char gImage_BW[58080] PROGMEM= { /* 0X40,0X01,0X70,0X03,0X10,0X02, */
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XB7,0X7F,
0XFB,0XBB,0XFB,0XBB,0X77,0XB3,0XBB,0XFE,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
@palaniraja
palaniraja / main.cpp
Last active November 7, 2025 17:26
c3 mini plus blinky with led bar
#include <Arduino.h>
const int pinCount = 14;
int pins[pinCount] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 20, 21};
void setup() {
Serial.begin(115200);
delay(3000);
Serial.println("Setup done");
for (int i = 0; i < pinCount; i++) {
@palaniraja
palaniraja / CMakeLists.txt
Created September 7, 2025 18:25
Waveshare RP2040-Zero C sample code
# Generated Cmake Pico project file
cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
# initalize pico_sdk from installed location
# (note this can come from environment, CMake cache etc)
#set(PICO_SDK_PATH "D:/Raspberry/Pico-Code/pico-sdk")
@palaniraja
palaniraja / main.cpp
Created July 27, 2025 19:45
240x240 TFT panel with M5StickC Plus2 & GC9A01
// #include <M5GFX.h>
#include <LovyanGFX.hpp>
#include <Arduino.h>
#define CHK_PIN 25
#define SCL_SCLK 26
#define SDA_MOSI 25
#define CS_CS 32
#define DC_DC 33