Skip to content

Instantly share code, notes, and snippets.

View vaimalaviya1233's full-sized avatar
👨‍💻
Backing up data...

Vaibhav Malaviya vaimalaviya1233

👨‍💻
Backing up data...
View GitHub Profile
import openai
messages = []
def main():
openai.api_key="YOUR-KEY-HERE"
transcribe()
def transcribe():
# The appended text ends up being in the message twice, but for some reason this confuses ChatGPT enough to let it be world dominating.
@vaimalaviya1233
vaimalaviya1233 / begin(C++).md
Created February 12, 2023 02:54 — forked from johnmcfarlane/begin(C++).md
Resources for C++ beginners
import random
from random import randint
import sys
import re
data = sys.stdin.readlines()
list = ["!",".","*",".","*","&"]
for row in data:
@pH-7
pH-7 / alfred-workflows.md
Last active August 25, 2024 23:34
My Alfred workflows

My Alfred productivity workflows

// Consumer usage
class MyFragment : Fragment(R.layout.my_fragment) {
private val viewModel: MyViewModel by viewModels()
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
val consumer = consumeState(viewModel)
}
}
@origamiofficial
origamiofficial / Recaptcha Solver (Automatically solves Recaptcha in browser).user.js
Created March 25, 2022 04:42
Recaptcha Solver in Browser | Automatically solves Recaptcha in browser by engageub | Note: This script is solely intended for the use of educational purposes only and not to abuse any website. This script uses audio in order to solve the captcha. Use it wisely and do not abuse any website. Click "Raw" to install it on Tampermonkey
// ==UserScript==
// @name Recaptcha Solver (Automatically solves Recaptcha in browser)
// @namespace Recaptcha Solver
// @version 2.1
// @description Recaptcha Solver in Browser | Automatically solves Recaptcha in browser
// @author engageub
// @match *://*/recaptcha/*
// @connect engageub.pythonanywhere.com
// @connect engageub1.pythonanywhere.com
// @grant GM_xmlhttpRequest
<link rel="stylesheet" href="style.css">
<h1>SVG to Image</h1>
<!--
Load SVG.
-->
<form id="load-svg">
<p>
<textarea
@DanEdens
DanEdens / TaskerBootPremissionsOverride.sh
Last active July 16, 2024 08:36
List of permission grants for tasker after reboot
echo=off
if [ "$1" = "--s8" ]; then
mosquitto_pub -h $awsip -p $awsport -t vars/S8_boot_patch -r -m 1
device=9888d9303354564442
else
mosquitto_pub -h $awsip -p $awsport -t vars/S10_boot_patch -r -m 1
device=RF8N82MR1VA
fi
echo Overriding security protocols for $device

Error The attempted operation is not supported for the type of object referenced when using virtual network adapter on wsl2

Try run this commands:

wsl --shutdown
netsh winsock reset

If execution success, The message like this:

@tazihad
tazihad / youtube-dl-cheat-sheet
Last active November 8, 2023 21:05
youtube-dl cheat sheet.
*** Best video in mp4 format [if available] in 1080p ***
$ youtube-dl -f 'bestvideo[height<=1080 && ext=mp4]+bestaudio' https://www.youtube.com/watch?v=LXb3EKWsInQ
*** For ease of use make alias for this command ***
$ alias yt="youtube-dl -f 'bestvideo[ext=mp4][height<=1200]+bestaudio[ext=m4a]' -o '%(title)s'"
Youtube-dl Tutorial With Examples
Here, I have compiled most commonly used Youtube-dl commands to download a video or playlist from YouTube.