teleren/devto huggingface dataset:
Integrating a CodeQuality Scanner into Github Actions
Tags: tutorial, codequality, github, devops
Published: 2024-04-02 20:41:21

## 🎯Workflow

1️⃣Search🔍 the CodeQuality scanner tool
2️⃣Hands On✍

---
### 1️⃣Search🔍 the CodeQuality scanner tool
- As always Let's go to the 🛒[marketplace](https://github.com/marketplace)
- Looking for a Codequality scanner🐞

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/13gufggm6lji7mh2rb8p.png)
- Well, the **SonarCloud** is very used

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

### 2️⃣Hands On✍
- Select SonarCloud and complete✅ the process
- Just select the current repository in which you are working

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2pfsjllehtfdhxq2y4x4.png)
- You will be redirected to login📌 of the web SonarCloud(Just continue with your github account)

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

### 2️⃣Hands On✍
- Inside the web ,get the SONAR_TOKEN

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

- ✏Save the SONAR_TOKEN as a secret in the repository
- Create this file🗒 at the root directory
>sonar-project.properties

```
sonar.projectKey=sharker_sharker
sonar.organization=sharker
sonar.host.url=https://sonarcloud.io
```

- Add ➕ this job to the Workflow

```bash
 sonarcloud:
    name: SonarCloud
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0  # Shallow clones should be disabled for a better relevancy of analysis
      - name: SonarCloud Scan
        uses: SonarSource/sonarcloud-github-action@master
        env:
          # This Token is automatically generated by Github
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}  # Needed to get PR information, if any
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
```


🎬Run The Action

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

Done 🚀

---
<a href="https://linkedin.com/in/lesterdprez" rel="nofollow"><img src="https://camo.githubusercontent.com/d94940866c98cb4fca5783c4e8ac95776d2f52df6bbf3d5ab9e30d76836f30ae/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c696e6b6564496e2d2532333030373742352e7376673f6c6f676f3d6c696e6b6564696e266c6f676f436f6c6f723d7768697465" alt="LinkedIn" data-canonical-src="https://img.shields.io/badge/LinkedIn-%230077B5.svg?logo=linkedin&amp;logoColor=white" style="max-width: 100%;"></a>
Add Slack notifications into Github Actions
Tags: tutorial, devops, github, cicd
Published: 2024-04-02 20:39:02


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


## 🎯Workflow

1️⃣Search🔍 the Slack-Notifications in the marketplace🛒
2️⃣Configure📋 the Webhook
3️⃣Configure📋 the Job

