If you have a Graffle document (doc.graffle) with a canvas named "mycanvas" holding the following layers ...
- Extra 3
- Extra 2
- Extra 1
- Base
... then these images will be generated:
The package linked to from here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.from os import listdir,SEEK_END | |
from os.path import isfile, join, getmtime | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import socketserver | |
import time | |
import subprocess | |
import select | |
from urllib.parse import parse_qs,urlparse | |
import logging | |
import sys, os, socket |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
HTTP server that provides a web interface to run "tail" on a file, | |
like the Unix command. | |
This is a standalone script. No external dependencies required. | |
How to invoke: |
CREATE OR REPLACE FUNCTION random_int_array(dim integer, min integer, max integer) RETURNS integer[] AS $BODY$ | |
begin | |
return (select array_agg(round(random() * (max - min)) + min) from generate_series (0, dim)); | |
end | |
$BODY$ LANGUAGE plpgsql; | |
-- usage example | |
select random_int_array(15, 6, 40); | |
-- return example |
$ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>
$ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>
// tests/nexus-test-environment.js | |
const NodeEnvironment = require('jest-environment-node') | |
const { nanoid } = require('nanoid') | |
const util = require('util') | |
const exec = util.promisify(require('child_process').exec) | |
const fs = require('fs') | |
const path = require('path') | |
const prismaBinary = './node_modules/.bin/prisma' |
FROM adminer:4.7.1 | |
# WATCH OUT WHEN UPGRADING, THE SED BELOW MIGHT STOP WORKING | |
MAINTAINER marek@cilf.cz | |
USER root | |
RUN apk add autoconf gcc g++ make libffi-dev openssl-dev | |
RUN pecl install mongodb | |
RUN echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/docker-php-ext-mongodb.ini |
wpasupplicant
sudo nmcli radio wifi on
sudo iwconfig
sudo iwlist wlp3s0 scan
netplan
by dropping a file called 01-netcfg.yaml
into /etc/netplan/
or edit existing file there. See example below.netplan try
, netplan generate
, netplan apply
.