teleren/devto huggingface dataset:
AI Agent to generate shell commands
Tags: chatgpt, llm, programming, python
Published: 2024-04-16 21:27:44

Recently, I've noticed that LLM and RAG (Retrieval Augmented Generation) applications are particularly popular, especially here in the North American Bay Area. I decided to spend some downtime exploring and created a small open-source project called Termax [(Github link)](https://github.com/huangyz0918/termax).

Initially, its main function was to allow programmers to use natural language to generate desired commands in the command line. However, considering everyone's different environments, directly generating commands might not be effective (like generating PowerShell commands in Linux). So, I thought about incorporating some user environment data to improve the model’s outputs.

Another way to use RAG, which I think many LLM agents are adopting, is to cache 'successful' output samples for future model reference — making the model more attuned to user habits. Termax caches outputs that run successfully without errors for future requests, which has proven to significantly improve performance.

Here are some small demos:

![Generate commands](https://raw.githubusercontent.com/huangyz0918/termax/main/docs/ask_cmd.gif)

BTW, as someone quite lazy... I feel like the large model can actually predict what my next command might be, such as the series of operations I frequently need: `git add .`, `git commit -m ...`, and `git push`. I wondered if the model could predict my intentions and guess what I’m about to do (similar to context-based command suggestions):

I implemented a small feature in Termax, but sometimes it doesn’t guess very accurately, Lol. 

![Guess commands](https://raw.githubusercontent.com/huangyz0918/termax/main/docs/guess.gif)

However, some might worry about sensitive information in shell command history, so not everyone may want to use this feature. We are also considering how to make it more secure.

Nonetheless, we welcome everyone to help test this little gadget. We’ve also made plugins for bash, zsh, and fish, so you can easily use shortcuts to generate commands. Your support and suggestions are welcome!

[Github Link](https://github.com/huangyz0918/termax/tree/main)
JT Plumbing Sewer & Drains Fort Collins
Published: 2024-04-16 21:26:38


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


JT Plumbing Sewer & Drains stands as a pinnacle of excellence in the plumbing and sewer industry, proudly serving Northern Colorado for over 7 years. Our commitment to exceptional service extends beyond our customers to the well-being of our dedicated team. Specializing in both residential and commercial plumbing solutions, we offer a comprehensive range of services including HVAC system maintenance, traditional and tankless water heater installations, drain clearing, rooter services, water treatments, and much more. Discover the difference with JT Plumbing Sewer & Drains - where quality and customer satisfaction reign supreme.

JT Plumbing Sewer & Drains Fort Collins
Address: [1833 E Harmony Rd, Fort Collins, CO 80528](https://www.google.com/maps?cid=18076588218899788119)
Phone: 970-818-1613
Website: http://www.jtplumbingservicesllc.com/
Contact email: admin@jtplumbingservicesllc.com

Visit us:
[JT Plumbing Sewer & Drains Fort Collins Facebook](https://www.facebook.com/Plumbing.Services/)
[JT Plumbing Sewer & Drains Fort Collins Instagram](https://www.instagram.com/jtplumbingandhvac/)

Our services:
Plumbing services
Drain cleaning
Emergency plumbers
Sewer repair specialists
Reliable plumbing solutions
React-Native Glassfy SDK error "Items you are try to purchase could not be found"
Tags: reactnative
Published: 2024-04-16 21:23:11

Im a react-native developer using expo, I added Glassfy to my project for in app purchases I followed all the steps for the documentation, the skues for the my glassfy account are loading in my react native app. I created a purchase function

```
 // Load all offerings a user can purchase
  async function loadOfferings() {
    let offerings = await Glassfy.offerings();
    console.log(JSON.stringify(offerings.all, null, 2));
    setOfferings(offerings);
    setLoading(false);
  }

  // Purchase one SKU and handle a successful transaction
  async function purchase(sku: GlassfySku) {
    console.log(sku);

    try {
      const transaction = await Glassfy.purchaseSku(sku);

      if (transaction.receiptValidated) {
        console.log("successfull purchase");
      }
    } catch (error) {
      console.log(error);
    }
  }
}
```

loading offering works just fine and the offerings include sku data that is only avalible fom my google playstore which I asume means there is a connection between my glassfy and my playstore.

when I run the the purchase function this is what happens on my mobile phones screen. 

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

the error code printed in the console looks like this.

```
 LOG  [Error: GlassfyError(code=StoreError, description=Store error, debug=Requested product is not available for purchase. (ITEM_UNAVAILABLE))]
```

the sku being supplied to the funtion is loaded from the glassfy SDK so that means it does exist. The console of the sku being fed to the purchase function looks like this.

```
 LOG  {"extravars": {}, "product": {"basePlanId": "", "currencyCode": "USD", "description": "300 livestock is at it.", "identifier": "com.suluuboi.farmtrack.large", "period": "", "price": 5, "title": "Large (com.suluuboi.farmtrack (unreviewed))"}, "productId": "com.suluuboi.farmtrack.large", "skuId": "large", "store": 2}
```
I really need help debugging the the error. the app I am developing is still under internal tesing in the playstore development console. Im trying to use sandbox for my testing. Im suspecting this error has something to do with the sandbox testing as my purchase window does not say anything about sandbox. Any assistance would be much appreciated.
Paypal API 跳转收款系统 出售
Published: 2024-04-16 20:40:50

Paypal API 跳转收款系统 出售

说明: 实现用paypal邮箱账号和 paypal API接口[client id+ client密钥] 来实现轮询收款的功能

 A站:   原站: 任意外贸系统: zencart ecshop,opencart,magento,woocommerce,wordpress 自建站等商城系统都可以

B站: 正品站

通道+订单+顾客综合管理系统: 客户开户+通道订单管理的功能 + paypal账号设置管理

 实现的功能:

1: 通道 客户开户/删除/暂停

2: 通道订单管理

3: pp账号单笔的最大金额设置

4:历史订单导出Excel 删除 备份功能

5:Paypal checkout 付款订单 授权 捕获[自动or手动] 都可以设置

6: 客户订单前台 查看 统计 + 成功率统计 + 域名管理+ 订单导出的功能

7: 每日客户的金额核算等功能

 8: 轮询可以设置成: 每个号轮询一次 随机轮询 按照编号轮询

9: 可以设置每个收款账号的最大收款金额 收款笔数等

 10: 有个接口管理系统 可以实现无数的中间站 -- 对应不同的账号对应一个域名 或者 一个域名对应几个账号都可以

 
少量截图如下:

 





如果有需要; 请联系微信号: herveleger9 手机:15080167600 Skype:jackrno1
外贸网站商品采集
Published: 2024-04-16 20:40:03

外贸网站商品采集 综合全面外贸商品采集 可以采集所有的外贸平台,amazon,aliexpress,taobao,temu,SaaS.shopify,shopyy等,翻译,改价,批量改描述等操作导入到你的网站,专业外贸网站产品服务, 所有的sku/属性都可以采集, 可以实现批量改价等功能, 采集完毕直接导入到zencart,Woocommerce,shopify,外贸平台等系统; 本采集系统于2012年开发,经过10来年的不断维护和升级. 支持采集amazon,aliexpress,taobao,shopify,店匠,shopyy等 支持二次开发自定义采集规则; 可以导入到zencart,Woocommerce,ecshop, shopify 等现有的网店系统 如果对采集规则不懂,可以支付费用辅助编写采集规则.咨询微信:15080167600
BEST AND MOST RELIABLE CRYPTO RECOVERY EXPERT @ LEE ULTIMATE HACKER
Tags: recoveryofbitcoin, blockchain
Published: 2024-04-16 20:23:15

Instagram is now a breeding ground for scammers on the search for unsuspecting users whom they will sell their game and flaunt their huge profits from cryptocurrency. I thought I'd struck a gold mine. I ended up messaging this broker and she went on this long spiel about Bitcoin mining and how it's profitable, I gave it a long thought plus the strategy they used produced eye-watering returns of 50 percent per month. I was initially skeptical so a few months later I decided to invest and sent them $150 as a test, a month later I was sent back $50 along with another $30 of my profit. Shocked in disbelief I sent hundreds of dollars, then thousands, it didn't take long until I started telling friends and family who even sent more money.
One of my best mates sold his car for $11,000 and put all that money in, and it disappeared. All up, my friends and I lost over $100,000 to this scam, which caused me immense stress and embarrassment plus some of my friends decided not to talk to me anymore. It was like my integrity just vanished suddenly, because I'd convinced my friends, I'd shown them my profits and I was actively promoting it, almost like a salesman for her. I tried to go to the police, who said we'd only lost $100,000. They know people who have lost millions, and this shattered every hope I had of recovering my money or tracing these criminals. I found Lee Ultimate Hacker with the help of our new intern who referred me to give hackers a try, I'm really glad I listened. With the support of Lee Ultimate Hacker and my Assets recovered I was able to return to investing but only in Stocks now, I stayed away from cryptocurrencies after the scam experience. We often can't avoid the negative patterns financially but if it's a wrong investment at the hands of scammers Lee Ultimate Hacker has you covered. Don't hesitate to reach out to Lee Ultimate Hacker via email LEEULTIMATEHACKER@ AOL. COM or Support@leeultimatehacker.com. telegram:LEEULTIMATE or wh@tsapp +1 (715) 314–9248
https://leeultimatehacker.com
 if you fall victim to this online Bitcoin scam.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jr6eadkdkg3mvcf93ldr.jpg)
Plugin for Cloudflare AI API
Tags: plugin, cloudflare, ai, tutorial
Published: 2024-04-16 20:18:32

I created a module for [`@luisfun/cloudflare-ai-plugin`](https://github.com/LuisFun/cloudflare-ai-plugin), and this is its introduction.

## What I Built

This plugin enables you to write REST API or AI Gateway in the same way as binding AI (env.AI.run) when using Cloudflare's Workers AI.
Also, it supports Typescript.

## How to Use

**Install**

```sh
npm i @luisfun/cloudflare-ai-plugin
npm i -D @cloudflare/ai # When using TypeScript
```

**Coding**

```ts
import { Ai } from '@luisfun/cloudflare-ai-plugin'

// const ai = env.AI
const ai = new Ai(env.AI_API_URL, env.AI_API_TOKEN)

const response = await ai.run(model, inputs)
```

[How to get API URL and TOKEN](https://developers.cloudflare.com/ai-gateway/providers/workersai/)

There are also some extensions available.
Here, I will include the cache control of the Gateway.
If you are interested in other extensions, please check the repository.

```ts
const options = {
  'cf-skip-cache': true,
  'cf-cache-ttl': 60,
}
const response = await ai.run(model, inputs, options)
```

## Repository

https://github.com/LuisFun/cloudflare-ai-plugin
Should LINQ Be Forbidden!?
Tags: dotnet, csharp
Published: 2024-04-16 20:11:03

---
title: Should LINQ Be Forbidden!?
published: true
description: This Reddit poster was forbidden from using LINQ in their projects. No LINQ-2-SQL. No LINQ extension methods. No LINQ queries. But why? After more context, there's much more to this story... and none of it's good.
tags: dotnet, csharp
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/apb14m8j81ybu0y1bgta.png
---

{%youtube Bwp7PxsfMCI %}
DevinAI Situation ?
Tags: discuss, devin
Published: 2024-04-16 19:58:24

The DevinAI situation was brought to my attention by a few of my colleagues, Twitter and Reddit seem to be on the same page that the launch was an _over-exaggerate and under-deliver_ kind of situation. `Also if anybody had the opportunity to try it I would very much appreciate if you could share your feedback` (and the opensource alternatives [OpenDevin](https://github.com/OpenDevin/OpenDevin) and [Devika AI](https://github.com/stitionai/devika) too if possible 🙏 )
This is currently a developing situation and if the community was mislead we should pool in our experiences and in either case it's better that we direct our free time and effort towards the opensource project and product (by the community for the community 🤝🖤🏋️)
[16/04] Daily Top Startups
Tags: startup, mvp, entrepreneurship, product
Published: 2024-04-16 19:51:31

Daily Top Startups:
UnInbox: Open source modern email for teams and professionals - Upvotes: 88
Superscene 7: Large update of the most trendy 3D illustration constructor - Upvotes: 40
Campana: Keep tabs on your competitors - Upvotes: 31
Sniffnet: Comfortably monitor your Internet traffic - Upvotes: 17
faith.tools: The best place to find Christian apps - Upvotes: 15

#email #productivity #opensource #designtools #emoji #designresources #analytics #marketing #saas #github #tech #makertools #spirituality 
https://ListMyStartup.app/published-startups-daily/19826
Golf Car Depot Miami
Tags: golf, cart, florida, miami
Published: 2024-04-16 19:24:53

**Golf Car Depot Miami
Address: 7240 Bird Rd Suite A, Miami, FL 33155
Phone: (786) 244-9123
Email: kmerida@gcdmiami.com
Website : https://golfcardepotmiami.com
GMB Profile: https://www.google.com/maps?cid=5049153933689316071**

Golf Car Depot Miami, situated at 7240 Bird Rd Suite A, Miami, FL 33155, United States, stands as a premier destination for enthusiasts seeking top-notch golf carts and unparalleled service. Our commitment to excellence is reflected in our extensive range of high-quality golf carts, designed to cater to diverse needs and preferences. 

Our inventory boasts a variety of golf carts, each combining performance, innovation, and style. From electric carts for eco-conscious customers to powerful gas-powered models for those who prioritize performance, we have a wide selection to meet your specific requirements. What sets us apart is not just our products but the personalized service we provide. Our experienced team is ready to assist you in finding the ideal golf cart that suits your lifestyle and preferences. 

We understand that each customer is unique, and we take pride in delivering tailored solutions to ensure your satisfaction. In addition to our extensive inventory and personalized service, Golf Car Depot Miami is committed to the highest standards of reliability and durability. When you choose a golf cart from us, you're investing in a vehicle that is not only stylish and efficient but also built to last.

Convenience is paramount, and that's why our location at 7240 Bird Rd Suite A in Miami, FL, is strategically chosen for easy access. Feel free to visit our showroom to explore the latest models, ask questions, and experience firsthand the quality that defines Golf Car Depot Miami. Customer satisfaction is our priority, and our dedicated customer support doesn't end with the purchase. We offer comprehensive maintenance and repair services to keep your golf cart in peak condition, ensuring long-lasting performance and enjoyment. Contact us at +17862449123 to speak with our knowledgeable staff, who are ready to assist you with any inquiries or to schedule a test drive. 

**Store Hours
**MONDAY-FRIDAY: 9AM - 6PM
SATURDAY: 9AM - 5PM
SUNDAY: CLOSED
Coding Playlist: Albums for Every Mood
Tags: music, programing
Published: 2024-04-16 19:08:02

---
title: Coding Playlist: Albums for Every Mood
published: true
description: Hey fellow coders! 🎧👩‍💻 here's a friendly peek into my go-to albums for every coding mood. Let's groove! 🚀
tags: Music,Programing
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zod4ij78l9u6ch2skzjf.jpg
image_description: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zod4ij78l9u6ch2skzjf.jpg



---

Hey fellow coders! 🎧👩‍💻 here's a friendly peek into my go-to albums for every coding mood. Let's groove! 🚀

**1. The Strokes - Comedown Machine**
![The Strokes - Comedown Machine](https://upload.wikimedia.org/wikipedia/en/9/91/The_Strokes_-_Comedown_Machine.jpg)

Picture this: it's a breezy afternoon, and the code is flowing smoothly. That's when I reach for The Strokes' "Comedown Machine". Its chill vibes and dreamy melodies set the perfect ambiance for a relaxed coding session. So kick back, take a sip of your favorite drink, and let the coding journey begin!

**2. Bullet for My Valentine - The Poison**
![Bullet for My Valentine - The Poison](https://upload.wikimedia.org/wikipedia/en/f/f8/Thepoison.jpg)

But hey, we all have those days when deadlines are looming, and the pressure's on. Enter Bullet for My Valentine's "The Poison". Its high-energy riffs and adrenaline-pumping beats fuel my focus and drive, helping me power through even the toughest coding challenges. So crank up the volume and let's crush those deadlines together!

**3. Arctic Monkeys - Whatever People Say I Am, That's What I'm Not**
![Arctic Monkeys - Whatever People Say I Am, That's What I'm Not](https://upload.wikimedia.org/wikipedia/en/8/88/Whatever_People_Say_I_Am%2C_That%27s_What_I%27m_Not_%282006_Arctic_Monkeys_album%29.jpg)

Now, imagine a day when everything's going your way – maybe you just got that well-deserved raise or nailed a particularly tricky bug fix. That's when I cue up Arctic Monkeys' "Whatever People Say I Am, That's What I'm Not". Its infectious energy and catchy tunes perfectly capture the euphoria of success. Go ahead, celebrate your wins – you've earned it!

**4. Muse - Absolution**
![Muse - Absolution](https://upload.wikimedia.org/wikipedia/id/b/b4/Muse_-_Absolution_Cover_UK.jpg)

But let's be real – we all have those moments when motivation is at an all-time low, and the couch is calling our name. For those days, there's Muse's "Absolution". Its moody melodies and introspective lyrics provide the soundtrack to my moments of laziness and procrastination. Embrace the chill, recharge your batteries, and remember that even the best of us need a break sometimes.

And there you have it – my friendly coding playlist for every mood. Whether you're feeling chill, under pressure, on top of the world, or just plain lazy, there's an album for every moment. So plug in those headphones, fire up your favorite editor, and let the coding adventures begin! 🎵💻
Day 16/366
Tags: 1percentplusplus, 100daysofcode
Published: 2024-04-16 18:02:38

🚀 **Today's Learning:**

🌟 DSA

- Segregate 0s and 1s in an array
- Display the Longest Name

🌟 Dev

- CI/CD

🔍 **Some Key Highlights:**

DSA

Segregate 0s and 1s in an array →

For segregating 0s and 1s in an array, you can iterate through the array, maintaining two pointers, one at the beginning and one at the end. While the pointers haven't crossed each other, if the element at the beginning pointer is 0 and the element at the end pointer is 1, swap them. Keep advancing the pointers until they meet, ensuring all 0s are on the left and all 1s are on the right of the array.

Display the Longest Name →

For displaying the longest name, you can iterate through the list of names, keeping track of the longest name encountered so far. Start with an empty string as the longest name, then iterate through each name in the list, comparing its length with the length of the current longest name. If a name is longer, update the longest name variable. After iterating through all names, you'll have the longest name, which you can then display.

DEV

Continuous Integration and Continuous Deployment (CI/CD) is a software development practice where code changes are automatically built, tested, and deployed frequently. In CI, developers integrate their code changes into a shared repository multiple times a day. Each integration triggers automated builds and tests to detect any issues early in the development process. Once the code passes all tests, it's automatically deployed to a testing environment in CD. Continuous Deployment takes it a step further by automatically deploying the code to production after passing all tests in the testing environment. This ensures that software is consistently developed, tested, and deployed, allowing for faster feedback loops and more reliable releases.

 #100daysofcode #1percentplusplus #coding #dsa
/token route for oidc provider
Published: 2024-04-16 17:57:16

curl -X POST \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials&client_id=your_client_id&client_secret=your_client_secret&scope=registration" \
  https://your_auth_server.com/oauth/token
FinanceOS
Published: 2024-04-16 17:49:11

FinanceOS: Take Control of Your Startup's Finances

FinanceOS is the ultimate solution for startups looking to manage their finances efficiently and strategically. This all-in-one platform provides all the tools you need to:

- Track income and expenses: Easily track your income, expenses, salaries, subscriptions, revenue, and fundraising activities.
- Plan and execute fundraising: Develop a strategic fundraising plan, manage your investor cap table, and track your progress towards your goals.
- Estimate runway and value: Get a clear picture of your financial health with integrated burn rate and valuation tools.
- Leverage AI-powered projections: Use AI-based prompts to generate financial projections 20x faster than traditional methods like Excel.
- Access built-in valuation tools: Utilize the Discounted Cashflow Model to accurately estimate your startup's value.
- Visualize your financial health: Get a quick overview of your company's financial health with the comprehensive dashboard.

Key Benefits:

- Save time and effort: Automate financial tasks and get rid of spreadsheets.
- Make informed decisions: Gain valuable insights into your financial performance.
- Improve financial discipline: Stay on top of your finances and ensure long-term success.
- Attract investors: Present a professional and well-organized financial plan to potential investors.

FinanceOS is perfect for:

- Founders and entrepreneurs: Manage your startup's finances with confidence.
- CFOs and financial analysts: Streamline your financial operations.
- Investors: Get a better understanding of potential investments.{% embed https://ajinkyabhat.com/financeos %}