APT (Ubuntu's Advanced Packaging Tool)
# installing a package
sudo apt install zsh
<ruleset comparisonMethod="maven" | |
xmlns="https://www.mojohaus.org/VERSIONS/RULE/2.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="https://www.mojohaus.org/VERSIONS/RULE/2.1.0 https://www.mojohaus.org/versions/versions-model/xsd/rule-2.1.0.xsd"> | |
<ignoreVersions> | |
<ignoreVersion type="regex">.*[-_\.](alpha|Alpha|ALPHA|b|beta|Beta|BETA|rc|RC|CR|M|EA|AM)[-_\.]?\d*</ignoreVersion> | |
</ignoreVersions> | |
<rules> | |
<rule groupId="com.diffplug.spotless" artifactId="spotless-maven-plugin" comparisonMethod="maven"> | |
<ignoreVersions> | |
<ignoreVersion type="range">[2.31.0,)</ignoreVersion> |
const inputStr = ... ; // a base64 encoded string | |
if (inputStr) { | |
const decodedStr = Buffer.from(inputStr, 'base64').toString('utf8'); | |
const result = JSON.parse(decodedStr); | |
if (result) { | |
// ... | |
} | |
} |
{ | |
"name": "node-canvas-lambda-container", | |
"version": "1.0.0", | |
"dependencies": { | |
"canvas": "^2.8.0" | |
}, | |
"license": "MIT" | |
} |
'use strict'; | |
exports.handler = async (event, context, callback) => { | |
const result = { | |
body: null, | |
isBase64Encoded: false, | |
statusCode: 200 | |
}; | |
console.log('Received a render request event'); | |
try { |
FROM public.ecr.aws/lambda/nodejs:14 | |
## | |
# Install necessary package for building Node.js Canvas | |
## | |
RUN yum -y update \ | |
&& yum -y groupinstall "Development Tools" \ | |
&& yum install -y nodejs gcc-c++ cairo-devel libjpeg-turbo-devel pango-devel giflib-devel zlib-devel librsvg2-devel | |
COPY *.js package* ./ |
#!/bin/bash | |
#title :wildfly-install.sh | |
#description :The script to install Wildfly 10.x | |
#more :http://sukharevd.net/wildfly-8-installation.html | |
#author :Dmitriy Sukharev | |
#date :2016-06-18T02:45-0700 | |
#usage :/bin/bash wildfly-install.sh | |
#tested-version1 :10.0.0.CR3 | |
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22 | |
#tested-version2 :10.0.0.Final |
import java.nio.ByteBuffer; | |
import java.nio.ByteOrder; | |
import java.util.UUID; | |
/** | |
* This class provides helper methods to work with UUID, for instance, converting UUID into 16-byte | |
* array for database column BINARY(16) and vice versa. | |
*/ | |
public final class UuidUtil | |
{ |
#!/usr/bin/env sh | |
sudo apt-get install -y \ | |
git \ | |
g++ \ | |
libgtk-3-dev \ | |
gtk-doc-tools \ | |
gnutls-bin \ | |
valac \ | |
intltool \ |
{"lastUpload":"2020-11-10T23:43:02.343Z","extensionVersion":"v3.4.3"} |
# installing a package
sudo apt install zsh