Docker Caddy Wordpress
docker run --name <your_container_name> alpine/git <git_command>
docker run -it --name <your_container_name> alpine/git <git_command>
: Run with tty interactivedocker run -d --name couch -p 8091-8094:8091-8094 -p 11210:11210 couchbase
: Run (e.g. a server) unattacheddocker cp container_name:/git/getting-started .
: Copy files/folders between a container and the local filesystemdocker start <your_container_name>
: Start a stopped containerdocker attach <your_container_name>
: Attach to running container
This file contains 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
use { useState } from 'react'; | |
const Test = () => { | |
const [tipAmount, setTipAmount] = useState(''); | |
const handleKeypress = (e) => { | |
if(!((e.keyCode > 95 && e.keyCode < 106) | |
|| (e.keyCode > 47 && e.keyCode < 58) | |
|| e.keyCode == 8)) { | |
e.preventDefault(); // Let's stop this event. |
This file contains 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
#!/bin/bash | |
# From https://github.com/LIAAD/yake#installing-docker | |
# Install dependencies | |
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common |
This file contains 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
[ | |
{ | |
"label": "Afghanistan", | |
"value": "AF" | |
}, | |
{ | |
"label": "Åland Islands", | |
"value": "AX" | |
}, | |
{ |
This file contains 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
package main | |
import ( | |
"testing" | |
"github.com/fatih/color" | |
"github.com/jwalton/gchalk" | |
"github.com/logrusorgru/aurora" | |
"github.com/mgutz/ansi" | |
"github.com/muesli/termenv" |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'
instead ofconst foo = require('foo')
to import the package. You also need to put"type": "module"
in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)
from CommonJS instead ofrequire(…)
. - Stay on the existing version of the package until you can move to ESM.
This file contains 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
ffmpeg -i 1.wav -i 2.wav -i 3.wav -i 4.wav -i 5.wav -i 6.wav -i 7.wav -i 8.wav -i 9.wav -i 10.wav -i 11.wav -i 12.wav -i 13.wav -i 14.wav -i 15.wav -i 16.wav -filter_complex "[2:a][0:a][1:a][3:a][4:a][5:a][6:a][7:a][8:a][9:a][10:a][11:a][12:a][13:a][14:a][15:a]join=inputs=16:channel_layout=hexadecagonal[a]" -map "[a]" output.wav |
This file contains 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
{ | |
"RequestID": "MakeOrder_5332109163_20210126134804", | |
"Name": "OZGUR AKSU", | |
"MobilePhone": "5332109163", | |
"ProductIDs": [ | |
262, | |
131, | |
130, | |
134, | |
244, |
This file contains 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
# ENTER YOUR CUSTOM VALUES HERE | |
HOSTNAME="subdomain.example.com" | |
EMAIL="info@example.com" | |
# set hostname | |
hostnamectl set-hostname $HOSTNAME | |
echo -e "127.0.0.1 localhost $HOSTNAME" >> /etc/hosts | |
# add Jitsi to sources | |
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add - |