If you want to learn more about this image check out its GitHub repo
Download and setup gcloud SDK on your machine.
Create a new instance with the following settings:
| git clone https://gitlab.archlinux.org/archlinux/packaging/packages/discord.git /tmp/discord | |
| cd /tmp/discord | |
| PACMAN=yay makepkg -si --skipinteg |
| import { Directive, ElementRef, Input, OnInit, OnChanges } from '@angular/core'; | |
| import { Label } from '@nativescript/core'; | |
| @Directive({ selector: 'Label[maxLines]' }) | |
| export class LabelMaxLinesDirective implements OnInit, OnChanges { | |
| constructor(private el: ElementRef) {} | |
| @Input() public maxLines = 1; | |
| public get nativeView(): Label { |
| import { isAndroid } from '@nativescript/core'; | |
| class TypeMismatchError extends Error {} | |
| class QuotaExceededError extends Error {} | |
| /** | |
| * @param {Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array|Uint8ClampedArray} array | |
| */ | |
| function getRandomValues(array) { | |
| if ( |
| #!/bin/bash | |
| original_total=0 | |
| final_total=0 | |
| saved_total=0 | |
| # Calculate original total size | |
| while IFS= read -r -d '' file; do | |
| size=$(stat -c "%s" "$file") | |
| original_total=$((original_total + size)) |
| export DEVICE_MODEL="iMacPro1,1" | |
| export SERIAL="--GENERATED--" | |
| export BOARD_SERIAL="--GENERATED--" | |
| export UUID="--GENERATED--" | |
| export MAC_ADDRESS="--GENERATED--" | |
| export WIDTH="1920" | |
| export HEIGHT="1080" |
| import { Application, Device, isAndroid, Utils } from '@nativescript/core'; | |
| /** | |
| * This method uses native APIs to request an app review from the user. There's | |
| * no guarantee that the user will actually be prompted when this method is | |
| * called and there's no way to know if the left a review or not. This is a | |
| * limitation of the platform. | |
| * | |
| * NOTES | |
| * |
| /** Yarn workspaces currently don't have a way of specifying that a workspace | |
| * (i.e., package) should use the worktree (i.e., root package.json) version for | |
| * a dependency. Some projects use the @* version descriptor (equivalent to | |
| * latest version) to achieve this, although this approach works most of the | |
| * time it can easily get the workspace and worktree versions out of sync when | |
| * some of the packages are explicitly updated via package.json or when | |
| * yarn.lock gets regenerated. | |
| * | |
| * The alternative to using the @* syntax is using the `file:` version | |
| * descriptor, so the workspace uses the package from a given directory, in this |
If you want to learn more about this image check out its GitHub repo
Download and setup gcloud SDK on your machine.
Create a new instance with the following settings:
| * | |
| !/Builds/ | |
| !nginx.conf |
Com Docker é possível configurar um container para que ele ouça conexões à uma
porta apenas em um IP por meio da opção publish, no formato
ip:hostPort:containerPort. Isso impede que conexões sejam feitas por outros
IPs sejam aceitas.
Se configurarmos o container para ouvir apenas no IP de loopback (127.0.0.1),