Skip to content

Instantly share code, notes, and snippets.

View exaland's full-sized avatar
🏠
Working from home

Exaland Concept exaland

🏠
Working from home
View GitHub Profile
@exaland
exaland / extract_strings.py
Created December 5, 2025 00:27
Simple extractor to find hardcoded strings in Android XML files and move them to res/values/strings.xml.
#!/usr/bin/env python3
"""
Simple extractor to find hardcoded strings in Android XML files and move them to res/values/strings.xml.
- Scans app/src/main/res for layout/menu/xml/etc (skips values/)
- Targets attributes: android:text, android:hint, android:contentDescription, android:title, android:label, android:summary
- Skips values already referencing @, ? or data-binding @{...}
- Adds entries to app/src/main/res/values/strings.xml and replaces literals with @string/<key>
- Creates locale placeholder values-<lang>/strings.xml for existing locales or a default set
Usage:
@exaland
exaland / openssl_16kb_alignment.zip
Last active December 1, 2025 05:52
OpenSSL Library 16kb Alignment - libcrypto.so libssl.so
Download OpenSSL Library with 16kb Aligment
Libraries meet Google Play requirements
https://filebin.net/5lpnq2mhu25bznoz/openssl_16kb_alignment.zip
@exaland
exaland / check_alignment_elf.sh
Created November 16, 2025 22:58
check_elf_alignment for Android 16kb Page Size
#!/bin/bash
# Enhanced ELF Alignment Checker for Android 16KB Page Size Compatibility
# This script checks if your app's native libraries are compatible with 16KB page size devices
# as required by Google Play starting November 1st, 2025 for apps targeting Android 15+
progname="${0##*/}"
progname="${progname%.sh}"
# Color codes and formatting - detect if colors are supported
@exaland
exaland / UIBorderCustom.swift
Last active October 31, 2025 20:01
Customize Border Style of UIView (UIKit) with IBDesignable
@IBDesignable
class UIBorderCustom: UIView {
@IBInspectable var borderColor: UIColor? {
didSet {
borderLine.strokeColor = borderColor?.cgColor
}
}
@IBInspectable var borderWidth: CGFloat = 2 {
@exaland
exaland / heroku_envfile.txt
Created September 21, 2025 22:04
Upload ENV File in Heroku
cat .env | sed 's/^/heroku config:set --app my-app-name /' | sh
@exaland
exaland / install_vim_dev.sh
Created July 20, 2025 12:48
Install VIM avec Theme Gruvbox
#!/bin/bash
# Vérifier si vim est installé, sinon l'installer
if ! command -v vim &> /dev/null; then
echo "Vim n'est pas installé. Installation..."
sudo apt update
sudo apt install -y vim
else
echo "Vim est déjà installé."
fi
@exaland
exaland / vscode_install.sh
Created June 18, 2025 10:35
VSCODE INSTALL WITH BETTER EXTENSION AND THEME DARK
#!/bin/bash
# Vérifier si VSCode est installé
if ! command -v code &> /dev/null
then
echo "VSCode n'est pas installé ou 'code' n'est pas dans le PATH."
echo "Veuillez installer VSCode et s'assurer que 'code' est accessible depuis le terminal."
exit 1
fi
@exaland
exaland / tarif_bot_telegram.md
Created June 15, 2025 13:40
TARIF BOT TELEGRAM

Grille Tarifaire – Création de Bots Telegram

Pack Basique – 300€

  • Création d’un bot Telegram personnalisé
  • Fonctionnalités de base (messages automatiques, commandes simples)
  • Support technique 1 mois inclus

@exaland
exaland / complete_upgrade_to_22.sh
Last active April 7, 2025 23:03
Update Ubuntu 18.04 to 22.04
#!/bin/bash
set -e
echo "==> Étape 0 : Mise à jour actuelle de Ubuntu"
sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y
sudo apt autoremove --purge -y
sudo apt install update-manager-core -y
echo "==> Étape 1 : Passage de Ubuntu 18.04 vers 20.04"
@exaland
exaland / tailwindcss_npmerr
Created March 13, 2025 11:14
npx tailwindcss init -p npm ERR! could not determine executable to run
Fix with this Command
$ npm install -D tailwindcss@3 postcss autoprefixer
$ npx tailwindcss init -p