sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
To install a font in WSL, follow these steps:
Check Font Location: Confirm that the font file (e.g., VictorMono.ttf) is located in a directory accessible from your WSL instance. You can copy the font file to your WSL home directory for simplicity.
Install Font: You can use the fc-cache
command to update the font cache in WSL and make the font available. Open a terminal in your WSL instance and run the following commands:
sudo cp /mnt/c/path/to/VictorMono.ttf /usr/local/share/fonts/
:: Copyright (C): 2017 Pat Migliaccio | |
:: [email protected] | |
:: | |
:: LICENSE: MIT | |
:: | |
:: File: install-git.bat | |
:: | |
:: Batch file for a quick install of Git for Windows | |
:: Include the git*.exe install executable | |
:: in the same directory as this script. |
@echo off | |
NET SESSION >nul 2>&1 | |
IF %ERRORLEVEL% NEQ 0 ( | |
echo This setup needs admin permissions. Please run this file as admin. | |
pause | |
exit | |
) | |
set NODE_VER=null |
import { readFileSync } from 'fs'; | |
import { builtinModules } from 'module'; | |
import ts from 'typescript'; | |
const tsHost = ts.createCompilerHost( | |
{ | |
allowJs: true, | |
noEmit: true, | |
isolatedModules: true, |
function memorySizeOf(obj) { | |
var bytes = 0; | |
function sizeOf(obj) { | |
if(obj !== null && obj !== undefined) { | |
switch(typeof obj) { | |
case 'number': | |
bytes += 8; | |
break; | |
case 'string': |
src/desktop && yarn install
cd OpenRAP && yarn install
cd src/desktop/OpenRAP && npm run pack
/home/User1/SunbirdEd-portal/src/desktop/OpenRAP/dist/project-sunbird-OpenRAP-1.0.2.tgz
yarn add /home/User1/SunbirdEd-portal/src/desktop/OpenRAP/dist/project-sunbird-OpenRAP-1.0.2.tgz
{ | |
"100": "Continue", | |
"101": "Switching Protocols", | |
"102": "Processing", | |
"200": "OK", | |
"201": "Created", | |
"202": "Accepted", | |
"203": "Non-Authoritative Information", | |
"204": "No Content", | |
"205": "Reset Content", |
'use strict' | |
const rTracer = require('cls-rtracer') | |
// first - configure winston logger | |
const { createLogger, format, transports } = require('winston') | |
const { combine, timestamp, printf } = format | |
// a custom format that outputs request id |