Skip to content

Instantly share code, notes, and snippets.

@aleksasiriski
aleksasiriski / immutabledesktop.md
Last active September 8, 2025 06:43
My ideal Fedora Atomic Desktop setup

My ideal Fedora Atomic Desktop setup

System

Set keyboard layout

localectl set-keymap us-colemak && \
localectl set-x11-keymap us "" colemak
@oliverspryn
oliverspryn / install-android-command-line-tools.sh
Last active October 16, 2025 20:00
Download and extract the Android Command Line tools
#!/bin/bash
# Example Definitions, for Mac Setups
destination="$HOME/android/"
toolsDownloadUrl=$(curl https://developer.android.com/studio | grep -o "https:\/\/dl.google.com\/android\/repository\/commandlinetools\-mac\-[0-9]*_latest\.zip")
# Download and extract the contents
curl --location -o android.zip $toolsDownloadUrl
unzip -q android.zip -d ./android-temp
@nhtua
nhtua / 00.install-android-sdk.sh
Last active October 13, 2025 11:44
Run a Headless Android Device on Ubuntu server (no GUI)
#!/bin/bash -i
#using shebang with -i to enable interactive mode (auto load .bashrc)
set -e #stop immediately if any error happens
# Install Open SDK
apt update
apt install openjdk-8-jdk -y
update-java-alternatives --set java-1.8.0-openjdk-amd64
java -version
@mikepruett3
mikepruett3 / shell-setup.ps1
Last active November 17, 2025 06:36
Packages to install via scoop, winget, choco, and other tools...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018
@apsun
apsun / hax.c
Last active November 13, 2025 03:35
Hook main() using LD_PRELOAD
/*
* Hook main() using LD_PRELOAD, because why not?
* Obviously, this code is not portable. Use at your own risk.
*
* Compile using 'gcc hax.c -o hax.so -fPIC -shared -ldl'
* Then run your program as 'LD_PRELOAD=$PWD/hax.so ./a.out'
*/
#define _GNU_SOURCE
#include <stdio.h>