Skip to content

Instantly share code, notes, and snippets.

@Zurc
Zurc / nvmCommands.js
Created January 31, 2025 17:18 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
@Zurc
Zurc / useHexo.md
Created April 5, 2022 21:47 — forked from christopher-black/useHexo.md
How to use Hexo and deploy to GitHub Pages
@Zurc
Zurc / mysql-docker.sh
Created April 2, 2021 12:06 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
#
# Building an MVP?
# Need a quick database you can set up in seconds?
# What about JSON?
#
# by @levelsio (with help from @marckohlbrugge, @oskarth, @maxdeviant and @kumailht)
# JS
db=[]
fs=require('fs')
@Zurc
Zurc / open-in-VS-Code.scpt
Created November 18, 2020 14:17
Open a Folder in VS Code from Finder
(*
Open in VS Code
To use:
* Drag Open In VS Code to the toolbar of any finder
window to add it to the toolbar
*)
on run
tell application "Finder"
if selection is {} then
@Zurc
Zurc / intro.md
Created October 5, 2020 11:36 — forked from derhuerst/intro.md
Installing Git on Linux, Mac OS X and Windows
@Zurc
Zurc / formUtils.factory.ts
Created July 28, 2020 14:56 — forked from kmaida/formUtils.factory.ts
Angular Date Validator - directive and factory - validates strings m/d/yyyy
// MM/DD/YYYY, M/D/YYYY
const DATE_REGEX = new RegExp(/^(\d{2}|\d{1})\/(\d{2}|\d{1})\/\d{4}$/);
export { DATE_REGEX };
@Zurc
Zurc / cloudSettings
Last active December 16, 2020 17:08
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-12-16T17:08:01.803Z","extensionVersion":"v3.4.3"}
@Zurc
Zurc / _cssTable.sass
Created January 21, 2020 19:31 — forked from if540/_cssTable.sass
css table (Bem style)
/* cssTable */
.c-cssTable
display: table
+has(thead)
display: table-header-group
+has(tbody)
display: table-row-group
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="following https://medium.com/@natelapinski/learning-observables-part-1-arrays-14480816eb61">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>