---
### 1️⃣Search🔍 the Slack-Notifications in the marketplace🛒
- Go to github action [marketplace](https://github.com/marketplace)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/89kzampatl3iyy3q427y.png)
- Select Slack-Notify🔔
- Read📖 the doc

### 2️⃣ Configure 📋 the Webhook


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


>_For communication between Slack and Github we need a **Slack webhook**._
- Login in Slack
- Enter here to add the [incoming webhook](https://api.slack.com/incoming-webhooks)
- You will be asked❓ to enter your team URL
- Select the channel📱 to which you want to post
- Save the URL generated as a **Webhook**

### 3️⃣Configure📋 the Job

- Add ➕ a Slack Notification Job to the [pipeline](https://github.com/Sharker3312/Node-App/blob/master/.github/workflows/node.js.yml)

```bash
 Slack-Notify:
    runs-on: ubuntu-latest
    #Wait for test job ending
    needs: test
    #If the test job is wrong, this job will still be executed 
    if:  always()
    steps:
    - uses: actions/checkout@v2
    - name: Slack Notification
      uses: rtCamp/action-slack-notify@v2
      env:
        #Settings->Secrets & Variables->Actions->New Secret
        #Paste here your secret webhook 
        SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
        # The variable needs.test.result print the result of the test job 
        SLACK_COLOR: ${{ needs.test.result }}
        SLACK_CHANNEL: general
        SLACK_USERNAME: 'Node-Bot'
        SLACK_TITLE: Workflow ${{ needs.test.result }}
        SLACK_MESSAGE_ON_SUCCESS: '✅'
        SLACK_MESSAGE_ON_FAILURE: '❌'
        SLACK_FOOTER: By Sharker3312
        

```
🚨🚨🚨:_It is likely that you only want to send notifications when an error occurs, in this case just substitute this line_
`if: ${{ always() && (needs.failing-job.result == 'failure' || needs.failing-job.result == 'timed_out') }}`


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


Done✅🚀

---
<a href="https://linkedin.com/in/lesterdprez" rel="nofollow"><img src="https://camo.githubusercontent.com/d94940866c98cb4fca5783c4e8ac95776d2f52df6bbf3d5ab9e30d76836f30ae/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c696e6b6564496e2d2532333030373742352e7376673f6c6f676f3d6c696e6b6564696e266c6f676f436f6c6f723d7768697465" alt="LinkedIn" data-canonical-src="https://img.shields.io/badge/LinkedIn-%230077B5.svg?logo=linkedin&amp;logoColor=white" style="max-width: 100%;"></a>
A Day of Tech Triumphs: Refactoring, Deploying, and Dabbling in Ethereum
Published: 2024-04-02 20:36:05

Today was an absolute whirlwind of productivity in the land of coding! 🚀 A couple of highlights:

First up, I embarked on a mission to revamp my personal website using the React Compound Design Pattern. Inspired by an enlightening video on Frontend Masters, I dove headfirst into the world of custom Providers and the Context API. The result? A sleeker, more efficient codebase that's as refreshing to look at as it is to work with. 💻

Next, it had been on my mind for so long to migrate my personal website. Now post refactor there was no excuse! I bid farewell to redundant CloudFront and S3 configurations, and hello to the simplicity of Vercel. Also, changing my custom domain DNS' with Namecheap was a breeze, leaving me wondering why I hadn't made the switch sooner. 🌐

But the day wouldn't be complete without a dab of open-source contribution. Eager to lend a hand, I ventured into the realms of Ethereum development, courtesy of the 1Hive 🐝project. Alas, my journey hit a minor snag when I was running upon their PNPM-powered repo (first I had heard of PNPM!).  Nevertheless, every challenge is a learning opportunity, and navigating through their VS Code workspace was really cool and I learnt a few things.

Here's to many more days of tech triumphs ahead and FUN! 🔍🌟
📈 Data-driven strategy automation w/ LIDA
Tags: ai, datascience, data, dataviz
Published: 2024-04-02 20:30:36

## 🤯 Teaser

Ever wanted to get a **complete analysis of a situation so you can take data-driven decisions** for any domain and **achieve data-analysis...within a few seconds ?**

🫵 Well...I have good news for you, this short post is all about that.

## 🍿 For the inpatients

{% youtube SVIIc0W-8hg %}

## ❔ Inception

Everything started with the following tweet:

{% twitter 1692187646351798485 %}

... talking about a

> _"Systems that support users in the automatic creation of visualizations, [...] understand the semantics of data, enumerate relevant visualization goals and generate visualization specifications."_

I was just wondering how far and how good this could be so I wanted to give it a try on:

- **A very concrete real life** use case,
- **A public Notebook** on a on a public Kaggle Dataset ([🥷 Neo4J Ninjas duckdb dataset 🦆](https://www.kaggle.com/datasets/adriensales/neo4j-ninjas-duckdb-dataset))

## 📜 The analysis workflow 

The analysis workflow is pretty straightforward and can be splitted into two main phasis: preparation then get insights:

1. **🗂️ Pick a dataset** on which your business depends
2. **🧍 Design** a persona (ie. to modelize the business case)
3. **🎯 Ask** for a number of goals
4. **🎯 Get goals** ideas (and detailed explanations) from AI
5. **📊 Get dataviz** from AI
6. **🧠 Analyze** : interact with `LIDA` in a continuous improvement loop (aka. use your own brain to tune persona, dataset,... 😏)

## 🦥 Enjoy goals... as data

It's as simple as setting a number of goals and the target persona:

```python
goals = lida.goals(summary,
                   n=5,# Let's get 5 goals
                   persona="Neo4J community manager who
needs to manage its worldwide community to get the best
community engagement.")
```

Then within less than a second **you get the goals (eventually as a `pandas` dataframe so you can also share goals as a spreadsheet)**:

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

**🥳 Finally you just have to ask for some dataviz** for any goal:


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


## 📑 Resources

- [🤖😘🥷 Neo4J community manager automation by `LIDA`](https://www.kaggle.com/code/adriensales/neo4j-community-manager-automation-by-lida)
- https://aclanthology.org/2023.acl-demo.11/
- https://github.com/microsoft/lida
- https://microsoft.github.io/lida/
- [LIDA | Automatically Generate Visualization with LLMs | The Future of Data Visualization](https://medium.com/@c17hawke/lida-automatically-generate-visualization-and-with-llms-the-future-of-data-visualization-6bc556876b46)
- [An Overview of LIDA: Generate Visualizations and Infographics of Tabular Data using LLMs!](https://techcommunity.microsoft.com/t5/educator-developer-blog/an-overview-of-lida-generate-visualizations-and-infographics-of/ba-p/4047474)
Git and GitHub - First experience and Crib
Tags: webdev, beginners, git, github
Published: 2024-04-02 20:07:18


When I first embarked on my journey into web development, I had no inkling that I would soon find myself grappling with Git and GitHub. The thought of using a terminal seemed daunting, and I never imagined it would play a significant role in my coding endeavors. However, as I delved deeper into the world of web development, I quickly realized the importance of version control and collaboration, and thus my adventure with Git and GitHub began.

My initial encounter with Git and GitHub was anything but smooth. I struggled to comprehend the commands and concepts, feeling overwhelmed by the seemingly complex interface. As someone who had never used a terminal extensively before, navigating through the command line was like traversing uncharted territory.

Despite the initial setbacks, I refused to be deterred. With determination and perseverance, I gradually familiarized myself with the basics of Git and GitHub. Through online tutorials and documentation, I learned about repositories, commits, branches, and the intricacies of version control.

After much trial and error, I finally reached a breakthrough: I successfully pushed my first HTML project to GitHub. It was a moment of triumph, a testament to my perseverance and willingness to venture beyond my comfort zone.

But the journey didn't end there. I decided to compile a crib — a concise guide outlining the steps I took to push my project to GitHub. While I knew there were countless other ways to unilize Git and GitHub, I focused on documenting the approach that worked for me, hoping it would serve as a helpful resource for fellow beginners.

![Git/GitHub - Connection](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5kue43a35b97d1tb5vtn.png) 
![Git/GitHub - Clone, Push, Pull] (https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jmsjft2mthalj20jc96n.png)
The Case of the Disappearing OTPs: Exposing SMS Pumping Attacks
Tags: twilio, sms, webdev, otp
Published: 2024-04-02 19:45:10

Imagine this: you've integrated a robust 2-step verification (2FA) system using Twilio for OTP delivery, feeling confident about your user security. But then, a wave of confusion hits your team. OTP codes are flying out, yet your backend logs show no record of user requests. Panic sets in – is it a security breach? An internal threat?

This scenario, though unsettling, might be a case of a sneaky cybercrime tactic known as SMS pumping.

## What is SMS Pumping?
SMS pumping, also called SMS traffic pumping or International Revenue Share Fraud (IRSF), exploits weaknesses in systems that rely on SMS verification. Attackers use bots to bombard your platform with fake requests for OTP codes. These codes are then sent to phone numbers controlled by the attackers, who often profit through revenue-sharing agreements with certain mobile carriers.

## Our Story: A Baffling Mystery
In our project, everything seemed secure. We had 2FA with Twilio, and Cloudflare guarded our systems against bots. Even Postman, our API testing tool, was locked down. Yet, the inexplicable OTP storm raged on. Internal investigations yielded no culprits.

## Unmasking the Culprit: The Signs of SMS Pumping

The key to identifying SMS pumping lies in the red flags:

- Spike in OTP requests: A sudden, dramatic increase in OTP requests, often originating from sequential phone numbers controlled by the same carrier.

- Missing backend logs: No corresponding user activity on your platform for the OTP requests.

- Incomplete verification cycles: If the OTPs are intended for user verification, you won't see completed verification processes.

## Fighting Back Against SMS Pumping

Here's how to fortify your defenses:

- Validate phone numbers: Implement checks to ensure phone numbers are valid and belong to real users.
- Rate limiting: Set limits on the number of OTP requests allowed per user or IP address.
- Advanced fraud detection: Consider solutions that analyze user behavior to identify suspicious activity.
- Partner with Twilio: Twilio offers fraud prevention tools to help combat SMS pumping.

## Lessons Learned

Our experience highlights the importance of staying vigilant against emerging cyber threats. By understanding the signs of SMS pumping and implementing robust security measures, you can protect your platform and user data.

> Remember, security is an ongoing process. Stay informed and adapt your defenses to stay ahead of the game!
📉 Bitcoin Falls: Why Is This Analyst Expecting A Strong Bounce To $80,000? 🚀📉
Published: 2024-04-02 19:45:02



📉 Bitcoin remains under pressure as of April 2, but one optimistic analyst points to a potential breakout above a formation that could propel the price to $80,000. 🚀

📈 Despite the current dip, the analyst notes a bullish pennant formation on the daily chart. If buyers step in, rejecting lower lows, Bitcoin may surge above recent all-time highs and reach new territories. 📈

📉 Bitcoin is down 5% in the past 24 hours and 7% in the last week, trading around $66,000. It's 11% below all-time highs and under pressure, trading below the middle BB, indicating sellers are in control. Further losses might lead to a test of crucial support levels. 📉💼

⏳ Traders await developments, with sellers currently in control despite optimism. A bear breakout below the pennant could drive prices towards $60,000, while rejecting lower lows could pave the way for higher highs towards $73,800. ⏳🐻📈

💡 Potential catalysts for further gains include the highly anticipated halving event, which could see prices rise with emission rates slashed by 50%. Institutional demand, however, appears to be slowing down. 💰📉

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8txsz91zf1gj4ylvz598.png)
📉 CARDANO PRICE ANALYSIS & PREDICTION (APRIL 2) – ADA SIGNALS SELL-OFF AMID LATEST BEARISH SENTIMENT, LOSES 12% WEEKLY 📉
Published: 2024-04-02 19:44:47



📉 Cardano ADA resumed bearish actions this week following a fresh meltdown across the crypto space. The price appears weak as it heads towards a support line, where a major break or bounce is likely to play. 🐻💥

📉 In mid-March, Cardano experienced a serious drop after testing the $0.8 level. It later found solid ground above $0.58 and bounced back for a week. Unfortunately, it saw a rejection and closed the month indecisive after days of consolidation. 📉🔄

📉 Yesterday, ADA’s selling volume increased, and the price broke down from the consolidation phase, bringing the bears back in control. Despite this, the mid-term perspective still favors the bulls. 📉🐂

📉 Right now, ADA faces selling pressure near a crucial ascending trendline since late 2023. A bounce back could occur if this trendline provides support again, bringing the bulls back. However, a dip below this trendline might trigger a sell-off to the current yearly low before finding strong support. 📉📈

📈 ADA’s Key Levels to Watch: Bears are currently testing the $0.59 support level. If breached, the ascending trendline and subsequent support levels at $0.54, $0.50, and potentially $0.46 could be targeted. On the upside, resistance lies at $0.64, with further retests at $0.68 and $0.735 if a rebound occurs. 📊🔍

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h1o37j8lfce6ts5xzcqn.png)
📈 Ethereum Price Analysis and Market Outlook 📊🚀
Published: 2024-04-02 19:44:23


📉 Despite a rocky start to the second quarter of 2024, Ethereum struggled to break the $4,000 resistance level, leading to a bearish outlook. However, there's still potential for an uptrend. 📊

📈 Daily Chart Analysis: Ethereum faced rejection at $4,000 in March and retreated below $3,500. With the RSI dropping below 50%, $3,000 appears as a likely support level. Yet, trading above the 200-day moving average suggests the uptrend may persist. 📉📈

⏰ Four-Hour Chart Analysis: Ethereum's recent consolidation is evident in the four-hour chart, with a breakdown from an ascending wedge pattern. As it nears the $3,000 support, oversold conditions indicated by RSI below 30% may precede a potential rebound. ⏳💼

💡 Ethereum Ecosystem Update: Excessive optimism among investors contributed to Ethereum's fall below $4,000. High funding rates suggest an overheated futures market, potentially leading to extended liquidations and further price drops. 💰📉

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ghg8d41epch5sh2s2kdk.png)
📉 Ethereum And Altcoins Crash: Why Is This Analyst Super Bullish? 🚀
Published: 2024-04-02 19:44:10



📉 Altcoins like Ethereum, Cardano, Solana, and others may be lower in spot rates, but one analyst sees a parallel in the current formation to the 2020 market cycle, gearing up for a potential surge. 🚀

📈 The analyst notes that after a period of accumulation and a retest of previous highs, altcoins tend to be volatile. Bitcoin's pullback from all-time highs and potential retest of March levels could catalyze altcoin swings to fresh levels and valuations.

❓ Will Altcoins Repeat The 2020 Cycle? It's uncertain, but the current price action shows a similar formation. When altcoins consolidated after surging, prices tended to recover strongly, especially once Bitcoin broke through critical levels and entered “price discovery” or fresh all-time highs.

💥 The altcoin season might come earlier this time, especially once Bitcoin recovers. Possible triggers include the upcoming Bitcoin halving event and upcoming network upgrades in Ethereum, Solana, and Cardano. Analysts are also considering the possible approval of spot Ethereum exchange-traded funds (ETFs) by the SEC. 📈🔥

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/65xdbdkfsydf886fkn8l.png)
📈 POLYGON MATIC PRICE ANALYSIS & PREDICTION (APRIL 2) – MATIC SITS AT SUPPORT, NEGOTIATING FOR THE NEXT DRAWDOWN 📉
Published: 2024-04-02 19:43:43



📉 Matic is in a downward range again after facing resistance in the past week, losing 5% without signs of stopping. However, it's currently trading at a key support level, negotiating for the next leg down.

🔻A week ago, Matic initiated another sell-off after failing to recover well from last month’s correction, extending bearishness. The price is now weaker on the daily timeframe.

📉The bearishness was triggered by a sharp rejection, bringing the price back to March’s support level of $0.91. Currently trading above this level, a breakdown is expected soon unless the support holds firmly, leading to a potential bounce before releasing selling pressure towards the $0.7 level.

📉Matic has lost 12% in the past week with a market cap of $9.2 billion. It's currently negotiating the multi-week $0.91 support, with potential drops to $0.835 and $0.75 before reaching the main target mentioned above.

💰The lost $1 level serves as resistance, with potential recovery to $1.09 and $1.17. The $1.29 resistance would be the next target level for more buys.
🔝 Key Resistance Levels: $1, $1.09, $1.17
Key Support Levels: $0.91, $0.835, $0.75
Spot Price: $0.916
Trend: Bearish
Volatility: High 📊

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pnfebxsyjp467l30ofhx.png)
📈 XRP Price Prediction: Why $1 Holds Imminent By End Of April? 🚀
Published: 2024-04-02 19:43:17



📉 XRP Price Movement: XRP dipped below $0.6, down by 2.36% to $0.5867, amidst bearish sentiment. Despite this, investor confidence remains cautious.

💰 Market Valuation: XRP's market cap sits at $32 billion, making it the 7th largest cryptocurrency. Trading volume surged by over 37% to $2.18 billion in the last 24 hours.

📉 Recent Trends: XRP recently surged but saw a downturn, sparking speculation. It's part of a broader market decline, with Bitcoin, Ethereum, and BNB all dropping.

⚖️ Regulatory Factors: An upcoming pre-trial conference between Ripple and the SEC could shape future regulation. Settlement discussions are ongoing.

💹 Technical Analysis: XRP is resilient above $0.58. It may surpass $0.65 if bullish momentum returns, potentially hitting $1.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bfgxvp6r0dc7k7tw83fo.png)
🔥 'Dogecoin Killer' Shiba Inu's Burn Rate Surges 2,300%: Trader Predicts 'Moments Where It Flips Doge' 🔥🚀
Published: 2024-04-02 19:43:04



📈 Veteran pseudonymous crypto trader Altcoin Sherpa views the Shiba Inu chart as "high-frequency trading" and advises traders to exercise patience.

🔍 What Happened: In a March 31 tweet thread on meme coins, Sherpa lists the pros and cons of trading the “Dogecoin Killer.” Although he does not expect “a 20xer” on this meme coin, he sees some pros:

✅ Pros:
Like Dogecoin, it boasts huge liquidity.The token has fundamental developments like Shibarium and burns.It may “have some moments” flipping Dogecoin.

❌ Cons:
Not expected to achieve a 20x return at this point.Likely to take a backseat to Doge overall in terms of Ethereum memes.

🚀 Sherpa concludes that the technical chart still looks like "high trading frequency" but cautions traders to be patient.

💡 Why It Matters: Based on Shib Burn data, Shiba Inu’s burn rate in the past 24 hours surged by 2,307%, with one single transaction burning 105.5 million SHIB tokens around eight hours ago. Despite trading 10% lower over the past 24 hours, its monthly (19.3%) and yearly gains (136%) remain strong, allowing the token to shed a zero from its price.

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