This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set everything to be logged to the console | |
log4j.rootCategory=INFO, console, file | |
log4j.appender.console=org.apache.log4j.ConsoleAppender | |
log4j.appender.console.target=System.err | |
log4j.appender.console.threshold=ERROR | |
log4j.appender.console.layout=org.apache.log4j.PatternLayout | |
log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n | |
log4j.appender.file=org.apache.log4j.RollingFileAppender |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration scan="true"> | |
<!-- Properties --> | |
<property name="log.pattern" value="%date %-5level %logger{0} - %message%n"/> | |
<property name="log.history" value="7"/> | |
<property name="log.folder" value="/home/user/log"/> | |
<property name="log.level" value="INFO"/> | |
<!-- Appenders --> | |
<appender name="rollingTransportLog" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration scan="true" scanPeriod="1 minute"> | |
<variable | |
name="logPattern" | |
value="%-30(%d{MMM dd YYYY HH:mm:ss.SSS} [%thread]) %-5level %logger{5} [%file:%line] - %msg%n" /> | |
<!-- | |
The base name of the log file. For "example.log" this would | |
simply be "example". Or if it were "logs/example.log" then | |
"logs/example". | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cls | |
echo. | |
echo Enter text and hit enter to send text | |
echo input to your phone or emulator. | |
echo Note: having adb in your path is required. | |
echo. | |
echo Type /help for a list of available commands, | |
echo /quit or Ctrl+C to quit. | |
echo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell settings put global airplane_mode_on 0 & adb shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off &setlocal enabledelayedexpansion | |
::set your port | |
set PORT_BASE=5555 | |
::list the device | |
adb devices |findstr /i "\<device\>" >nul | |
if "%errorlevel%" neq "0" ( | |
echo "device not found." | |
goto :eof | |
) | |
::set devices serial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GAME=$1 | |
DIR="/sdcard/love" | |
MIME="application/x-love-game" | |
INTENT="org.love2d.android/.GameActivity" | |
if [[ -z "$1" ]]; then | |
GAME="game.love" | |
echo "Creating game package at $GAME" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/zsh | |
adb shell dumpsys display | grep mBaseDisplayInfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set "ip=" | |
for /f "tokens=1-2 delims=:" %%a in ('ipconfig^|find "Default"') do if not defined ip set ip=%%b | |
echo %ip% | |
adb tcpip 5555 | |
adb connect %ip% | |
adb devices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameter: | |
--fix "$FilePath$" | |
Working Directory: | |
$ProjectFileDir$ | |
To configure go to : File => Settings => Tools => External Tools |
OlderNewer