For generic skin emulator with default apis (without google apis):
-
List All System Images Available for Download:
sdkmanager --list | grep system-images
-
Download Image:
sdkmanager --install "system-images;android-29;default;x86"
function getRandomId() { | |
return ( | |
Date | |
.now() | |
.toString(36) + | |
Math | |
.random() | |
.toString(36) | |
.substr(2, 5)) | |
.toUpperCase(); |
Задержка смены раскладки клавиатуры | |
**1.** Качаем скрипт: [https://github.com/yamnikov-oleg/switch-layout](https://github.com/yamnikov-oleg/switch-layout) | |
**2.** Устанавливаем pip: | |
``` | |
sudo apt install python3-pip | |
``` |
#!/bin/sh | |
if on_ac_power; then | |
echo 0 > /proc/sys/vm/laptop_mode | |
echo 0 > /sys/module/snd_hda_intel/parameters/power_save | |
echo max_performance > /sys/class/scsi_host/host0/link_power_management_policy | |
echo max_performance > /sys/class/scsi_host/host1/link_power_management_policy | |
echo max_performance > /sys/class/scsi_host/host2/link_power_management_policy | |
echo max_performance > /sys/class/scsi_host/host3/link_power_management_policy | |
echo max_performance > /sys/class/scsi_host/host4/link_power_management_policy | |
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor |
#!/bin/bash | |
sudo apt update && | |
sudo apt upgrade -y && | |
#---GDEBI--- | |
sudo apt install -y gdebi && | |
#---SOFTWARE-PROPERTIES-COMMON for adding third-party repos | |
sudo apt install -y software-properties-common && | |
#---Elementary Tweaks--- | |
sudo add-apt-repository -y ppa:philip.scott/elementary-tweaks && | |
sudo apt update && |
(function (angular) { | |
'use strict'; | |
angular.module('app').factory('modalService', function ($uibModal) { | |
var opened = false; | |
var successCallback, errorCallback, finallyCallback; | |
var thenFunction = function (success, error) { | |
successCallback = success; | |
errorCallback = error; |