Skip to content

Instantly share code, notes, and snippets.

@pilot51
pilot51 / gist:5815599
Last active December 18, 2015 16:59
Gets the build time of the Android app. Thanks to: http://stackoverflow.com/a/7608719/382130
String getBuildTime() throws NameNotFoundException, IOException {
ApplicationInfo ai = getPackageManager().getApplicationInfo(getPackageName(), 0);
ZipFile zf = new ZipFile(ai.sourceDir);
long time = zf.getEntry("classes.dex").getTime();
zf.close();
return new SimpleDateFormat("yyyy-MM-dd h:mm:ss a zzz").format(new Date(time));
}
@pilot51
pilot51 / create_pulseaudio_app_record_sink.sh
Created September 21, 2019 18:33
Shell script to pipe Pulseaudio output of selected apps to input of other selected apps
#!/bin/bash
# Use this to do things like sending audio from a single application (e.g. Jackbox games) to the input of another application (e.g. Google Hangouts) while still being able to hear the audio.
# The source and recording applications must be selected in Pulseaudio volume control.
# Source of solution: https://askubuntu.com/a/724964
DEFAULT_OUTPUT=$(pacmd list-sinks | grep -A1 "* index" | grep -oP "<\K[^ >]+")
pactl load-module module-combine-sink sink_name=record-n-play slaves=$DEFAULT_OUTPUT sink_properties=device.description="Record-and-Play"
@pilot51
pilot51 / lutris_install_there_edge.yaml
Last active July 8, 2025 19:47
Lutris install script: There (Edge) & ThereIM
name: "There"
description: "Install There (Edge version) and ThereIM"
game_slug: there
version: ThereEdge
slug: there-edge
runner: wine
year: 2003
notes: |
Additional required software to be installed:
- Microsoft Edge