teleren/devto huggingface dataset:
Personal directory distributed over several physical disks
Tags: ubuntu, home, symlinks, setup
Published: 2020-09-10 23:39:13

---
title: Personal directory distributed over several physical disks
date: 12-03-2020
canonical_url: https://glpzzz.dev/2020/03/12/linux-home-several-disks.html
tags: ubuntu, home, symlinks, setup
published: true
---
Someone may say that it is a symptom of OCD, but the fact is that I do not like having disk drives visible in the file browser. Point! I also do not like having a separate disk to store other things and that remain outside my home directory.

What I like is being able to use the directories that are pre-configured for each user: Documents, Downloads, Images, Public, Music, Videos.

When you have a single disk on your computer, it is very simple:
* Disc 1:
    * Partition for the system: `/`
    * Partition for user: `/home`

But when you have multiple albums that's when things start to get a little disorganized. It is possible to use a whole disk for the system (the small one) and the rest for the home (the big one). But if the system disk is big, having all that space dedicated to / would be a waste, then we also put home there:

* Disc 1:
    * Partition for the system: `/`
    * Partition for user: `/home`
* Disc 2:
    * (n partitions that are mounted as independent drives)

But in this case, the partition (s) of Disk 2 appear in the file browser, as something apart. I do not like it, it seems out of place, I will also store my files there, they should be below `/home/<user>`. 

In that Disc 2, the extra, maybe we put what is "not essential": Images, Music and Videos. With this situation I started to think about alternatives and I came to:

* Disc 1:
    * Partition for the system: `/`
    * Partition for user: `/home`
* Disc 2:
    * Partition mounted to: `/home/<user>/Media`

