deamme
7 months ago

VSCode - Code editor

Probably the best code editor out there. It has tons of extensions and is just a joy to work with.

Best theme to have is: https://vscodethemes.com/e/dracula-theme.theme-dracula.

Best font to code with: https://github.com/tonsky/FiraCode

Highlight colors in your code: https://github.com/tonsky/FiraCode

My VSCode settings (very opinionated you probably shouldn't copy everything ): https://github.com/deamme/gatsby-starter-prismic-resume/blob/master/vscode.json

Enjoy an amazing setup!

deamme
7 months ago

DNS troubleshooting

You've setup your dns but it doesn't work. It typically means you've set it up wrong or the dns having propagated to all DNS servers yet.

I use https://dnschecker.org/ to check the DNS propagation and keep track.

AnTheMaker
7 months ago

How do display errors in PHP

Paste these 3 lines of PHP code at the beginning of your PHP-file: (right after <?php) ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);

This is just one of many ways to do this but I think it's the easiest solution if you need a quick way to display errors. Just don't forget to remove those lines before using your code in production! ;)

mddanishyusuf
7 months ago

My quick hack to unsubscribe from Spam Email in 1-click

I found a tool LeaveMeAlone on ProductHunt and It's quite awesome that I can unsubscribe without any data leak in 1-click and listed on single page(As they promise).

image

Here you can clean your Spam Emails Today

https://leavemealone.xyz

Booligoosh
7 months ago

A command to give your terminal windows a title

Put this in your bash profile: function title() { echo -e "\033]0;${1:?please specify a title}\007" ; }

Then just type title "myTitle" in the terminal.

Booligoosh
7 months ago

Hide desktop items on Mac

This terminal command will hide everything on your desktop, so it doesn't give you anxiety 😅

It doesn't actually delete the stuff on your desktop, it just hides it. You can still access the items by going to your Desktop folder in Finder.

defaults write com.apple.finder CreateDesktop -bool false;killall Finder

And to show them again, you can do this: defaults write com.apple.finder CreateDesktop -bool true;killall Finder

Booligoosh
7 months ago

Log multiple variables to the JS console with their names

var x = 2;
var y = 3;
var z = 'hello';
console.log({x, y, z});

This will print out the following: > {x: 2, y: 3, z: "hello"}

Booligoosh
7 months ago

Git: push dev branch, merge into master, push master to origin, go back to dev

I use this command super often, basically whenever I want to push a new feature for KanbanMail to production. It pushes my dev branch, goes to master, merges my dev branch, pushes it, then goes back to my dev branch. Here my two main branches are called master and dev, but you could change it to whatever you want.

git checkout dev && git push && git checkout master && git merge dev && git push && git checkout dev
mddanishyusuf
7 months ago

Screenshot Tool By Zeit Return Screenshoot by URL

Link Preview Tool: I found this tool in Zeit example repository https://github.com/zeit/now-examples and It's quite helpful and Nice if A Blog post or any page don't have any featured image then you can use this tool API.

I'm using this API into DailyHack Meta Tags to preview page screen in all social network link preview

How to use:

It's so simple just pass the URL as endpoint.

https://screenshot-v2.now.sh/<URL>

https://screenshot-v2.now.sh/dailyhack.xyz/post/quickly-create-images-for-social-media-and-seo-22

It will return you an image of that page. Good new it's Open Source Project. So, you can host this on your own server.

gjain574
7 months ago

Validate your side project before beginning development

Validate your audience and drill down to exactly what are people searching using https://answerthepublic.com/

A visual summary of what questions, prepositions and comparisons are people using while searching the keywords related to your project.