Booligoosh
a month 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
a month 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
a month 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
a month 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
a month 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
a month 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.

sunnysingh
a month ago

Quickly create images for social media and SEO

I use Pablo for quickly creating a properly sized image for Twitter, Facebook, LinkedIn, and search engines.

It's not as full featured as an image editor, but that is the point. You just search an image from Unsplash, add a heading and/or caption, and an optional watermark. Download the image and set it up in your meta for articles.

sunnysingh
a month ago

Use Netlify for a free and simple URL shortener

I use Kent C. Dodd's netlify-shortener tool to setup a free URL shortener on Netlify.

It works by updating a _redirects file in your repository with a CLI command, so I can type shorten https://sunnysingh.io/blog/readable-code my-short-name and it will deploy and copy https://sunny.link/my-short-name to my clipboard.

It's also possible to create a web interface for this as well, but will take a bit more time to setup versus the few minutes with netlify-shortener.

Feel free to look at my URL shortener repo to see how few things are needed to get it working: https://github.com/sunnysingh/sunny.link

mddanishyusuf
a month ago

Watch YouTube videos when I do code

I'm using a hack to play YouTube Videos sometime while I do code. This trick is working on MacOs.

double click on video and then click Picture in Picture. that's all.

Here is the tutorial video. https://www.screenmailer.com/v/inteXOAnG0MaqT8

(via) @levelsio

FabioRosado
2 months ago

Copy the ssh key id_rsa.pub directly from the terminal

You don't need to copy and paste the key to the machine you want to connect to another. All you have to do is generate your key and then type this command on the terminal:

ssh-copy-id <username>@<ipaddress/host>

You will be prompt to type in the username password and then the key will be copied, you can now log into the machine by using the command ssh <username>@<ipaddress/host>