adb shell device_config put activity_manager bg_auto_restrict_abusive_apps 1
adb shell device_config put activity_manager bg_current_drain_auto_restrict_abusive_apps_enabled 1
adb shell cmd package bg-dexopt-job
#!/bin/bash | |
{ | |
echo -ne "HTTP 1.1 200 OK\n\r" | |
echo -ne "Content-type: text/event-stream\n\n" | |
cat | |
} | busybox nc -l -p 8000 |
#!/usr/bin/python3 | |
from Xlib import X, display | |
from Xlib import Xatom | |
class SimpleWindowManager: | |
def __init__(self): | |
self.display = display.Display() | |
self.root = self.display.screen().root | |
self.displayWidth = self.display.screen().width_in_pixels |
#!/bin/sh | |
# minimal getty like script | |
# speed ignored. | |
# bgetty 38400 tty1 /bin/login | |
if [ $# -lt 3 ] ; then | |
echo "Usage: $0 [speed] [tty] [command]" | |
exit 1 | |
fi | |
exec >/dev/$2 | |
exec </dev/$2 |
#!/usr/bin/env python3 | |
import sys | |
import gi | |
from gi.repository import GLib | |
import dbus | |
from dbus.mainloop.glib import DBusGMainLoop | |
token = "" | |
id = "" |
#!/usr/bin/env python3 | |
import gi | |
gi.require_version("Gtk", "3.0") | |
from gi.repository import Gtk, GLib | |
main = Gtk.Window() | |
button = Gtk.Button() | |
label = Gtk.Label() |
diff --git a/src/cmd/compile/internal/types2/stmt.go b/src/cmd/compile/internal/types2/stmt.go | |
index e79e4cd..e135c1d 100644 | |
--- a/src/cmd/compile/internal/types2/stmt.go | |
+++ b/src/cmd/compile/internal/types2/stmt.go | |
@@ -63,9 +63,9 @@ func (check *Checker) usage(scope *Scope) { | |
sort.Slice(unused, func(i, j int) bool { | |
return cmpPos(unused[i].pos, unused[j].pos) < 0 | |
}) | |
- for _, v := range unused { | |
- check.softErrorf(v.pos, UnusedVar, "%s declared and not used", v.name) |
# üşengeçlik | |
alias c='clear' | |
alias e='export' | |
alias a='alias' | |
alias t='touch' | |
alias m='mkdir -pv' | |
alias r='rm -rfv' | |
alias x='chmod +x -R' | |
alias h='history' | |
alias e='exit' |
#!/usr/bin/env python3 | |
import sys | |
import socket | |
def isReachable(ipOrName, port, timeout=2): | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.settimeout(timeout) | |
try: | |
s.connect((ipOrName, int(port))) | |
s.shutdown(socket.SHUT_RDWR) |
#include <gtk/gtk.h> | |
typedef struct _a { | |
gchar* msg; | |
gint num; | |
} data; | |
void button_event(GtkWidget *widget, gpointer f) { | |
data *d = f; | |
g_print("%s %d\n", d->msg, d->num); |