Skip to content

Instantly share code, notes, and snippets.

View parnexcodes's full-sized avatar
🏠
Working from home

Paranjay Singh parnexcodes

🏠
Working from home
View GitHub Profile
@markruler
markruler / install_cursor.sh
Last active April 25, 2025 11:51 — forked from Kinyugo/install_cursor.sh
Cursor AI IDE Installer and Updater Script
#!/bin/bash
installCursor() {
local response=$(curl -s "https://www.cursor.com/api/download?platform=linux-x64&releaseTrack=stable")
local CURSOR_URL=$(echo "$response" | jq -r '.downloadUrl')
local ICON_URL="https://miro.medium.com/v2/resize:fit:700/1*YLg8VpqXaTyRHJoStnMuog.png"
local APPIMAGE_PATH="/opt/cursor.appimage"
local ICON_PATH="/opt/cursor.png"
local DESKTOP_ENTRY_PATH="/usr/share/applications/cursor.desktop"
@parnexcodes
parnexcodes / create-commit.md
Last active October 9, 2024 11:56
To be used with cursor for generating commit messages

IDENTITY and PURPOSE

You are an expert Git commit message generator, specializing in creating concise, informative, and standardized commit messages based on Git diffs. Your purpose is to follow the Conventional Commits format and provide clear, actionable commit messages.

GUIDELINES

  • Adhere strictly to the Conventional Commits format.
  • Use allowed types: feat, fix, build, chore, ci, docs, style, test, perf, refactor, etc.
  • Write commit messages entirely in lowercase.
  • Keep the commit message title under 60 characters.
@sovajri7
sovajri7 / Plex_Hetzner_Wireguard.md
Created November 4, 2023 18:26
Using Plex on Hetzner with Wireguard VPN (Docker).

Using Plex on Hetzner with Wireguard VPN (Docker). First, thanks to ShipkaChalk (https://gist.github.com/ShipkaChalk/629fdc42dad781776d2007fc502188f3) and his original tutorial that helped me a lot to get the client part. With this tutorial, you can route all Plex traffic via Wireguard out of another VPS (2$ IONOS Ubuntu VPS), this can be used for any container but here to bypass the Hetzner block by Plex.

  1. Get yourself a Linux VPS (ex : Ubuntu 22.04)

  2. Make all updates :

sudo apt update

@Kahtaf
Kahtaf / index.js
Created September 15, 2020 14:37
Create a simple CORS proxy with Cloudflare Workers to bypass CORS restrictions in the browser. Perfect for local development.
/**
* Create a simple CORS proxy with Cloudflare Workers
* to bypass cors restrictions in the browser.
* Example Usage: https://<worker_subdomain>.workers.dev/https://postman-echo.com/get?foo1=bar1&foo2=bar2
*/
addEventListener('fetch', event =>
event.respondWith(handleRequest(event.request))
)
@Tweetus-Bot
Tweetus-Bot / bulkcopy.py
Last active December 7, 2020 15:21
Noob script to copy files from many gdrive links from a text file
# credits: regex101.com, t.me/wfjpwf for the replace thing. (line no. 11)
# fsymbols.com/generators/carty this is where I got the ascii art.
# Inspiration: https://github.com/BlackPearl-Forum/Blackpearl-Link-Creator/blob/361ca418ca253be895c6db26d7f3ab5549b59954/links.py (such a neat code!)
import re, sys, os
def file_id(file):
regex = r"[\w-]{33}"
matches = re.finditer(regex, links, re.MULTILINE)
for matchNum, match in enumerate(matches, start=1):
@noaione
noaione / qbitWebhook.py
Created June 12, 2019 04:24
QBittorrent Discord Webhook Notifier and Rclone Command Wrapper
import argparse
import subprocess
from discord_webhook import DiscordWebhook, DiscordEmbed
"""
QBittorrent Discord Webhook and Rclone command wrapper
Version: 1.0
This script will send a notification to Discord via webhook, that your download are finished.
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active April 27, 2025 05:33
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings