sudo pacman -Ss jdk
sudo pacman -S jdk-openjdk
const im = require('imagemagick'); | |
const fs = require('fs'); | |
const mime = require('mime-types'); | |
fs.readdir('./uploads/', (err, filenames) => { | |
if (err) throw err; | |
filenames.forEach((filename) => { | |
if (mime.lookup(filename) && mime.lookup(filename).includes('image')) { | |
fs.readFile('./uploads/' + filename, (err, data) => { | |
if (!filename) { |
function formatPhone(phone) { | |
var regex = phone.match(/(\d{3})(\d{4})(\d+)/); | |
return '(' + regex[1] + ') ' + regex[2] + '-' + regex[3]; | |
} | |
var phone = '4031234789'; | |
formatPhone(phone); | |
// Result: (403) 1234-789 |
# Don't forget to change <text> with the search term | |
#!/bin/bash | |
DOCKER_CONTAINER_NAME="container name or other text" | |
DOCKER_CONTAINER="$(docker ps | grep $DOCKER_CONTAINER_NAME | awk '{print $1;}')" | |
DOCKER_RUN_CONSOLE="docker exec -it $DOCKER_CONTAINER /bin/bash" | |
ascii_name() { | |
cat <<"EOT" | |
_ _ _ |