This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const jimp = require('jimp') | |
const { readFile, writeFile } = require('fs') | |
readFile('maxresdefault.jpg', function (err, bufferImage) { | |
readFile('logo100.png', function (err, bufferLogo) { | |
jimp.read(bufferImage).then(jImage => { | |
jimp.read(bufferLogo).then(jLogo => { | |
jImage.composite( | |
jLogo, | |
jImage.getWidth() - jLogo.getWidth() - 10, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { readFile, writeFile } = require('fs') | |
const { spawn } = require('child_process') | |
function watermark(buffer, logoPath) { | |
return new Promise((resolve, reject) => { | |
let child = spawn('composite', ['-dissolve', '25%', '-gravity', 'SouthEast', '-geometry', '+10+10', logoPath, '-', '-']) | |
child.stdin.write(buffer) | |
child.stdin.end() | |
let chunks = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
menuentry "Debian 9.4 Stretch i386 Live system (XFCE)" { | |
set isoPath="/ISOs" | |
set linuxPath="$isoPath/Linux" | |
set isofile="$linuxPath/debian-live-9.4.0-i386-xfce.iso" | |
set bootoptions="findiso=$isofile boot=live components quiet splash" | |
loopback loop $isofile | |
linux (loop)/live/vmlinuz-4.9.0-6-686 $bootoptions | |
initrd (loop)/live/initrd.img-4.9.0-6-686 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this way: | |
# docker run -it --rm --privileged -v /dev/bus/usb:/dev/bus/usb -v "$HOME":/home/developer -e DISPLAY --net=host android-studio | |
# Then: | |
# bin/studio.sh | |
FROM debian:stretch-slim | |
RUN groupadd --gid 1000 developer \ | |
&& useradd --uid 1000 --gid developer -G plugdev --shell /bin/bash --create-home developer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:9.8-stretch | |
#Basic tools | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends \ | |
htop \ | |
postgresql-client \ | |
rsync \ | |
vim \ | |
&& rm -rf /var/lib/apt/lists/* |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1|Brasil| | |
2|Acre|1 | |
3|Alagoas|1 | |
4|Amapá|1 | |
5|Amazonas|1 | |
6|Bahia|1 | |
7|Ceará|1 | |
8|Distrito Federal|1 | |
9|Espírito Santo|1 |