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
View chat.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
View chat.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
View bloom.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
View tmux.md
View Caddyfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View eagler_music_hack.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", " |
View app.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |
View Simple Caddy WebSocket & HTTP Proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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}))?(.*)$ |
View README.md
To use:
- Download both files to $HOME directory
chmod +x
both files- Every time when you create a new terminal, run
source $HOME/bashrc
- Use like
$HOME/pget minizip libgtkglext1
View qemuqmptokeycodes.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
NewerOlder