Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
emulator -avd Nexus_7_API_27 &
# Wait for the emulator to fully start
echo "Waiting for emulator to start..."
boot_completed=false
while [ "$boot_completed" != "1" ]; do
sleep 5
boot_completed=$(adb -e shell getprop sys.boot_completed 2>/dev/null)
# Con 'emulator':
emulator -avd <nombre_avd> # Inicia un emulador de Android con un AVD específico.
emulator -list-avds # Lista todos los AVDs disponibles.
# Con 'adb':
adb devices # Lista todos los dispositivos Android conectados, incluidos los emuladores.
adb install <nombre_archivo.apk> # Instala un archivo APK en el dispositivo o emulador.
adb shell # Abre una shell interactiva en el dispositivo o emulador.
adb shell pm list packages # Lista todos los paquetes de aplicaciones instaladas en el dispositivo o emulador.
adb shell am start -n <nombre_paquete>/<nombre_actividad> # Inicia una aplicación específica por su nombre de paquete y actividad principal.
# Create disk of 10G to install virtual machine
``` qemu-img create -f raw VM10G.raw 10G ```
# Install Linux as a virtual machine from image (.iso file)
```qemu-system-x86_64 -m 3072 -hda VM25G.raw -cdrom debian-11.4.0-amd64-DVD-1.iso```
- **-m 3072** this command is memory RAM assigned
- **-cdrom debian-11.4.0-amd64-DVD-1.iso** this sets the OS image file
- **-hda VM25G.raw** this specify the disk to install the OS to
# Run virtual machine named _'vm10G.raw'_
``` qemu-system-x86_64 VM10G.raw ```
# Run virtual machine with network access using _'tap'_
1. Estructurar las carpetas de la misma manera que en desarrollo en donde...
- la carpeta public contendrá...
- el folder **build**
- el archivo **index.php**
- el **browserconfig.xml**
- y el **manifest.json**
- el **public_html** contendrá todos los archivos publicos incluyendo los de la carpeta **public**
- la raiz del proyecto debe tener un archivo **.env.local.php** en vez de un **.env.local**
- la carpeta **public** usará los mismos permisos que **public_html** o menos seguro
/**
* @NApiVersion 2.0
* @NScriptType UserEventScript
*/
define(['N/record', 'N/redirect'], function (record, redirect) {
return {
afterSubmit: function (context) {
// parameters are sent through URL as in GET request
<?php
$val = getopt(null, ["url:", "scriptid:", "deployid:", "account:", "consumerkey:", "consumersecret:","tokenid:", "tokensecret:", "jsonfile:"]);
$myfile = fopen($val["jsonfile"], "r") or die("Unable to open file!");
$jsonfile = fread($myfile,filesize($val["jsonfile"]));
fclose($myfile);
define("NETSUITE_URL", $val['url']);
unit u_in_transferencia_bancaria;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxStyles, cxCustomData, cxGraphics, cxFilter, cxData, cxEdit,
DB, cxDBData, RxMemDS, cxMaskEdit, cxDropDownEdit, cxLookupEdit,
cxDBLookupEdit, cxGridLevel, cxGridCustomTableView, cxGridTableView,
cxGridDBTableView, cxClasses, cxControls, cxGridCustomView, cxGrid,
# KeyData Value according to the Pressed Keys
- **Tab** Key is **983041**
- **ENTER** Key from number pad is **18612225**
- **ENTER** Key located below backspace is **1835009**
# Get Temp Directory
~~~
function GetTempDirectory: String;
var
tempFolder: array[0..MAX_PATH] of Char;
/**
* @NApiVersion 2.0
* @NScriptType MapReduceScript
*/
define(['N/search', 'N/transaction'], function (search, transaction) {
function getInputData(){
return search.create({
/**
* @NApiVersion 2.0
* @NScriptType MapReduceScript
*/
define(['N/search'], function (search) {
function getInputData(){
var invSearch = search.create({