Skip to content

Instantly share code, notes, and snippets.

.\ffmpeg -i "G:\User Data\Downloads\Blade.Runner.2049.2017.2160p.UHD.BluRay.x265-TERMiNAL\blade.runner.2049.2017.2160p.uhd.bluray.x265-terminal.mkv" -c:v copy -c:a ac3 -b:a 640k "F:\blade.runner.2049.2017.2160p.uhd.bluray.x265-terminal.mkv"
Step 1:
$ ssh-keygen -t rsa
Step 2:
$ ssh-copy-id remote_user@remote_IP
Source: https://www.appservgrid.com/paw92/index.php/2020/06/06/how-to-setup-ssh-without-passwords-linux-hint/
{
"code": "000000",
"message": null,
"messageDetail": null,
"data": [
{
"symbol": "1INCHBTC",
"base": "1INCH",
"quote": "BTC",
"marginRatio": "5.00000000",
Ctrl + a and c – Open a new screen window.
Ctrl + a and " – List all open windows.
Ctrl + a and 0 – Switch to window 0 (or any other numbered window).
Ctrl + a and A – Rename the current window.
Ctrl + a and S - Split the screen horizontally, with the current window on top.
Ctrl + a and | - Split the screen vertically, with the current window on the left.
Ctrl + a and tab – Switch focus between areas of the split screen.
Ctrl + a and Ctrl + a – Switch between current and previous windows.
Ctrl + a and n – Switch to the next window.
Ctrl + a and p – Switch to the previous window.
@namhnz
namhnz / WPFLoadingButtonStyle
Created November 18, 2021 18:41
Style của button có thể thay đổi khi binding thay đổi
<ui:SimpleStackPanel Orientation="Horizontal"
Spacing="5">
<!-- https://stackoverflow.com/questions/15576589/how-to-extend-instead-of-overriding-wpf-styles/15576781 -->
<ui:SimpleStackPanel.Resources>
<Style x:Key="BatDauCaiDatButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Content" Value="Bắt đầu cài đặt"></Setter>
<Setter Property="IsEnabled" Value="True"></Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding IsInstallationInProgress}" Value="True">
<Setter Property="IsEnabled" Value="False"></Setter>
1. https://levelup.gitconnected.com/how-to-set-up-a-typescript-node-js-app-in-5-minutes-93ffee3b1768
Setting Up TypeScript
First create a project a folder:
mkdir typescript-api
cd typescript-api
Initialize your package.json:
yarn init -y
The first package we’ll install is typescript as a dev dependency. The reason we use TypeScript as a dev dependency is that before we deploy our app to production, we compile TypeScript to normal JavaScript code that can be interpreted by Node.
yarn add -D typescript
https://medium.com/@tomlarge/private-routes-with-react-router-dom-28e9f40c7146
https://thomlom.dev/setup-eslint-prettier-react/
Tutorials:
https://wanago.io/2020/03/30/forms-formik-react-hooks-api-typescript/
https://jasonwatmore.com/post/2020/02/08/react-formik-2-form-validation-example
https://jaredpalmer.com/formik/docs/api/useField

Keybase proof

I hereby claim:

  • I am namhnz on github.
  • I am namhnz (https://keybase.io/namhnz) on keybase.
  • I have a public key ASCMHSxYKRru6I6CbMnhwONcymT8pTh79xraWTRSXJm1RAo

To claim this, I am signing this object: