- Guided Self learning (https://linuxjourney.com)
- Best one liners for linux command line (https://www.commandlinefu.com/commands/browse)
- Find files in linux from command line (https://linuxize.com/post/how-to-find-files-in-linux-using-the-command-line)
- Improve your typing speed on the command line with this awesome tool! (https://github.com/balzss/cli-typer)
- An interactive cheatsheet tool for the command-line (https://github.com/denisidoro/navi)
- Customize your shell environment to next level (https://github.com/alebcay/awesome-shell)
- I find it useful to learn new things with the self learning courses offered by github (https://lab.github.com)
- A static analysis tool for shell scripts (https://github.com/koalaman/shellcheck)
- A good collection of bash snippets if you are starting to learn about shell scripts in linux (https://github.com/alexanderepstein/Bash-Snippets)
- Linux workshop 10 days (https://linuxessentials.netlify.app)
create file composable useRequestOptions.ts
useRequestOptions.ts
import type { AuthCredential } from "@/types";
export default function () {
const config = useRuntimeConfig();
const defaultRedirect = "/sign-in";
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
Need help ! | |
what directory should i put my file for example image while upload file to server. | |
in my case i put them under public/uploads and working just fine for dev mode. | |
but when i run command npm run build those files from public is copy to .output/public/uploads folder. | |
i wonder in production where i should put my upload file put them directly to .output/public/uploads or public/uploads. | |
here is my code that handle the file upload on `server/api/imageUpload.post.ts` | |
```ts | |
import { z } from 'h3-zod' |
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
/** | |
* Example to refresh tokens using https://github.com/auth0/node-jsonwebtoken | |
* It was requested to be introduced at as part of the jsonwebtoken library, | |
* since we feel it does not add too much value but it will add code to mantain | |
* we won't include it. | |
* | |
* I create this gist just to help those who want to auto-refresh JWTs. | |
*/ | |
const jwt = require('jsonwebtoken'); |
Berikut merupakan contoh aplikasi printJS pada html
source PrintJs .
<!DOCTYPE html>
<html lang="en">