Skip to content

Instantly share code, notes, and snippets.

View lukeduncan-scot's full-sized avatar

L Duncan lukeduncan-scot

  • Highlands, Scotland
  • 07:33 (UTC +01:00)
View GitHub Profile
@ernestkamara
ernestkamara / AdbCommands
Created June 26, 2018 08:42 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@MatthewVance
MatthewVance / unbound.conf
Last active September 9, 2025 15:34
Config for running Unbound as a caching DNS forwarder (performance settings optimized for Raspberry Pi 2).
server:
###########################################################################
# BASIC SETTINGS
###########################################################################
# Time to live maximum for RRsets and messages in the cache. If the maximum
# kicks in, responses to clients still get decrementing TTLs based on the
# original (larger) values. When the internal TTL expires, the cache item
# has expired. Can be set lower to force the resolver to query for data
# often, and not trust (very large) TTL values.
cache-max-ttl: 86400
@lattice0
lattice0 / gist:3ac989bfd57f753793dd6d19a0809e59
Last active September 26, 2020 07:42
socat android studio tunnel
Install socat on host and vm
#on virtual machine:
#socat tcp-listen:5037,bind=localhost,reuseaddr,fork tcp:192.168.122.1:5037
#automatic installation on startup:
echo -e '#!/bin/bash\nsocat tcp-listen:5037,bind=localhost,reuseaddr,fork tcp:192.168.122.1:5037 &' | sudo tee --append /etc/rc.local && sudo chmod 755 /etc/rc.local
#on host machine, use with ./script.sh 99 for example
socat tcp-listen:5037,bind=192.168.122.1,reuseaddr,fork tcp:localhost:5037 & socat tcp-listen:19000,bind=localhost,reuseaddr,fork tcp:192.168.122.$1:19000 &
#Then
@joewalnes
joewalnes / simple-http-server.kt
Created November 20, 2017 18:58
Minimal embedded HTTP server in Kotlin using Java built in HttpServer
import com.sun.net.httpserver.HttpServer
import java.io.PrintWriter
import java.net.InetSocketAddress
/**
* Minimal embedded HTTP server in Kotlin using Java built in HttpServer
*/
fun main(args: Array<String>) {
HttpServer.create(InetSocketAddress(8080), 0).apply {
@Pulimet
Pulimet / AdbCommands
Last active September 8, 2026 15:42
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@ramiloif
ramiloif / fakeCall.sh
Last active August 19, 2020 04:07
Make the broadcast receiver to receive a missed or answered call
phoneNumber=$1
echo Faking answered call to $phoneNumber
adb shell am broadcast -a android.intent.action.PHONE_STATE --es state "RINGING" --es incoming_number $phoneNumber
adb shell am broadcast -a android.intent.action.PHONE_STATE --es state "OFFHOOK" --es incoming_number $phoneNumber
adb shell am broadcast -a android.intent.action.PHONE_STATE --es state "IDLE" --es incoming_number $phoneNumber
@joyrexus
joyrexus / README.md
Last active June 9, 2026 04:07
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
package test.iamjonfry.com.interceptortest;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import java.io.File;
import java.io.IOException;
import java.util.List;
import okhttp3.Cache;
@mugifly
mugifly / adb-android-disable-animation.sh
Last active December 8, 2022 22:40
Disable the animation of Android Virtual Device using adb command
# For Android JellyBean and newer device
adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="window_animation_scale"'
adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="transition_animation_scale"'
adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="animator_duration_scale"'
# For Android ICS and older device
adb shell "echo \"update system set value=0.0 where name='window_animation_scale';\" | sqlite3 /data/data/com.android.providers.settings/databases/settings.db"
adb shell "echo \"update system set value=0.0 where name='transition_animation_scale';\" | sqlite3 /data/data/com.android.providers.settings/databases/settings.db"
@subfuzion
subfuzion / github-wiki-how-to.md
Last active August 16, 2026 19:38
GitHub Wiki How-To

How do I clone a GitHub wiki?

Any GitHub wiki can be cloned by appending wiki.git to the repo url, so the clone url for the repo https://myorg/myrepo/ is: git@github.com:myorg/myrepo.wiki.git (for ssh) or https://github.com/my/myrepo.wiki.git (for https).

You make edits, and commit and push your changes, like any normal repo. This wiki repo is distinct from any clone of the project repo (the repo without wiki.get appended).

How do I add images to a wiki page?