Skip to content

Instantly share code, notes, and snippets.

View BoQsc's full-sized avatar
💭
I may be slow to respond.

Feldwor BoQsc

💭
I may be slow to respond.
  • Public Domain
  • Baltic States
  • 22:59 (UTC +03:00)
View GitHub Profile
@BoQsc
BoQsc / Gists.md
Last active April 11, 2024 22:49
How to search my own Gists
@BoQsc
BoQsc / installExtensions.bash
Last active April 11, 2024 09:12
Download and Install multiple latest Gnome extensions via Bash
#!/bin/bash
declare gnomeExtensionsList=(
#"dash-to-dock@micxgx.gmail.com" # Dash to Dock
"dash-to-panel@jderose9.github.com" # Dash to Panel
"ding@rastersoft.com" # Desktop Icons NG - introduces a working Drag N Drop for Desktop Icons
)
function installExtensions(){
declare host="https://extensions.gnome.org/download-extension"
for extensionUUID in "${gnomeExtensionsList[@]}"; do

Remove Ubuntu partition and follow the instructions below, Source: https://askubuntu.com/a/869888

This answer is for those with UEFI who have deleted the Ubuntu partitions before removing grub

You will be doing this from Windows 10. No bootable media required.

Where bootrec /fixmbr, bootsect /nt60 and the Ubuntu live with the boot-repair suggestions have failed, this has worked for me:

(This answer borrowed verbatim from [here][1])

@BoQsc
BoQsc / NEW0517-defaultGPT4-web-browsing.user.js
Last active May 17, 2023 17:49
ChatGPT Plus: default GPT4 web browsing. Userscript for Tampermonkey or Greasemonkey that sets the LLM default model in the https://chat.openai.com/ User Interface.
// ==UserScript==
// @name GPT-4 Button Auto Click
// @match https://chat.openai.com/
// @match https://chat.openai.com/?model=text-davinci-002-render-sha
// ==/UserScript==
const clickFirstDivInsideButton = () => {
let buttonNode = document.evaluate("//button[contains(., 'GPT-4')]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if (buttonNode) {
let firstDivInsideButton = buttonNode.querySelector('div');
@BoQsc
BoQsc / download_revolt_server.py
Last active May 15, 2023 20:52
Download revolt.chat server.
import json
import os
import requests
from dotenv import load_dotenv
def main():
load_dotenv()
TOKEN = 'rxPrvEqnIZZfZ4JO9Lu4dHf-bBhd_29CGKzWnaJeWKl71f01W_EMrV6lA_2aXsO'
SERVER_ID = '0sGJ0CVBeZV2HwYAq3S6ZKrN4N'
BASE_URL = 'https://api.revolt.chat'
@BoQsc
BoQsc / Adding empty space to revolt chat.txt
Last active May 1, 2023 12:43
Adding empty space to revolt chat
`​  `
// ==UserScript==
// @name hCAPTCHA solver
// @namespace hCAPTCHA solver
// @version 1.0
// @description Automatically solves hCAPTCHAs in browser
// @author Abdul Rehman Sheikh - engageub
// @licence MIT
// @match *://*/*
// @grant GM_xmlhttpRequest
// @grant GM_setValue
@BoQsc
BoQsc / gist:be2034af19b0d10da3d037ddf5f4e878
Created March 28, 2023 20:28
Screenshot example in javascript clientside
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Screenshot Demo</title>
<style>
#v,
#i {
width: 1920px;
height: 1080px;
@BoQsc
BoQsc / chatgpt-on-your-computer.md
Last active March 27, 2023 08:30
Open Source and free. Locally run 7B "ChatGPT" model named Alpaca-LoRA on your computer. A 7 Billions parameter model on your laptop.

Locally run 7B "ChatGPT" model named Alpaca-LoRA on your computer.

  1. Download 7B model alpaca model.
  2. Download client-side program for Windows, Linux or Mac
  3. Extract alpaca-win.zip
  4. Copy the previously downloaded ggml-alpaca-7b-q4.bin file into newly extracted alpaca-win folder
  5. Open command prompt and run chat.exe
  6. Type questions you would want to ask an Alpaca.

Customize: chat --threads 4 --n_predict 512 --ctx_size 2048
Help: for more options. chat --help

@ECHO OFF
:repeat_run
IF EXIST "./gnirehtet-rust-win64/adb.exe" IF EXIST "./gnirehtet-rust-win64/gnirehtet.exe" GOTO :Start
TITLE Downloading gnirehtet-rust-win64
curl -L "https://github.com/Genymobile/gnirehtet/releases/download/v2.5/gnirehtet-rust-win64-v2.5.zip" -O
TITLE Extracting gnirehtet-rust-win64