A simple NodeJS App debugging example in VS Code using Nodemon.
Note: Feel free to customize .vscode/launch.json
and ./nodemon.json
files.
yarn add nodemon --dev
font-family = BerkeleyMono Nerd Font | |
#font-family = Iosevka Nerd Font | |
# font-family = SFMono Nerd Font | |
font-size = 20 | |
theme = GruvboxDarkHard | |
shell-integration-features = no-cursor,sudo,no-title | |
cursor-style = block | |
adjust-cell-height = 35% | |
# background-opacity = 0.96 |
import Express from 'express' | |
import { Application, NextFunction, Request, Response } from 'express' | |
import y from 'yup' | |
export interface TypedRequest<TBody> extends Request { | |
body: TBody | |
} | |
export interface TypedResponse<TBody> extends Response { | |
json: (body: TBody) => Response | |
} |
Goal: Connect to MSSQL using FreeTDS / ODBC in Python.
Host: Ubuntu 11.10 x86_64
Install:
sudo apt-get install freetds-dev freetds-bin unixodbc-dev tdsodbc
pip install pyodbc sqlalchemy
In /etc/odbcinst.ini:
const winston = require('winston'); | |
const { LEVEL } = require('triple-beam'); | |
const SeverityLookup = { | |
'default': 'DEFAULT', | |
'silly': 'DEFAULT', | |
'verbose': 'DEBUG', | |
'debug': 'DEBUG', | |
'http': 'notice', | |
'info': 'info', |
Recommendations of unit types per media type:
Media | Recommended | Occasional use | Infrequent use | Not recommended |
---|---|---|---|---|
Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
# Default termtype. If the rcfile sets $TERM, that overrides this value. | |
set -g default-terminal screen-256color | |
# support logging out and back in | |
set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION" | |
# pbcopy support | |
set-option -g default-command "reattach-to-user-namespace -l bash" | |
# vi mode |
brew bundle dump | |
brew bundle --force cleanup |
{ | |
"workbench.iconTheme": "eq-material-theme-icons", | |
"workbench.activityBar.visible": true, | |
"workbench.editor.enablePreview": false, | |
"workbench.settings.editor": "json", | |
"workbench.colorTheme": "Material Theme High Contrast", | |
"editor.fontFamily": "Inconsolata", | |
"editor.minimap.enabled": false, | |
"editor.formatOnSave": false, | |
"editor.tabSize": 2, |
// { | |
// "data": [], | |
// "page": 1000, | |
// "per_page": 3, | |
// "total": 12, | |
// "total_pages": 4 | |
// } | |
// http get https://reqres.in/api/users\?page\=1000 |