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/sh | |
# | |
# domoticz-closerollershutters | |
# use sunwait to get civil dusk time to calculates when to close roller shutters with the constraints to be in this interval >20h <22h, civildusk i.e. min(max(civildusk,20h),22h) | |
tdusk=`/usr/local/bin/sunwait -p 48.866667N 2.333333W | grep "Sun rises" | sed "s/^.* sets \([0-9]*\) .*$/\1/g"` | |
hdusk=`echo $tdusk | cut -c 1-2` | |
mdusk=`echo $tdusk | cut -c 3-4` | |
sdusk=`date -d"$hdusk:$mdusk" +%s` | |
notbefore=`date -d"20:00" +%s` |
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
find . -type f -name \*"[\*\?\:<>\\\"\|]"\* -print0 | xargs -0 rename -v 's/[\*\?\:<>\\\"\|]/_/g' |
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 su root date -u @$(date -u +%s) |
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 connect 100.115.92.2:5555 |
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
import jcifs.smb.SmbFile; | |
import jcifs.context.BaseContext; | |
import jcifs.smb.NtlmPasswordAuthenticator; | |
import jcifs.CIFSContext; | |
import jcifs.CIFSException; | |
import jcifs.smb.SmbException; | |
import jcifs.smb.SmbAuthException; | |
import java.net.MalformedURLException; |
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
diff --git a/src/main/java/com/archos/mediacenter/video/player/SurfaceController.java b/src/main/java/com/archos/mediacenter/video/player/SurfaceController.java | |
index 089df18..4ebd723 100644 | |
--- a/src/main/java/com/archos/mediacenter/video/player/SurfaceController.java | |
+++ b/src/main/java/com/archos/mediacenter/video/player/SurfaceController.java | |
@@ -20,6 +20,7 @@ import com.archos.medialib.IMediaPlayer; | |
import android.graphics.SurfaceTexture; | |
import android.opengl.GLSurfaceView; | |
+import android.os.Build; | |
import android.util.Log; |
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
diff --git a/external/android/libsfdec/sfdec_ndkmediacodec.cpp b/external/android/libsfdec/sfdec_ndkmediacodec.cpp | |
index 57f6c7e..6c14586 100644 | |
--- a/external/android/libsfdec/sfdec_ndkmediacodec.cpp | |
+++ b/external/android/libsfdec/sfdec_ndkmediacodec.cpp | |
@@ -19,7 +19,7 @@ | |
#ifdef __ANDROID_API__ | |
#undef __ANDROID_API__ | |
-#define __ANDROID_API__ 21 | |
+#define __ANDROID_API__ 26 |
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
diff --git a/external/android/libsfdec/sfdec_ndkmediacodec.cpp b/external/android/libsfdec/sfdec_ndkmediacodec.cpp | |
index 57f6c7e..56752c0 100644 | |
--- a/external/android/libsfdec/sfdec_ndkmediacodec.cpp | |
+++ b/external/android/libsfdec/sfdec_ndkmediacodec.cpp | |
@@ -76,12 +76,12 @@ static int init_renderer(sfdec_priv_t *sfdec) | |
if (format != NULL) { | |
if (AMediaFormat_getInt32(format, "width", &width)) { | |
- LOG("width changed: %d -> %d", sfdec->width, width); | |
- sfdec->width = width; |
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
diff --git a/src/com/archos/mediascraper/AutoScrapeService.java b/src/com/archos/mediascraper/AutoScrapeService.java | |
index 256242c..4115703 100644 | |
--- a/src/com/archos/mediascraper/AutoScrapeService.java | |
+++ b/src/com/archos/mediascraper/AutoScrapeService.java | |
@@ -22,8 +22,12 @@ import android.app.Service; | |
import android.content.ContentValues; | |
import android.content.Context; | |
import android.content.Intent; | |
+import android.database.AbstractWindowedCursor; | |
import android.database.ContentObserver; |
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
// run small queries | |
static final int WINDOW_SIZE = 1000; | |
Cursor cursor = getFileListCursor(PARAM_ALL, null); | |
final int numberOfRows = cursor.getCount(); | |
cursor.close(); | |
int index = 0; | |
int window = WINDOW_SIZE; |
OlderNewer