This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
import React, { FC } from 'react'; | |
import { useSocket } from '@myapp/hooks'; | |
import {Order} from '@myapp/models'; | |
export const OrdersComponent: FC = () => { | |
const [orders,setOrders] = useState<Order[]>(); | |
function addNewOrder(neworder:Order) { |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
[ | |
{ | |
"abbreviation": "Jan", | |
"name": "January", | |
"id": "01" | |
}, | |
{ | |
"abbreviation": "Feb", | |
"name": "February", | |
"id": "02" |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<title>app.kodizim.com</title> | |
<!-- Bootstrap Core CSS --> |
using System; | |
using System.Configuration; | |
using System.Linq; | |
using System.Reflection; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using log4net; | |
namespace Watson.Integration | |
{ |
# import | |
import os | |
from os import path, listdir as list_dir, rename as move | |
from os.path import isdir as is_dir, isfile as is_file | |
from pprint import pprint | |
import shutil | |
# global variables | |
#================== |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
var videos = ["https://www.youtube.com/embed/9bZkp7q19f0", "https://www.youtube.com/embed/dQw4w9WgXcQ"]; | |
window.onload = function () { | |
var playerDiv = document.getElementById("random_player"); | |
var player = document.createElement("IFRAME"); | |
var randomVideoUrl = videos[Math.floor(Math.random() * videos.length)]; |
Function Get-MP3MetaData | |
{ | |
[CmdletBinding()] | |
[Alias()] | |
[OutputType([Psobject])] | |
Param | |
( | |
[String] [Parameter(Mandatory=$true, ValueFromPipeline=$true)] $Directory | |
) |
Getting started:
Related tutorials: