next.js, nginx, reverse-proxy, ssl
$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt
import React from 'react'; | |
import { renderHook } from '@testing-library/react-hooks'; | |
import stateFactory from 'jest/stateFactory'; | |
import configureMockStore from 'redux-mock-store'; | |
import { Provider } from 'react-redux'; | |
import { Store, AnyAction } from 'redux'; | |
import { initialState as initialPaginationState } from '../../store/pagination/reducer'; | |
import { useMyAwesomeHook } from '../useMyAwesomeHook'; |
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Filesystem\Filesystem; | |
use Symfony\Component\Process\Process; | |
class DockerSchemDumpCommand extends Command | |
{ |
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
As I am an avid photographer & travelling quite a lot, I wanted to sync my Adobe Lightroom library from Macbook to my Microsoft Windows desktop at home with very little/no human intervention. It is also a good thing that both Lightroom versions (mac & windows) share a common file system/structure, this helped alot in synchronizing data from one environment to another.
This HOWTO assumes you already have an AWS account created and running with an IAM user configured.
Put together, the solution would look as such (pardon my poor diagram skills):
_
macbook pro (` ). windows desktop
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
This guide is designed to help beginners navigate through the essential steps and resources to build a strong foundation in both fields.
I'm currently working as a Software Engineer, AI/MLOps. This guide addresses some of the biggest pain points that I encounter while on the learning job. The resources I wish I had discovered sooner.