This file contains hidden or 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/local/env/ python | |
# -*- coding:utf-8 -*- | |
import sys | |
import time | |
from threading import Thread, current_thread | |
#from queue import Queue | |
lista = [1,3,6,4,3] |
This file contains hidden or 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
pacman -S wget # needed for debootstrap | |
curl -o /tmp/db.deb http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.60~bpo70+1_all.deb | |
mkdir /opt/debootstrap | |
cd /opt/debootstrap | |
ar x /tmp/db.deb | |
tar xf data.tar.gz | |
mkdir /opt/debian |
This file contains hidden or 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 | |
# This is a wrapper for adb. If there are multiple devices / emulators, this script will prompt for which device to use | |
# Then it'll pass whatever commands to that specific device or emulator. | |
# Run adb devices once, in event adb hasn't been started yet | |
BLAH=$(adb devices) | |
# Grab the IDs of all the connected devices / emulators | |
IDS=($(adb devices | sed '1,1d' | sed '$d' | cut -f 1 | sort)) |
This file contains hidden or 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 | |
# Script adb+ | |
# Usage | |
# You can run any command adb provides on all your currently connected devices | |
# ./adb+ <command> is the equivalent of ./adb -s <serial number> <command> | |
# | |
# Examples | |
# ./adb+ version | |
# ./adb+ install apidemo.apk | |
# ./adb+ uninstall com.example.android.apis |
This file contains hidden or 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 | |
#===================================================================== | |
# Selects an android device | |
# Copyright (C) 2012-2013 Diego Torres Milano. All rights reserved. | |
# | |
# See: | |
# - http://dtmilano.blogspot.ca/2013/01/android-select-device.html | |
# - http://dtmilano.blogspot.ca/2012/03/selecting-adb-device.html | |
# for details on usage. | |
#===================================================================== |
This file contains hidden or 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
# This is hardcoded x11vnc at port 5901 listening only to localhost (intended to use it with ssh tunnel) | |
# I do use that along realvnc-vnc-server because i do tweak geometry for vnn while having full resolution on hdmi screen | |
# To create password file run "x11vnc -storepasswd in /etc/x11vnc.pass" or even "x11vnc -storepasswd yourpassword /etc/x11vnc.pass" | |
# Once created, enable this service with "sudo systemctl enable x11vnc" restart or "sudo service x11vnc start" | |
[Unit] | |
Description=Scaled remote desktop service (x11vnc) | |
After=syslog.target network.target | |
[Service] |
This file contains hidden or 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
# This is dinamyc x11vnc service listening only to localhost (intended to use it with ssh tunnel) | |
# I do use that along realvnc-vnc-server because i do tweak geometry for vnn while having full resolution on hdmi screen | |
# To create password file run "x11vnc -storepasswd in /etc/x11vnc.pass" or even "x11vnc -storepasswd yourpassword /etc/x11vnc.pass" | |
# Once created, enable this service with "sudo systemctl enable x11vnc" restart or "sudo service x11vnc start" | |
[Unit] | |
Description=Scaled remote desktop service (x11vnc) | |
After=syslog.target network.target |
This file contains hidden or 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/env python | |
import dbus | |
class Client(): | |
def __init__(self): | |
bus = dbus.SessionBus() | |
service = bus.get_object('com.example.service', "/com/example/service") | |
self._message = service.get_dbus_method('get_message', 'com.example.service.Message') | |
self._quit = service.get_dbus_method('quit', 'com.example.service.Quit') |
This file contains hidden or 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
#:kivy 1.8.0 | |
<Root>: | |
orientation: "vertical" | |
Button: | |
text: "Start GTK thread" if not app.gtk_started else "Stop GTK thread" | |
on_release: app.start_gtk_thread() |
This file contains hidden or 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
VERBOSITY = 1 | |
# Change Package name to suit that | |
PACKAGE_NAME=org.test.kivytestapp | |
echo $PACKAGE_NAME | |
echo "Building the android app in debug mode." | |
buildozer -v android debug | |
echo "Loading the app onto to the debug mode device." |