pra verificar o NUMERO do pendrive, ex: sd1
sudo fdisk -l
x=NUMERO
sudo dd if=/dev/zero of=/dev/sd${X} bs=512 count=1 && sync
sudo cfdisk /dev/sd${X}
const filterKeys = (_raw, ..._allowed) => { | |
_allowed = _allowed.flat(); | |
_raws = [_raw].flat(); | |
const filtered = _raws.map(_raw => { | |
const filtered = Object.keys(_raw) | |
.filter(key => _allowed.includes(key)) | |
.reduce((obj, key) => { | |
obj[key] = _raw[key]; | |
return obj; |
<html> | |
<style> | |
body { | |
font-family: Impact; | |
background: greenyellow; | |
padding: 40px; | |
} | |
.c { | |
text-align: center; | |
color: white; |
from PIL import Image | |
name_image = "20181023_115428129.gif" | |
im1 = Image.open(name_image) | |
frames = [] | |
for frame in range(0, im1.n_frames): | |
im1.seek(frame) | |
im2 = im1.rotate(90, resample=Image.BICUBIC, expand=True) |
#!/usr/bin/env bash | |
sudo apt -y upgrade | |
sudo apt -y update | |
sudo apt -y install git | |
sudo apt -y install curl | |
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash - | |
sudo apt-get -y install -y nodejs |
<% | |
function requestToJsonString() | |
bytecount = Request.TotalBytes | |
bytes = Request.BinaryRead(bytecount) | |
Set stream = Server.CreateObject("ADODB.Stream") | |
stream.Type = 1 'adTypeBinary | |
stream.Open() | |
stream.Write(bytes) | |
stream.Position = 0 |
var codigo = '10011000'; | |
function posicaoBitsVerificadores (codigo) { | |
var maxPosicao = 0, i = 0; | |
var posicoesBit = []; | |
do { | |
maxPosicao = 2 ** i; | |
posicoesBit.push(maxPosicao); | |
i++; |
#!/bin/bash | |
arquivoAlterando="~/dev/app.js"; | |
arquivoAlterar="~/test/app.js"; | |
while true ;do | |
sIsDiff=$(diff -q ${arquivoAlterando} ${arquivoAlterar}); | |
if [[ $sIsDiff != "" ]] ;then | |
isDiff=true; |