![Settings in /etc/fstab to mount in /home//Media](https://gutl.jovenclub.cu/wp-content/uploads/2020/03/2020-03-12_00-06.png)

In Media then I put the directories Images, Music and Videos. But it seemed unnatural to me to have to go to another directory to get to music, videos, etc. Something better should be able to do.

![Settings for personal directories on LxQt](https://gutl.jovenclub.cu/wp-content/uploads/2020/03/con-afuera.png)

After thinking a bit, I came up with the schema I'm currently using:

* Disc 1:
    * Partition for the system: `/`
    * Partition for user: `/home`
* Disc 2:
    * Partition mounted to: `/home/<user>/.media`

![New settings por personal directories](https://gutl.jovenclub.cu/wp-content/uploads/2020/03/con-oculto.png)

In this way, and using symlinks, the traditional file structure of a home remains, distributed between 2 physical disks.

![Result](https://gutl.jovenclub.cu/wp-content/uploads/2020/03/final.png)
Online Support
Published: 2020-09-11 05:52:51

Open the web browser and visit McAfee.com/activate.Sign in to your McAfee Account.Enter 25 Digit Mcafee Product key to Activate it.
http://mcafeecomactivate.live/

Visit Support.brother.com and enter your printer Model to download Brother Printer Drivers. Install it &amp; Begin with your Printing.
http://brotherprinterdrivers.live/

Netgear Extender Not Working? Try to open mywifiext to setup of WiFi Extender. Check out the steps for WiFi extender Configuration.
http://mywifiextenders.net/
Bash CleanMyMac alternative 🧼
Tags: bash, hacktoberfest
Published: 2020-09-11 05:51:54

As you might know by now, I really like Bash!

So far, we have built some fun stuff using Bash like [hacking our morning routine](https://daily-dev-tips.com/posts/ive-automated-my-morning-routine-%F0%9F%A4%96/) and making an [after work git check](https://daily-dev-tips.com/posts/bash-never-forget-to-git-commit-again-%F0%9F%92%A5/).

For a lot of my articles I use [Carbon](https://carbon.now.sh/) to generate these cool previews.
Very cool app, but my Downloads folder gets full of these things.

So how can Bash help us CleanOurMacs?

![Bash CleanMyMac](https://cdn.hashnode.com/res/hashnode/image/upload/v1599562189223/4duG8kaxe.gif)

## Bash clean files

> Note: This script can be very dangerous since it uses Bash to remove files. Please be cautious!

We will be using a `txt` file to loop over files we want to remove.

These files can include a wildcard (*) or start with a specific string:

- Start with: `carbon`
- Wildcard: `carbon*.png`

Then on to the script!

```bash
while read line; do
    find . -name "$line" -exec rm -rf {} \;
done < ~/www/cleanMyPc/files.txt
echo 'All done';
```

Wow, simple as that right!

We loop through the lines in our `files.txt`, and for each line we execute the `find` command it searches for a specific name and calls `-exec rm -rf` 

The `rm` stands for `remove` and `rf` for `recursive force`.

## Running the script

This script initially worked so it would scan all your files, but I adjusted it for security reasons to only scan a specific folder.

1. So open a Terminal
2. Navigate to the folder you want: `cd Downloads`
3. Execute command `~/path/to/script/bash.sh`
4. Voila, all done

It's a very simple script, but it can be useful to find/remove certain files on your computer.

Find this project on [GitHub](https://github.com/rebelchris/cleanMyPc)

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
Protected Text
Tags: beginners, tutorial
Published: 2020-09-11 05:50:37

Usually when we have to share text information between computers you either store in mail, drive etc.
I found an easiest & convenient way to do it.
 
There is a site https://www.protectedtext.com/<any name you wish>
 
Eg) https://www.protectedtext.com/dhanushn007
 
Where you can store the text and save it using a password to unlock your text so that no one except you can unlock the text.
Now you can get the text from any computer just by entering the url and typing the password.
 
Note: Cannot use the existing site name if anyone has already used it.
Google Firebase Functions : Setting and accessing environment variable
Tags: node, googlecloud, serverless
Published: 2020-09-11 05:18:31

It's always a good idea to externalize application keys/secrets from code.
Google Firebase Functions has a feature that allows you to specify environment variables of key/value pairs using [Firebase CLI](https://firebase.google.com/docs/cli) and can be accessed by your code at runtime.

#### **Set env variable**

```
firebase functions:config:set config.key="SECRET_KEY" config.pass="SECRET_PASS"
```
> _NOTE: You must redeploy functions to make the new configuration available._

#### **Deploy functions**

```
firebase deploy --only functions
```

#### **Accessing env variables**

```
const secretKey  = firebase.config().config.key;
const secretPass = firebase.config().config.pass;
```

#### **Retrieve all variables**

```
firebase functions:config:get
```
Output:
```
{
  "config": {
    "key": "SECRET_KEY",
    "pass": "SECRET_PASS"
  }
}
```

#### **Unset a variable**

```
firebase functions:config:unset config.key
```

Let's consider using a file where we can keep all the environment variables.

`env.json`, a file that will contain all our environment variables.
```
{
  "config": {
    "host": "domain",
    "key": "SECRET_KEY",
    "pass": "SECRET_PASS"
  }
}
```

How to deploy the variables with the `env.json` file?

```
firebase functions:config:set env="$(cat env.json)"
```

Great! Now we can make a bulk update of our variables and keep track of them.
How to fetch your github activity chart as an image?
Tags: github, chart, api
Published: 2020-09-11 05:10:45

---
title: How to fetch your github activity chart as an image?
date: 15-09-2020
canonical_url: https://glpzzz.dev/2020/09/11/github-chart-image.html
tags: github, chart, api
published: true
---
![My github activity chart](https://ghchart.rshah.org/glpzzz)

Use this URL `https://ghchart.rshah.org/<username>` and replace `<username>` by yours.

Enjoy!
How to Use Timeshift from Command Line in Linux
Tags: linux, beginners, tutorial, timeshift
Published: 2020-09-11 04:47:09


##What is Timeshift?

Timeshift is a great tool, which monitors your system & application-level changes and gives you the ability to roll back your system in the previous state, in case, you run into a problem (Similar like Windows restore point)
<br>
![Timeshift](https://dev-to-uploads.s3.amazonaws.com/i/wif9rs60am8l5lg01fy3.png)
<br>
###Why should you use the Timeshift from the Command line/Terminal when you have a GUI version?

Well, using the timeshift in GUI mode is absolutely fine. Nothing to complain here. However, imagine a situation, where your video driver is broken due to some unstable update or maybe something terrible happens with your system and you are not able to use the Timeshift GUI version to rollback your system to the previous state, then you have only the Timeshift CLI option available.

##How to use Timeshift from the command line?

At first, make sure that the timeshift is installed in your system. If not, then install it using `sudo apt install timeshift`

###Creating a Restore point

Now, launch your terminal and type the following command

`sudo timeshift --create --comments "A new backup" --tags D`

![Restore Point](https://dev-to-uploads.s3.amazonaws.com/i/r56r5mely8pxuyaq4a4z.png)

(Creating a restore point/snapshot may take several minutes, depends on the size of the files & your hardware resources)

`-- comments "A new backup"`

You can write anything as a comment, it doesn't matter that much. 

`--tags D`

There are several tags, that specify what kind of backup it is.

As an example

 `--tags D` stands for Daily Backup
              
`--tags W` stands for Weekly Backup
             
 `--tags M` stands for Monthly Backup
              
`--tags O` stands for On-demand Backup

You can put any tag as your wish, after the comments

###Restoring a snapshot

`sudo timeshift --restore`

This command shows you a list of created snapshots & ask, from which snapshot you want to restore the system, you have to select the snapshot index to proceed further

![snapshot_list](https://dev-to-uploads.s3.amazonaws.com/i/9fjqisv0mjmjlnvyk7mw.png)

After that, press the Enter key to continue, when It asks about reinstalling the GRUB2 bootloader, press the 'y' key, then press the Enter key again & finally, press the 'y' key to start the system restore...

![list_2](https://dev-to-uploads.s3.amazonaws.com/i/o3mnmo4tdfdb6zhwzm4j.png)

![list_3](https://dev-to-uploads.s3.amazonaws.com/i/xfyaea6tm63ebg47pxu1.png)

At this moment, you have restored the system successfully,  and the PC will take a reboot to ensure that your restoration is fully done.

(**When your PC is in the restoring phase, don't do any work. It might interfere with the restoring process.)

###[Watch on YouTube](https://www.youtube.com/watch?v=T4mvLONfB1A)

Thanks for the reading :) 

Coffee https://www.buymeacoffee.com/rahedmir
How to create a string of numbers with , $, €, or £ in JavaScript.
Tags: javascript
Published: 2020-09-11 04:40:33

---
title: How to create a string of numbers with ¥, $, €, or £ in JavaScript.
published: true
description: 
tags: JavaScript
//cover_image: https://direct_url_to_image.jpg
---

To display a string of money in JavaScript with a comma, use the `toLocaleString` method.

ref: toLocaleString specification: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString

### Japanese Yen

```js
const price = 1234567890.1234
const jpy = price.toLocaleString('JP',
  { style: 'currency', currency: 'JPY' })

console.log(jpy)
// => ￥1,234,567,890
```

### U.S. dollar

```js
const price = 1234567890.1234
const usd = price.toLocaleString('US',
  { style: 'currency', currency: 'USD',})

console.log(usd)
// => $1,234,567,890.12"
```

### Euro

```js
const price = 1234567890.1234
const eur = price.toLocaleString('DE',
  { style: 'currency', currency: 'EUR' })
console.log(eur)
//=> 1.234.567.890,12 €
```

### British pound

```js
const pond = price.toLocaleString('GB',
  { style: 'currency', currency: 'GBP',})
console.log(pond)
//=> "£1,234,567,890.12"
```
YouTube Video | YDKJS — Objects and Prototypes - 4
Tags: javascript, beginners, youtube, webdev
Published: 2020-09-11 04:29:45

Welcome to the YDKJS series. Every Javascript developer knows one thing that they don’t know enough Javascript. On the top level, it’s only var, for , if else just like any other Programming language, but if you want to dive deep and know how JS work. There is no better place then the legendary book series [You don’t know JS](https://maximdenisov.gitbooks.io/you-don-t-know-js/content/) by **Kyle Simpson**

This is the final part of the series

{% youtube UcAqA8ymeZs %}

Please do like it and [Subscribe](https://www.youtube.com/channel/UCRf7mazcufqZxd2pR3oQJuQ?sub_confirmation=1) to my channel for more videos.
Face Detection and Extraction using CNN
Tags: python, datascience, machinelearning
Published: 2020-09-11 04:29:32

Face Detection is a easy task for computer now a days.In fact some ML model achieved state of art in computer vision.

We are using pretrained CNN model for face detection and extraction.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/lgw7deguv6drtls9zelu.jpg)

The project has two essential elements:

1. Box around faces: Show red boxes around all the faces recognised in the image. The Python file is faceDetectionCNN.py

2. Extracted faces: Extract faces from all images in a folder and save each face into a destination folder to create a handy dataset. The Python file is faceExtraction.py

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/1uo9ia8gq74t901a9xi7.jpg)

```python
def highlight_faces(image_path, faces):
  # display image
    image = plt.imread(image_path)
    plt.imshow(image)

    ax = plt.gca()

    # for each face, draw a rectangle based on coordinates
    for face in faces:
        x, y, width, height = face['box']
        face_border = Rectangle((x, y), width, height,
                          fill=False, color='red')
        ax.add_patch(face_border)
        plt.savefig('./media/face_detected.jpg')
    plt.show()
```
{% github https://github.com/aayushi-droid/faceDetectionCNN %}
YouTube Video | YDKJS — Objects and Prototypes - 3
Tags: javascript, beginners, youtube, webdev
Published: 2020-09-11 04:27:40

Welcome to the YDKJS series. Every Javascript developer knows one thing that they don’t know enough Javascript. On the top level, it’s only var, for , if else just like any other Programming language, but if you want to dive deep and know how JS work. There is no better place then the legendary book series [You don’t know JS](https://maximdenisov.gitbooks.io/you-don-t-know-js/content/) by **Kyle Simpson**

This is the eight part of the series

{% youtube EK9J_LZQQeA %}

Please do like it and [Subscribe](https://www.youtube.com/channel/UCRf7mazcufqZxd2pR3oQJuQ?sub_confirmation=1) to my channel for more videos.
YouTube Video | YDKJS — Objects and Prototypes - 2
Tags: youtube, webdev, showdev, javascript
Published: 2020-09-11 04:23:09

Welcome to the YDKJS series. Every Javascript developer knows one thing that they don’t know enough Javascript. On the top level, it’s only var, for , if else just like any other Programming language, but if you want to dive deep and know how JS work. There is no better place then the legendary book series [You don’t know JS](https://maximdenisov.gitbooks.io/you-don-t-know-js/content/) by **Kyle Simpson**

This is the seventh part of the series

{% youtube QXOEtroAyig %}

Please do like it and [Subscribe](https://www.youtube.com/channel/UCRf7mazcufqZxd2pR3oQJuQ?sub_confirmation=1) to my channel for more videos.
Taskord alpha is out now 🎉
Tags: opensource, showdev, productivity, 100daysofcode
Published: 2020-09-11 03:11:55

Hey folks 👋

For the past one month, I was working on a project called Taskord as a part of 100 Days of Code. Fortunately, the project now turns into a public product.

Make sure to signup today https://taskord.com

There is an exciting announcement at the end of this article!

## What is Taskord?

Taskord is free open source social media for tasks! where users can post public and private todos, ask questions, and launch products. Taskord helps you to get things done together with the members of the community.

## Features

- **Login / Signup**
 - Secured PWNED Validator 🛡
 - Social auth via Google or Twitter 🌐
 - Magic Link authentication 🔮
- **Tasks**
 - Pending Tasks ⌛
 - Done Tasks ✅
 - Due date 📅 (only for patrons)
 - Image Upload 📸
- **Questions**
 - Answers 💬
 - Trending Questions 📈
 - Patron's Questions 🔒 (only for patrons)
- **Product**
 - Product related tasks ✅
 - Subscribe ➕
 - Release Updates 📦
 - Stats 📊 (Coming Soon)
- **User**
 - User related tasks ✅
 - Follow ➕
 - Reputations 🎮
 - Stats 📊 (Coming Soon)
- **Integration**
 - GitHub 🐙
 - GitLab 🦊
 - Webhook ⚓
- **Deals** 🎁 (only for patrons)
- **Dark mode** 🌑 (only for patrons)

## Screenshots

Here are some of our product screenshots!

### Homepage

![Home](https://dev-to-uploads.s3.amazonaws.com/i/aua87r80a1fnzhwjdg5k.png) 

### User Profile

![Profile](https://dev-to-uploads.s3.amazonaws.com/i/h9mq7vooggatgzspfz42.png)

### Product

![Product](https://dev-to-uploads.s3.amazonaws.com/i/a6e1en0uzvf7dmx7p49i.png)

### Tasks (Zen Mode)

![Tasks](https://dev-to-uploads.s3.amazonaws.com/i/q5sj850gwenvr17jgrvq.png)

### Questions

![Question](https://dev-to-uploads.s3.amazonaws.com/i/orwxiet1wnqe87s3bajt.png)

### Products

![Products](https://dev-to-uploads.s3.amazonaws.com/i/690tz025xlgg9042xeqf.png)

### Search

### ![Search](https://dev-to-uploads.s3.amazonaws.com/i/m84i3v2451j0gpxowqkm.png)
 
And lot more are there!

**Make sure to [signup](https://taskord.com/register) and get a free lifetime pro subscription, hurry up, only for Alpha users 💜**

https://taskord.com/register

We have a plan to promote our product to beta by the first week of October 📅🤞

PS: We are open source too, Inspired lot from [Forem](https://github.com/forem/forem)! Here is our link to the codebase https://gitlab.com/taskord/taskord

We are looking forward to your feedback, roasts, bugs, features, anything you want!

Thank you.
Docurry: A spicy, zero-config documentation site generator. 
Tags: showdev, javascript, node
Published: 2020-09-11 03:04:56

Last month, I was working in a project and I felt I needed some kind of doc site. Eventually I found docsify which is great but sadly it won't produce static files for the content and relies on client side router, and SEO gets affected.

Plus, I really didn't want to manually make the sidebar...

I also knew there are a lot of options to consider, but it was a great opportunity to gain some skills in node.

So, I started a prototype with the following goals:

1. It Should auto generate as much as possible: At least landing page, background, favicon, sidebar, ToC, search.
2. It should be __dead simple__ to use and get started.
3. It should output a clean, static site, no frameworks, no router.
4. It should support multiple languages
5. It should be 'nice' to use out of the box.

And a few more.

The result: https://docurry.aboni.dev/

In my opinion it can be useful to quickly document anything an deep customization is not needed.

GIF:
https://dev-to-uploads.s3.amazonaws.com/i/baicf9njuomqnrx0sfn8.gif
What the difference between a list and a dictionary?
Tags: python, beginners, ddsry, codenewbie
Published: 2020-09-11 03:03:18

What the difference between a list and a dictionary in Python Programming Language By DDSRY?


- A lsit is for an ordered list of items.
- A dictionary (of dict) is for matching some items (called "keys")
to other items (called "values").
What do you value most for an Opensource Project?
Published: 2020-09-11 02:55:12

I am working with the OpenSource Internet of Things(IoT) Operating System [RT-Thread](https://www.rt-thread.io/), RT-Thread was born in 2006, but this is the first year it is launching to the global, we are looking for sharing our project with more people and getting the feedback. 


Open Source is not just about sharing the code, it is about sharing every idea, talking with each other, exploring, finding more possibilities, and making progress together. 

So we'd like to know more about your opinions over an opensource project, please share your great ideas with us. 


**RT-Thread Contact Info:**

 [Website](https://www.rt-thread.io/)  |  [Github](https://github.com/RT-Thread)  | [Twitter](https://twitter.com/rt_thread) |  [Facebook](https://www.facebook.com/RT-Thread-IoT-OS-110395723808463)   |   [Youtube](https://www.youtube.com/channel/UCdDHtIfSYPq4002r27ffqPw
)
Linux themes update – September 2020
Tags: linux, ubuntu, beginners, design
Published: 2020-09-11 02:53:42

Hello there and welcome to LinuxH2O. I’m continuing on the themes update for the month. It’s September 2020 now so let’s see what the Linux community has to offer us.

This month we have a total of 6 themes for you.

* Three GTK+ themes
* Two icon theme packs
* One cursor theme pack
* One GRUB bootloader theme

So you can see it’s full of 360° customization for your favorite Linux distribution. Now lets into the updates.

## New GTK+ themes for Linux

As you know, we have got three newly trending GTK+ themes for Linux this month. Here is the list of the themes.

**1. Juno theme**

![Juno GTK+ theme for Linux](https://dev-to-uploads.s3.amazonaws.com/i/sofjrnw5axlox7jqik9z.png)

Juno is a clean looking dark theme for Linux. It is inspired by the epic VSCode theme. It comes with many dark color pallets like Juno ocean, Juno palenight, and Juno mirage.

Here are the things that are included in the theme:

* GTK+ support
* Gnome shell theme
* XFCE support
* Color pallets option
* Different folder assets

**For the complete article, visit:** [Read More](https://linuxh2o.com/linux-themes-update-september-2020/)

**For the video guide:**

{% youtube gMxhcLgF82k %}
Three Months In: Teaching Myself to Code Full-time
Tags: motivation, devpride, codenewbie, csharp
Published: 2020-09-11 02:44:50

This 3rd month has been 🔥 🔥 🔥

Right at the end of my 2nd month I had just discovered my passion for game development. Once I had that career direction in my mind, my learning speed has gone from fast to TURBOOOO. 

I have designed and developed a Star Trek Space Shooter demo, a first person shooter demo, 3d PacMan, and am now working on a dungeon crawler rpg. 
(https://n0nb1narydev.github.io/projects.html to see and play my first 3 games)
Each game has taught me so much with both Unity and C#. The work days go by way too fast and I find myself dreaming about developing games every night. 

*The most valuable thing that I have learned this third month is that when you* **know** *what direction you want to go with coding and developing, that is the point where you can really start to expedite your self-learning.*

It's not easy finding that perfect career-fit for you, it wasn't for me. I went from psychology, to forensics, to biology, to photography, to web-development, and finally to game development. Life is not about taking the easy route. Do what feels right for you even if it is the harder direction. Even if it's an unconventional path. If you want to change directions, there is nothing wrong with that at all. Just follow your bliss, try new things, keep moving forward, and don't be afraid to fail.
What's new in Laravel 8.x ?
Tags: laravel, php, vue, react
Published: 2020-09-11 02:42:08

**Laravel 8** continues the improvements made in Laravel 7.x by introducing:
👉 Laravel Jetstream,
👉 model factory classes,
👉 migration squashing,
👉 job batching,
👉 improved rate limiting,
👉 queue improvements,
👉 dynamic Blade components,
👉 Tailwind pagination views,
👉 time testing helpers,
👉 improvements to `artisan serve`,
👉 event listener improvements, 
and a variety of other bug fixes and usability improvements.

Go check it out [From here](https://laravel.com/docs/8.x/releases)