teleren/devto huggingface dataset:
Hello DEV!
Published: 2022-04-04 17:44:27

## Intro
Hello, my name is Pat and I like to write code. 

I plan on using this site to post things from here and there that I have learned over the years and as I go.

## Why blog
I would like to share my thought processes, communication skills, expertise, and even some of my personality with anyone who may be interested in working with me or the community as a whole. If there are things I have to share that are helpful to others then we all win. I might even enjoy it.

Writing things out helps you understand the subject better. 

I would also like to have a reference to be able go back to for some of the problems I had already figured out.

I don't currently have a rollout plan for what I'll blog about so it might be a bit random what subjects I cover.

## Why blog on DEV
I see myself as more of a builder than an educator so this seems like the best platform for me to share what I know with not too much effort to publish.

It might be nice for me to build a blog on my personal site, but that seems like a premature optimization when I could be using that time to demonstrate my abilities on projects.

---

I'll talk about my professional experience in my next post.
#day 15 of solving [42/450]
Published: 2022-04-04 17:42:48

[valid-anagram](https://leetcode.com/problems/valid-anagram/submissions/)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wkilo10yvq9evw44uywz.png)

[rank-scores](https://leetcode.com/problems/rank-scores/submissions/)

[employees-earning-more-than-their-managers](https://leetcode.com/problems/employees-earning-more-than-their-managers)
 
Very tired from work :( , will do more tomorrow.
Will leaving my job for mental health reasons ruin my professional reputation?
Tags: webdev, programming, python, javascript
Published: 2022-04-04 17:14:33

I work as a web dev/designer for a digital marketing agency and I am incredibly burnt out. A few months ago there were some legal issues that came up that I was asked to resolve. Since then my life has been hell. 

I feel anxious all the time about making mistakes. About a month ago I asked to speak with my boss because I wanted to know if I was causing issues within the company. During this chat I broke down and cried and he reassured me I was doing well.

Fast forward to this past week. I was asked to design tshirts[,](https://www.dcgraphics.xyz/home) business cards, make social media posts for a company event coming up. I was given a week to complete these. I also have my other usual web dev tasks like building new sites[,](https://newlighttransport.com.au/) making updates for the sales team, etc. I also was asked to have a complete redesign of the company website done by April. 

I was feeling so overwhelmed and asked my boss if I could have focused time to work on the company site because I get pulled into big tasks that take a lot of time to complete. He told me that I can work on it a few hours a day but I still need to do the usual work. I broke down again and basically told him this was a lot of work. He asked me if I had depression and in the end I disclosed that I have struggled with anxiety and depression in the past.

Well since then the sales and production team have been very stand-offish and passive aggressive. On Friday at 11am they asked me to completely redo one of their sites and write new content so they could get approval for Adsense. The due date? Monday morning. I decided to just use a free template because that was the only feasible way I would get it done in time.

I honestly just want to quit my job but I’m terrified that I have ruined this company as a future reference because of my past breakdowns. I plan to look for new jobs but I’m honestly dreading going back to the office. I just don’t know what to do. I’ve been working so hard and I feel like I ruined my professional reputation for breaking down in front of my boss.
A Three.js 3D world with Character + Movements + Third Person Camera
Tags: javascript, threejs, webdev, showdev
Published: 2022-04-04 17:10:31


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

Hey this is my first project with Three.js so im relatively new to this library. However, I want to show you what I built and maybe it will help one or the other.

[GitHub Repo](https://github.com/Louis3797/r3f-world-with-character)

Note that there are still some bugs or not included functions like object collision.


### Built with:
- react
- react-three-fiber
- react-three-drei
- three.js
- typescript
- simplex-noise

### Features:
- 3D
- Nature Objects
- Simplex Noise Floor
- 3D Character
- Animations: Idle, Walk, Run, Dance
- Movement with w, a, s, d
- Dance with e
- Third Person Camera

[My GitHub](https://github.com/Louis3797)
What I learned this week. Week 6.
Tags: python, weeklyretro, datascience
Published: 2022-04-04 16:10:00

### Monday
Today was alright. I've been doing some leetcode practice problems and found myself very frustrated at the concept they were testing. Had it been normal python I could have solved it in one or two lines but they used their own object/class for the problem. It took most of my time to figure out so I didn't do a whole lot else. I did take the time to set up a couple github repositories to better explore the two datasets I mentioned last week. I didn't do much of anything with one as I would want to do text vectorization, which I didn't feel like doing today. The other I did some cleaning and ran a basic ordinary least squares regression to create a model. Without any tuning I am already accounting for approx. 27% of the variance. 

### Tuesday
Today was a bit rough. Woke up two hours early to a knock at my door. I needed to move two cars that were in the way of the workers here to fix the roof. So not only did I lose some sleep, I had no chance of falling back to sleep with all the banging going on. Not that I blame them for doing their job, it just adds to the stress of my day. I did great on my practice problems today, so that was nice. I tried a new strategy for reaching out for jobs and already got a reply. All I did was search for some key words on Linkedin to find hiring managers actively seeking job applicants. I highly recommend it as I have found just how helpful it can be. 

### Wednesday
Today was a good day. Even with it being rainy, and my car needing some fixing, I still had a good day. I got my daily problems out of the way earlier in the morning. Instead of giving my cousin a ride to work, I went out for lunch for sushi with him and his friends. We discussed a plethora of things but something that stands out is data. It was a bunch of nerds discussing how to properly analyze Pokémon data. Sadly on the way home my cars breaks went out and I had to utilize the E-brake to avoid getting towed. I brought in my car and it will hopefully be fixed by the end of tomorrow. After coming home I applied for a couple jobs and set up a bullet-point script for a mock interview tomorrow. Even though today was supposed to be focused on learning and the technical side of things, I found myself being pulled away from it by other responsibilities. 

Normally you would find Thursday and Friday here with a conclusion that summarizes how my week went. Obviously that didn't happen. At the end of now last week (I am writing this the following Monday), I found myself distracted from my personal responsibilities. Wednesday was the last day I followed a routine and as you can see, it affected me. I strive to be the best I can be but also recognize that I don't need to be perfect. Just because I didn't follow through for a few days doesn't make me any less worthy of patience, respect and love. It is simply my responsibility to move forward learning from my mistakes.
Microsoft Hackathon
Tags: azure, beginners, programming, challenge
Published: 2022-04-04 17:07:02

Microsoft and Galp have teamed up to create Building the Future Hackathon. Develop a low carbon future and get a chance to win 3.000€! Register at [TAIKAI](https://taikai.network/en/upcomingenergies/hackathons/hackathonbtf2022)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/okmxjl30u2atoeb2eyd4.png)
[GenerasiGigih (My Most Memorable Feedback)]
Published: 2022-04-04 16:58:20

Like high school students in Indonesia, after graduating from high school, they immediately continue their education to college. Me too, but the situation is different. In my freshman year of high school, I tried six options to enter college, but the results were still not what I wanted.

That's why I tried to postpone college and chose to enroll in the following year while looking for a purpose in life.

But what I did was unusual, I remember when my aunt said I was stupid when my family and I visited her. That moment left a mark on me, because my aunt said that in front of so many people.

But also because of that moment that made me want to prove that I can be a successful person both in education and in life.

After taking part in the university entrance selection the following year, thank God I was accepted as one of the 10 best universities in Indonesia.

One lesson I can take away is, maybe something I don't like is good for me, and maybe something I like isn't good for me. Because in the end Allah SWT plan is the best.

#GenerasiGigih
#YayasanAnakBangsaBisa
Helping founders and technical folk understand growth
Tags: marketing, startup
Published: 2022-04-04 16:56:32

I've met with _a lot_ of technical founder and companies (of all stages) and they all seem to struggle with marketing and growth ideas to generate leads and customers.

I was heavily inspired by Brett at Designjoy to provide a service like this.

Grow Your Co will provide tailored growth ideas for your company, taking your marketing from zero to hero in no time. Let's all grow together!

Website: **https://growyourco.io**
Any interest in a small dog for cowsay?
Tags: watercooler, discuss
Published: 2022-04-04 16:56:20

Derived from the "small.cow" file, artist unknown:

```perl
##
## A good woofers
##
$the_cow = <<EOC;
       $thoughts    __
        $thoughts /|$eyes|\\_____
          \\(-_//     | \\
            $tongue||---||
EOC
```
Work. Life. Balanced
Published: 2022-04-04 16:51:25

This happened just in the last few months,

Leerob, one of my favourite developer person, once said in an interview in the CodeNewbie Podcast to remember that we work for life, not life for work.

That statement just instantly hit me as a feedback. I basically have started doing programming for almost a year without caring about work-life balance and basically my github contribution chart below indicates myself have been working almost everyday, tirelessly, even in the weekend!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3jfnnids8zqezedzlxzr.png)

As a solution, I'd like to enjoy my life more with a one simple rule, no coding on weekend. And here's how it goes since September last year.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5sn46ti7qc5q9cyj5enc.png)

Life is just as important as the work you love.
optimus-manager on arch linux
Tags: linux, archlinux, nvidia, bash
Published: 2022-04-04 16:45:42

In this post I am sharing how to use [optimus-manager](https://github.com/Askannz/optimus-manager#optimus-manager) to shift between Integrated and NVIDIA GPU on Arch Linux with i3 as the tiling windows manager and no display manager.
(That is you start your Xserver using the `startx` command).

![startx in my .bash_profile](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jdls1nxxslxhr3q1yy63.png)
 

The [official documentation](https://github.com/Askannz/optimus-manager/wiki/FAQ,-common-issues,-troubleshooting#i-do-not-use-a-display-manager-i-use-startx-or-xinit) just mentions that `prime-offload` and `prime-switch` need to be run at start and end of the Xserver (respectively) but, it fails to mention to how to do this setup.

Without wasting any further time, lets get started.

## Steps
1. Open up your `.xinitrc` located under `$HOME` or `~`. If it doesn't exist [then, create one](https://wiki.archlinux.org/title/Xinit#Configuration).

2. Look at the following code-block:
	```sh
	# MENTION HERE COMMAND THAT IS RUN AT THE START OF XServer
	# and before starting up `i3` (#a)

	nitrogen --restore &
	picom &
	i3

	# MENTION HERE COMMAND THAT IS RUN AT THE END OF XServer
	# and after exiting `i3` (#b)
	```

3. Place the command to run `prime-offload` at #a:
	```sh
	if [[ -f /usr/bin/prime-offload ]]; then
		/usr/bin/prime-offload
	fi

	nitrogen --restore &
	picom &
	i3
	```

4. Place the command to run `prime-switch` at #b:
	```sh
	nitrogen --restore &
	picom &
	i3

	if [[ -f /usr/bin/prime-switch ]]; then
		sudo /usr/bin/prime-switch
	fi
	```

## Verify

Your final `.xinitrc` should be like this:
```sh
if [[ -f /usr/bin/prime-offload ]]; then
	/usr/bin/prime-offload
fi

nitrogen --restore &
picom &
i3

if [[ -f /usr/bin/prime-switch ]]; then
	sudo /usr/bin/prime-switch
fi
```

Basically, we are checking if `prime-offload` exists then, run it at the start of XServer. Technically, not exactly at start but, before we run our compositor and `i3` instance.
And then, we are checking if `prime-switch` exists then, run it after the `i3` instance has ended.

You can read more about `.xinitrc` [here](https://wiki.archlinux.org/title/Xinit#Configuration)
pync - Netcat for Python
Tags: python, netcat, cybersecurity, showdev
Published: 2022-04-04 16:41:57

Hi 👋

I'm new here and just wanted to share a project I have been working on if that's ok.

So I have been reading Black Hat Python and thought it would be a good learning experience for me to try and make a Netcat library for Python developers.

It's not perfect (there's still some things I need to do), but I thought I'd share it anyway in hopes that someone might find it useful.

Anyway here's the [GitHub repo](https://www.github.com/brenw0rth/pync) for the project if you're interested.

Any feedback or criticism is welcome.

Thank you 😊
Extracting stored passwords and certificates from Automation accounts
Tags: azure, pentest, cloudsecurity
Published: 2022-04-04 16:38:58

---
title: Extracting stored passwords and certificates from Automation accounts
published: true
description: 
tags: azure, pentest, cloudsecurity
//cover_image: https://direct_url_to_image.jpg
---
*Test at your own risk

1.Use the Get-AzPasswords function to perform a dump of credentials for Automation accounts.
```
Get-AzPassword -AppServices N - StorageAccounts N - Keys N -ACR N -CosmosDB N -Verbose | out-GridView
```

2.When prompted to select an Azure subscription, select your test Azure subscription and click OK.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zx2i30gjcqjjrqolngge.PNG)

3.In the resulting output, you should see credentials that were dumped from the Automation account.
 ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wp0a2u5yoy31fg91fbcm.PNG)

4.Open the current path in File explorer using the following command
```
explorer .
```

5.Note that there are now two new files in the directory where the command was run from
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ygyjdjfu6mrarh84245y.PNG)

6.For POC, run the AuthenticateAs-automation-acct-AzureRunAsConnection.ps1 script to login as the RunAs account.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f2bxtum6eves0dug7oji.PNG)

7.Use the following command to confirm the current user context.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wetw4ucft0rb1zb2pz1v.PNG)

We now have the cleartext credentials from the Automation account and a private certificate that we can use to authenticate as the Run as account. Since the Contributor role is configured for the Run as account by default, this means we will likely have a persistent Contributor account in the subscription.

Additionally, if the Run as account is granted any additional roles beyond the default Contributor role, we may be able to use these credentials to escalate privileges or pivot to other subscription.

While it is less common, we have seen Run as accounts that are give Owner permissions on root management groups. In most cases, this is done to allow the Automation account to automate changes in all of the subscription at once. This allows anyone with Contributor access to that Automation account to inherit the root management group role and take over all of the subscriptions.

**Reference**
https://github.com/cheahengsoon/Penetration-Testing-Azure-for-Ethical-Hackers
自己的hackmd自己架 - Codimd
Tags: heroku, codimd
Published: 2022-04-04 16:38:55

更多會員限定文章可以到[patreon觀看](https://www.patreon.com/wade3c)

-----

Codimd是hackmd的開源版，雖然主要功能仍含hackmd差不多

但並沒有提供像是hackmd的團隊管理系統

他可以使用heroku, docker compose, k8s來架

## Herkou

這是裡面最簡單的架設方式，點一下heroku的按鈕就好

> [https://heroku.com/deploy?template=https://github.com/hackmdio/codimd/tree/master](https://heroku.com/deploy?template=https://github.com/hackmdio/codimd/tree/master)

### Config

會有一些環境變數可以設定，當然也可以deploy完後再去修改

![image.png](https://res.craft.do/user/full/71bea674-0503-893e-0a7a-91e236797ff9/doc/a700393e-d0c0-40bf-9dd4-5b928ee97894/8e3f3d54-48e7-4e92-8376-19d0357caa4d)

> [https://hackmd.io/c/codimd-documentation/%2Fs%2Fcodimd-configuration](https://hackmd.io/c/codimd-documentation/%2Fs%2Fcodimd-configuration)

::heroku的DB是直接使用plugin，不用去設定CMD_DB_URL::

---

#### 如果在create app時有遇到錯誤

> Item could not be created:

> We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy.

::先去fork codimd的專案，然後把button和`app.json`裡面的連結改掉::

```
https://heroku.com/deploy?template=https://github.com/username/codimd/tree/master
```

```json
{
"repository": "https://github.com/username/codimd",
}
```

#### 如果成功create app但是有error

```
2022-03-23T13:45:56.526766+00:00 app[web.1]: npm ERR! 
2022-03-23T13:45:56.526878+00:00 app[web.1]: npm ERR! Failed at the codimd@2.4.1 start script.
2022-03-23T13:45:56.527016+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2022-03-23T13:45:56.530491+00:00 app[web.1]: 
2022-03-23T13:45:56.530721+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2022-03-23T13:45:56.530822+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2022-03-23T13_45_56_527Z-debug.log
2022-03-23T13:45:56.725946+00:00 heroku[web.1]: Process exited with status 1
2022-03-23T13:45:56.816721+00:00 heroku[web.1]: State changed from starting to crashed
```

一樣得fork repo，然後去`package.json`改node版本

```json
{
"engines": {
    "node": "12.22.1"
  },
}
```

記得deploy裡面的github要和fork的repo link起來
#66 Days of Data
Tags: python, datascience, ankitgupta, mrankitgupta
Published: 2022-04-04 16:11:48

## **Learning Python**  👨‍💻

D 48 to 50 of #66daysofdata 📈

Today started with Pandas - Basics, Data Structures (Series, DataFrame, Panel), Operations, Pandas-Matplotlib, Data Munging 👨‍💻

Checkout 👉 [My #66 Days of Data timeline on Github](https://github.com/mrankitgupta/66DaysOfData)

Say me Hi! 
I'll be glad to connect on 
👇

**Twitter** @ [MrAnkitGupta_](https://twitter.com/MrAnkitGupta_)

**Github** @ [MrAnkitGupta](https://github.com/mrankitgupta)

**LinkedIn** @ [MrAnkitGupta](https://www.linkedin.com/in/mrankitgupta)
Why did we build DECK? 💡
Tags: webdev, productivity, php, laravel
Published: 2022-04-04 16:11:35

**DECK** started as a POC for us more than three years ago. We were tinkering with **Electron js** and discovered the possibility of deep native integration with the underlying operating system using Electron APIs and web technologies. This was an excellent deal for us, being able to create desktop applications with a rich user experience for web developers.

There have been many development environments already built and actively maintained. To name a few, **Laradock**, **Lando** & **DDEV** are quite mature projects we admire and actively follow. 

Docker brought a boom to application containerization and then Docker Desktop, and we didn't look back since then. But with Docker comes additional complexities, which is something a web developer of any experience would avoid in the first place. The reason is quite apparent. They need to learn a new JS framework or a **PHP**, **Node js** one. It's easy to get started with Docker, but it has a steep learning curve if you want to dive deeper.

Imagine the old days of web development, download **XAMPP** or **WAMP** or **MAMP**, and you are done. Also, it has a GUI! Hell yeah.
Our vision is to have the same user experience. So download, run, and you're already coding your project. 

However, we don't want newcomers to web development to offer a GUI, forget the underlying complexities, and not learn it. Therefore, all our underlying Docker files and docker-compose projects are open-sourced and configurable (https://github.com/deck-app). So, anybody could open up the **Docker** projects in a code editor and do epic shit when it is the right time for them.

## Learn more about custom dev environments [here](https://getdeck.io/docs/advanced/creating-custom-stack) 

## Learn more about DECK [here](https://get-deck.com/)

[Download DECK today](https://get-deck.com) 💕

_If you find this article helpful please share and follow us on [Twitter](https://twitter.com/deckdevstudio)._
Working on My Portfolio!
Tags: webdev, career, codenewbie, 100daysofcode
Published: 2022-04-04 16:10:28

The Time has finally come!
I have Finally put in all the work to put together my Dev Portfolio.

This was a project I was not expecting to put in as much as effort and time as I did. At first thinking it was just a quick project that I could throw a few links in with my picture and an about me Section and Done! but nope... This one took quite a while indeed :sweat_smile:

I was basing this on the previous tester Portfolio I created for my FreeCodeCamp project which you can have a peek at here: https://codepen.io/malczzero/full/wvMbazy

That project was also not easy by any means but I had tutorials of a sort to follow. However in this case it was all me in this regard and thinking on my feet as I go. Ofcourse the same I have done for other projects in my Bootcamp. I can definitely say now it has been a rewarding experience to test all the skills I have learnt and to put it into a major(mini) project like this.

My main motivation for starting a portfolio halfway through my bootcamp is that its hard out here to get work. I will be real. and As well as doing Coding for the love and interest of learning I have real life bills to pay which wont wait for no-one! So with that being said I have to put myself out there and make ends meet.

One of the main ways this was ittereated over to me again and again was to create a portfolio with some basic projects you have worked on in the past to demonstrate your skill and capability. SO this is what I have done.

The main tools I have created for the site are HTML, CSS, a little bit of Javascript and the main Framework I have used is TailwindCSS. Some of the more challenging aspects have been getting my head around TailWindCSS and getting things to work, but hey when it comes to CSS this is how things always pan it isnt it?

In the end I was able to get around all the bugs and obstacles and get it done! Another challenging aspect was now getting the site published with a Custom Domain. I bought a domain last year in hopes to have my own site one day, and guess what... we are finally here! Getting the DNS records, A records, CNAME to get configured and working properly has been a challenge indeed.

However this is a learning experiene I will need to relish in so I can apply this to the future projects I will work on for businesses etc.

SO I hope you enjoyed my article this time round and take something from it. Please have a look at my portfolio and tell me what you think.. This is the first stages and I will be improving it continuously as I grow and adding better projects to it too.

Website here: https://malczcodez.online/
github repo: https://github.com/MikaCodez/malcz_portfolio

Follow me on Twitter: @CodezMikazuki

Thanks for reading,
Malcz/Mika