Skip to content

Instantly share code, notes, and snippets.

View Excigma's full-sized avatar
🌉
trianfl3r:(

Excigma Excigma

🌉
trianfl3r:(
View GitHub Profile
#!/usr/bin/env bash
# This script will try to find the adb remote debugging port in the specified
# IP address and then tell adb to try to connect to it.
# It is useful for connecting to an android device without opening the
# "Wireless debugging" screen to get the IP and the random port, which is
# cumbersome.
for line in $(avahi-browse --terminate --resolve --parsable --no-db-lookup _adb-tls-connect._tcp); do
if [[ $line != =* ]]; then
@mohitbhoite
mohitbhoite / tinycubesat.cpp
Last active November 2, 2023 12:48
Simple low powerLED blink pattern for the ATtiny based satellite sculpture
#include <avr/sleep.h> //Needed for sleep_mode
#include <avr/wdt.h> //Needed to enable/disable watch dog timer
void setup() {
pinMode(0, OUTPUT);// LED connected to pin 5 which is recognised as pin 0 by arduino
ADCSRA &= ~(1<<ADEN); //Disable ADC, saves ~230uA
//Power down various bits of hardware to lower power usage
set_sleep_mode(SLEEP_MODE_PWR_DOWN); //Power down everything, wake up from WDT
sleep_enable();
}
@hemisemidemipresent
hemisemidemipresent / Main.cs
Last active November 6, 2023 02:37
Bad Apple mod on BTD6
// https://www.youtube.com/watch?v=MPuzC4nF3KI
//
using Assets.Scripts.Unity;
using Assets.Scripts.Unity.Bridge;
using MelonLoader;
using UnityEngine;
using Assets.Scripts.Unity.UI_New.InGame;
using Assets.Scripts.Models.Towers;
using System.Collections.Generic;
using Assets.Scripts.Models.Towers.Behaviors;
@benigumocom
benigumocom / debug_from_qr.py
Last active June 12, 2024 14:56
Connect Wireless Debug from Terminal on Android11
#!/usr/bin/env python3
"""
Android11
Pair and connect devices for wireless debug on terminal
python-zeroconf: A pure python implementation of multicast DNS service discovery
https://github.com/jstasiak/python-zeroconf
"""
@mikepenz
mikepenz / android-adb-usb-speed.sh
Created November 12, 2019 11:28
Quick helper script to detect the speed of the USB connection of connected Android devices
#!/bin/bash
# some helper vars
# https://unix.stackexchange.com/a/10065/138249
if test -t 1; then
ncolors=$(tput colors)
if test -n "$ncolors" && test $ncolors -ge 8; then
bold=$(tput bold)
normal=$(tput sgr0)
success=$(tput setaf 2)

#Ubuntu on Acer Aspire Switch ##The problem What's the problem with this tablet? Why can't I just insert the USB and mash F12 until it boots? The tablet is made to run Windows 8.1 and Windows 8.1 only. Because of the stupidity that is UEFI (specifically it's "Safe boot" feature) we can't just boot from any USB stick we want.

Also, because someone thought putting a 32-bit UEFI on a 64-bit system was a good idea.

NOTE: This guide focuses on installing Ubuntu alongside Windows. If you're trying to replace Windows, then I assume you know enough about Linux to know which parts to change.