Skip to content

Instantly share code, notes, and snippets.

@dantullis
dantullis / change-logo-white-photoshop.md
Created April 3, 2022 01:49
Change logo to all white in Photoshop

Change logo to all white in Photoshop

  • Go to layer section and select logo layer
  • On menu choose Layer --> Layer style -- > Color Overlay...
  • Change Blend Mode color to white
  • Press Ok
@dantullis
dantullis / ng-commands.md
Last active December 26, 2023 16:41
Angular ng commands

Angular ng commands

Not inclduing those that are commonly in the package.json file

Create new angular application

ng new project-name --routing --style scss
ng new angular-client --routing --style scss

Create module with routing

@dantullis
dantullis / remove-git-history.md
Last active February 23, 2022 04:14
Remove Git commit history on remote repo

Steps to remove Git commit history on remote repo

Remove the history from local repo

rm -rf .git

Recreate the repo from the current content only

git init
@dantullis
dantullis / 3d-text-photoshop.md
Created January 27, 2022 22:17
3-D Text : Photoshop

3-D Text : Photoshop

Step 1

Create a new 800 x 600px document with transparent background

Step 2

Text to the following:

  • Font: Montserrat Bold
  • Size: 115 pt
  • Color: #faf957
@dantullis
dantullis / git-branch-commands.md
Last active February 1, 2022 23:36
Git specific branch commands

Create / push to new Branch and Main

Create new Branch

git switch -C 15-create-auth-k8s

Add changes

git add .

Commit changes

@dantullis
dantullis / Update-Package-On-NPM-Registry.md
Created December 16, 2020 22:05
Update-Package-On-NPM-Registry

Update Package On NPM Registry

Verify You Are Logged In

Try the following command to see if you are already logged in:

$ npm whoami

If not logged in, run the following command:

@dantullis
dantullis / Publish-Package-To-NPM-Registry.md
Created December 16, 2020 20:58
Publish Package To NPMRegistry

Publish Package To NPM Registry

Account Verification

Do you have an account on https://www.npmjs.com?

Not sure? Try the following command to see if you are already logged in:

$ npm whoami
@dantullis
dantullis / Initial-Server-Setup-With-Ubuntu-20-04.md
Created December 4, 2020 23:40
Initial Server Setup with Ubuntu 20.04
@dantullis
dantullis / install-pm2-ubuntu-20-04.sh
Created December 2, 2020 22:16
Install PM2 on Ubuntu 20.04
#!/usr/bin/env bash
echo "
--------------------------------
Installing PM2 on Ubuntu 20.04
--------------------------------
"
# To run:
# curl <raw URL>/install-pm2-ubuntu-20-04.sh | sudo bash
@dantullis
dantullis / setup-basic-ufw-firewall-ubuntu-20-04.sh
Created December 2, 2020 22:14
Setup a basic UFW firewall on Ubuntu 20.04
#!/usr/bin/env bash
echo "
-------------------------------------------------
Setting Up a Basic UFW Firewall on Ubuntu 20.04
-------------------------------------------------
"
# To run:
# curl <raw URL>/setup-basic-ufw-firewall-ubuntu-20-04.sh | sudo bash