Skip to content

Instantly share code, notes, and snippets.

View ddieppa's full-sized avatar
🏠
Working from home

Daniel Dieppa ddieppa

🏠
Working from home
View GitHub Profile
@ddieppa
ddieppa / list globally installed npm packages
Created December 27, 2018 13:57
list globally installed npm packages
npm list -g --depth=0
or ask for specific package like:
npm list -g @angular/cli --depth=0
@ddieppa
ddieppa / preferred angular cli new command
Last active December 27, 2018 14:48
preferred angular cli new command flags
npx -p @angular/cli ng n AppName -S --routing --style=css --skip-install -d
@ddieppa
ddieppa / vscode-extensions.ps1
Created January 7, 2019 15:42
My VSCode extensions via Chocolatey :)
code --install-extension Angular.ng-template
code --install-extension christian-kohler.npm-intellisense
code --install-extension christian-kohler.path-intellisense
code --install-extension CoenraadS.bracket-pair-colorizer
code --install-extension cyrilletuzi.angular-schematics
code --install-extension DavidAnson.vscode-markdownlint
code --install-extension davidbabel.vscode-simpler-icons
code --install-extension dbaeumer.vscode-eslint
code --install-extension docsmsft.docs-article-templates
code --install-extension docsmsft.docs-authoring-pack
@ddieppa
ddieppa / npx-live-server.ps1
Created February 7, 2019 15:25
when want to preview html file in vscode without installing live-server as global package
npx -p live-server live-server
*cmd.exe /k ""%ConEmuDir%\..\init.bat" & "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat"" -new_console:d:"C:\Projects":t:"Developer Command Prompt"
@ddieppa
ddieppa / add_iis_cli_to_path_env
Created May 30, 2019 14:47
Add IIS inetsrv to path in order to use appcmd.exe options
%SystemRoot%\System32\inetsrv
@ddieppa
ddieppa / aliases.sh
Last active June 26, 2019 15:42
docker-compose aliasses
### Docker and Docker Compose aliases
## Docker Compose shortcuts
dc(){
echo "docker-compose $@"
docker-compose $@
}
dcf(){
dc -f docker-compose.$1.yml ${@:2}
# Source for this script: https://www.mondaiji.com/blog/other/it/10247-windows-install-fonts-via-command-line
# create temp directory
$tempPath = "C:\InstallFont"
# Obtain system font folder for extraction
$fonts = 0x14
$shell = New-Object -ComObject Shell.Application
$SystemFontsFolder = $shell.Namespace($fonts)
@ddieppa
ddieppa / blog.md
Last active December 17, 2019 14:04
Error message when you try to save a table in SQL Server: "Saving changes is not permitted"

Error message when you try to save a table in SQL Server: "Saving changes is not permitted"‎‎​

I was trying to save a Diagram after some changes in the tables an got this error:

Saving changes is not permitted. The changes that you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created.

To Prevent this error to happen, follow this steps:

  1. Open SQL Server Management Studio (SSMS).
  2. On the Tools menu, click Options.

My Ubuntu installations

Backup Dotfiles

cp .bashrc .bashrc.bak cp .bash_logout .bash_logout.bak cp .profile .profile.bak

Terminal utilities

sudo apt install zsh -y zsh --version