Skip to content

Instantly share code, notes, and snippets.

@virattt
virattt / langgraph-financial-agent.ipynb
Created January 8, 2024 22:01
LangGraph-financial-agent.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CodeByKwakes
CodeByKwakes / README.md
Last active July 12, 2024 20:40
Learn Angular #angular
@usametov
usametov / topics-search.txt
Created February 16, 2021 01:50
how to search github.com for multiple topics
Github.com ui .currently does not natively supoport search for multiple topic tags as of now. However their api allows you to query multiple tags. Below is a simple example to query github.com with ecs and go topic tags.
curl -H "Accept: application/vnd.github.mercy-preview+json" \
https://api.github.com/search/repositories?q=topic:ecs+topic:go
Response from the github can be rather verbose so lets filter only relavant info such repo url and description.
curl -H "Accept: application/vnd.github.mercy-preview+json" \
https://api.github.com/search/repositories\?q\=topic:ecs+topic:go | jq '.items[] | {url:.url, description:.description}'
@umonaca
umonaca / cf-mastodon-proxy.js
Last active July 12, 2023 17:51
Unfinished Mastodon Cloudflare Worker Proxy
// Website you intended to retrieve for users.
//const upstream = 'www.google.com'
const upstream = '5a1eddaec0e1.ngrok.io'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
//const upstream_mobile = 'www.google.com'
const upstream_mobile = '5a1eddaec0e1.ngrok.io'
@kvnxiao
kvnxiao / awesome-selfhosted-sorted-by-stars.md
Last active July 27, 2024 18:03
awesome-selfhosted-sorted-by-stars.md

Awesome-Selfhosted

Awesome

Selfhosting is the process of locally hosting and managing applications instead of renting from SaaS providers.

This is a list of Free Software network services and web applications which can be hosted locally. Non-Free software is listed on the Non-Free page.

See Contributing.

@erogol
erogol / tts_example.ipynb
Last active July 5, 2024 04:27
TTS_example.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@krishna-acondy
krishna-acondy / resource.service.ts
Last active July 3, 2024 11:50
Generic Angular HTTP Resource Service
export class ResourceService<T extends Resource> {
constructor(
private httpClient: HttpClient,
private url: string,
private endpoint: string,
private serializer: Serializer) {}
public create(item: T): Observable<T> {
return this.httpClient
.post<T>(`${this.url}/${this.endpoint}`, this.serializer.toJson(item))
@qfgaohao
qfgaohao / device_properties.cu
Last active July 5, 2022 15:58
List GPU Specs. The code is modified from the Udacity Parallel Computing Course.
#include <stdio.h>
void deviceQuery ()
{
cudaDeviceProp prop;
int nDevices=0, i;
cudaError_t ierr;
ierr = cudaGetDeviceCount(&nDevices);
@bmaupin
bmaupin / epub.css
Last active January 27, 2022 15:31
You Don't Know JS Ebooks
body {
text-align: justify;
}
code, pre {
font-family: "DejaVuSansMono", monospace;
}
h1, h2, h3, h4, h5, h6 {
text-align: left;
@etes
etes / pi_mount_usb.md
Last active July 7, 2024 11:29
How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

Follow the simple steps in the order mentioned below to have your USB drive mounted on your Raspberry Pi every time you boot it.

These steps are required especially if your are setting up a Samba share, or a 24x7 torrent downloader, or alike where your Raspberry Pi must have your external storage already mounted and ready for access by the services / daemons.

Step 0. Plug in your USB HDD / Drive to Raspberry Pi If you are using a NTFS formatted drive, install the following