Skip to content

Instantly share code, notes, and snippets.

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@DinoSourcesRex
DinoSourcesRex / app.js
Last active January 22, 2020 19:11
Test for navigating a json object graph
const { performance } = require("perf_hooks");
const _ = require("lodash");
const http = require("http");
const jp = require("jsonpath");
const hostname = "127.0.0.1";
const port = 3000;
const server = http.createServer((req, res) => {});
@DinoSourcesRex
DinoSourcesRex / IncrementPipelineVariable.ps1
Last active July 8, 2019 17:29
Incrementing a Build Pipeline Variable on AzureDevops.
# In the Phase definition make sure to check "Allow scripts to access the OAuth token" otherwise this will fail.
$VariableName = "ProjectBuildNumber"
$defId = $env:SYSTEM_DEFINITIONID
# Uses built in environment variables to create the token and api call for us
# If you want to hit a release instead just change "build/definitions/" to "release/definitions"
$url = "$env:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI$env:SYSTEM_TEAMPROJECTID/_apis/build/definitions/" + $defId + "?api-version=5.0"
Write-Host "URL: $url"
# Get the build definition
$pipeline = Invoke-RestMethod -Uri $url -Headers @{
@DinoSourcesRex
DinoSourcesRex / code_extensions.sh
Created October 23, 2018 19:10
Lists all VSCode extensions currently installed so you can easily reinstalled them
code --list-extensions | xargs -L 1 echo code --install-extension