Skip to content

Instantly share code, notes, and snippets.

@jush
jush / build.gradle
Last active December 18, 2015 07:19 — forked from jpeddicord/build.gradle
// additional required configuration to hook into the build script
android {
signingConfigs {
release {
// specify signing properties on the command line
if (project.hasProperty('keyStore')) {
println 'Generating a signed package.'
storeFile file(keyStore)
storePassword storePass
keyAlias alias
@jush
jush / namecheap-ddns
Last active November 20, 2020 18:47
Simple Namecheap Dynamic DNS client
#!/bin/sh
set -eu
FETCH="curl -s"
# or for curl:
#FETCH="curl -s"
# $1: your domain
# $2: subdomain to update use @ for TLD
# $3: the password given to you by Namecheap's web interface
#
# Rerun this script every 5 minutes. Crontab entry (not as root):
@jush
jush / shark-custom-script.main.kts
Last active May 6, 2024 10:23 — forked from pyricau/shark-custom-script.main.kts
A standalone Kotlin script that shows how to do custom heap analysis work with Shark, the heap parsing library that powers LeakCanary (see https://square.github.io/leakcanary/shark)
#!/usr/bin/env -S JAVA_OPTS="-Xmx16g" kotlin
// In order to analyze big heaps you might need to modify above `-Xmx16g` Java option.
// Before running this script, install Kotlin with `brew install kotlin`
// Then run this with `kotlin shark-custom-script.main.kts`
// Edit this script in the latest Android Studio or IntelliJ IDEA releases to get dependency import and auto completion.
@file:Repository("https://repo.maven.apache.org/maven2/")
@file:DependsOn("com.squareup.leakcanary:shark-android:2.13")