Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

DO | |
$$ | |
DECLARE | |
rec RECORD; | |
lastId INT; | |
BEGIN | |
FOR rec IN (SELECT table_name | |
FROM information_schema.tables | |
WHERE table_schema = (SELECT current_schema()) | |
AND table_type = 'BASE TABLE') |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"regexp" | |
"strconv" | |
"strings" | |
"time" |
#!/bin/bash | |
# Each 'run' generates 10 unique URLs, so if RUNS=10 you'll get 100 lines out. | |
# Requires `gpw` to be installed, as a source for nice, random strings. | |
FILE=large-test.csv | |
RUNS=10000 | |
if test -f "$FILE"; then | |
truncate -s 0 $FILE |
import React, { useEffect, useState, useMemo } from "react" | |
import Echo from "laravel-echo" | |
import Pusher from "pusher-js" | |
/** | |
* Pusher configuration | |
*/ | |
const pusherConfig = { | |
key: '<your_pusher_key_here>', | |
cluster: '<pusher_cluster>', |
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) { |
#!/bin/sh | |
set -e | |
vendor/bin/phpunit | |
npm run prod | |
git add . | |
(git commit -m "Build frontend assets for deployment to production") || true | |
(git push) || true |
1 . cd c:/program files/docker/docker | |
.\dockercli -Version | |
TO check the CLI vrsion | |
2. docker image ls - List out the images from docker host | |
3. docker container ls - list out the active container | |
4. docker system info | |
5. docker-compose --version | |
6. docker-machine --version | |
7. notary --version | |
8. docker container run -it ubuntu:latest /bin/bash |
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
name: Electron CD | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} |