Skip to content

Instantly share code, notes, and snippets.

View ayunami2000's full-sized avatar
👌
No u

ayunami2000

👌
No u
View GitHub Profile
@ayunami2000
ayunami2000 / chat.html
Last active June 19, 2023 17:59
my custom exllama/koboldcpp setup
<!DOCTYPE html>
<html>
<head>
<title>fard</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
<style>
@ayunami2000
ayunami2000 / chat.html
Created June 17, 2023 18:06
my custom koboldcpp chat interface. ui loosely based on: https://codepen.io/oieusouamiguel/pen/vbRrLm
<!DOCTYPE html>
<html>
<head>
<title>fard</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
<style>
@ayunami2000
ayunami2000 / bloom.sh
Last active January 22, 2023 20:53
run bloom
#!/bin/bash
if [ $# -eq 0 ]; then
dnf install -y --disableplugin=subscription-manager make git
dnf clean all --disableplugin=subscription-manager
curl -L -o ./miniconda.sh -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x ./miniconda.sh
./miniconda.sh -b -p /opt/conda
rm ./miniconda.sh
@ayunami2000
ayunami2000 / tmux.md
Created October 16, 2022 15:46
ayunami's tmux rundown

https://code-maven.com/slides/linux/tmux-multiple-session
tmux new -s sample -- makes a new session called "sample"
tmux a -t sample -- attach to the session named "sample"
CTRL+B then press D -- detach from a session
tmux ls -- list current tmux sessions
CTRL+B then press X then press y -- terminate a session

@ayunami2000
ayunami2000 / Caddyfile
Created October 11, 2022 20:19
Source code for has-an-oculus.quest
has-an-oculus.quest {
respond "<!DOCTYPE html><html><head><link href=\"https://fonts.googleapis.com/css2?family=Nunito&display=swap\" rel=\"stylesheet\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\"><title>Do you have an Oculus Quest?</title></head><body style=\"background:#111;color:#ddd;font-family:'Nunito',sans-serif\"><h1>Do you have an Oculus Quest?</h1><p>Then show it off! <pre>https://<b contenteditable>your-mom</b>.has-an-oculus.quest</pre></p><sub style=\"position:fixed;bottom:0;left:0;width:100vw;opacity:.5;text-align:center\">made by ayunami2000</sub></body></html>" 200
}
*.has-an-oculus.quest {
tls {
dns cloudflare <cloudflare API token to manage DNS records on the domain>
}
#@noob {
# host abnumality.has-an-oculus.quest
@ayunami2000
ayunami2000 / eagler_music_hack.js
Last active August 17, 2022 20:39
Eaglercraft Client Music hijacker script (by ayunami2000) (in index.html, change "classes.js" to "eagler_music_hack.js", then change '"load"' to '"hack"')
window.music = (function () {
let audio = new Audio();
audio.volume = 0.25;
let songs = [ "CW6CMFPAsF4", "gz1xq2qJnHs", "RUEWIG8zoa0", "n02zTn2d3rY", "FoFqBB0r9OI", "Ugb7GUtiyZ0", "3UFyc7zN9KY", "V6N_rL4fh6I", "iBZS6ad3Tlk", "Mnb2RhXL-nM", "lidx_2d4YOA", "ETQJZHYlc3g", "kRpRoTaNni0", "ACy5tHoNUoA", "OKoA2ppQMkw", "-jcOtAuGZC4", "-cJFVNZC4h8", "yLFX_7SH2tY", "oP6wOte3wZU", "MT7ssDlcN_c", "dOu3APclRkU", "CElWZz_oCsA", "8wr8eqro_OI", "OlLUtndzw7A", "HBYS5mBHie4", "5HxGK3DTUBQ", "_9qUu8IeabE", "QaRbalghKl4", "PtjgNhXWr2U", "OqJi_n3AcV4", "WFFF-jMyFaQ", "FD56t_0B9ig", "x6EATApss4k", "vLv3r1jtnmc", "VLbMXG8lvjI", "-5h9Q5PMHkw", "M0opHPn2bSQ", "XbuqB3uB6DI", "ZCJo8CDyqlQ", "A1-fM0s1Yt0", "zfKvnd-f4fA", "zsLT3JqfTn0", "YZlclPLX1Hw", "AYdyRPIo4ZA", "loeGmoYr3s4", "0qhoqXTUQlY", "7KtwWWJqDrM", "uIk_jGypR24", "G9z_DmhSKjM", "IFWYSOsAuL8", "DhUieLpc16A", "b9W22zhQdkA", "lpm7-aEXD7I", "YIp1S0VfJVI", "BSC6d81pvwE", "aZlOBCXgIVg", "sG2yDNSSwaY", "RiVZCDq--m4", "-NXEcmszXzQ", "N2SW_MWBa6w", "2k5dqgNT37g", "T0cGZD15UaA", "
@ayunami2000
ayunami2000 / app.js
Created July 20, 2022 01:39
tiktok discord bot (FREE)
const { joinVoiceChannel, createAudioPlayer, createAudioResource, StreamType, NoSubscriberBehavior } = require('@discordjs/voice');
const { spawn } = require('child_process');
const fs = require('fs');
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
const { Readable } = require('stream');
const { Buffer } = require('buffer');
# ALSO ADD YOUR SERVER'S PUBLIC IP WHERE IT SAYS "PUBLIC_IP_HERE" (remove the "#" too) TO PREVENT LOOPBACK!!
# by default, denies all ipv6 connections, because I am lazy
me.example.com {
handle /proxy/* {
@self remote_ip 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 ::/0 # PUBLIC_IP_HERE
respond @self "Not today..." {
close
}
@valid path_regexp proxy ^/proxy/(https?|wss?)[:;]/+([a-zA-Z0-9.-]+)(?:[:;](\d{1,5}))?(.*)$
@ayunami2000
ayunami2000 / README.md
Last active March 13, 2022 20:42
use apt anywhere!!

To use:

  1. Download both files to $HOME directory
  2. chmod +x both files
  3. Every time when you create a new terminal, run source $HOME/bashrc
  4. Use like $HOME/pget minizip libgtkglext1
@ayunami2000
ayunami2000 / qemuqmptokeycodes.txt
Created September 10, 2021 22:17
qemu qmp qkey qkeycode to browser keycode event.which e.which
var qmpkeys={
19:"pause",
16:"shift",//no shift_r
17:"ctrl",//no ctrl_r
46:"delete",
45:"insert",
27:"esc",
37:"left",
38:"up",
39:"right",