Skip to content

Instantly share code, notes, and snippets.

View Luis-Palacios's full-sized avatar
🎯
Focusing

Luis Palacios Luis-Palacios

🎯
Focusing
View GitHub Profile
@Luis-Palacios
Luis-Palacios / restore.ps1
Last active July 21, 2017 21:58
For the Restore multiple database post
$databaseDirectory = "C:\dbbackups\"
Restore-DbaDatabase -SqlInstance localhost -Path ("{0}{1}" -f $databaseDirectory, "database1.bak")
Restore-DbaDatabase -SqlInstance localhost -Path ("{0}{1}" -f $databaseDirectory, "database2.bak")
Restore-DbaDatabase -SqlInstance localhost -Path ("{0}{1}" -f $databaseDirectory, "database3.bak")
@Luis-Palacios
Luis-Palacios / _LayoutTemplate.cshtml
Created November 10, 2018 04:37
Example for creating your own templates for webpackhtmlplugin
@{
/* Modify the _LayoutTemplate.cshtml, the _Layout.cshtml will be generated by webpack */
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>TechNews</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
@Luis-Palacios
Luis-Palacios / Docker utils
Created December 18, 2020 02:32
docker-utils.bash
# copy bak file to sql container
docker cp /path/to/db.bak {container_id}://var/opt/mssql/data
docker run --name local-postgresql -p 5432:5432 -e POSTGRES_PASSWORD=somePassword -d postgres
psql -h localhost -p 5432 dbName -U dbUser -f dumo.sql