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 | |
sudo add-apt-repository ppa:graphics-drivers/ppa | |
sudo dpkg --add-architecture i386 | |
sudo apt update && sudo apt upgrade | |
sudo apt install -y aptitude libvulkan1 libvulkan1:i386 | |
sudo aptitude install -y nvidia-driver-525 |
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
// ==UserScript== | |
// @name SR Macro | |
// @version 1 | |
// @description SR Macro | |
// @author https://github.com/morgan9e | |
// @match https://etk.srail.kr/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=srail.kr | |
// ==/UserScript== | |
(function() { |
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> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/inko.min.js"></script> | |
<style> | |
#preview { | |
position: absolute; | |
font-size: 14px; | |
font-weight: bold; |
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
#!/usr/bin/env python | |
import uvicorn | |
from fastapi import FastAPI, Request, HTTPException | |
from fastapi.responses import RedirectResponse, HTMLResponse, FileResponse | |
import os, sys, requests, datetime | |
app = FastAPI() | |
hosts = [ | |
"SERVER1", |
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
.md\:max-w-3xl { | |
max-width: 70rem; | |
} | |
.xl\:max-w-3xl { | |
max-width: 70rem; | |
} | |
.dark body, .dark html { | |
background-color: #242424; |
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
FROM debian:12 | |
RUN apt-get update && apt-get install -y \ | |
xrdp dbus-x11 | |
RUN apt-get install -y \ | |
openbox \ | |
pcmanfm \ | |
hsetroot \ | |
xterm |
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
async function handleRequest(request) { | |
const originalHeaders = request.headers; | |
const proxyUrl = originalHeaders.get('X-Proxy-URL'); | |
const proxyMethod = originalHeaders.get('X-Proxy-Method') || 'GET'; | |
const proxyHeaders = originalHeaders.get('X-Proxy-Headers') || null; | |
let parsedProxyHeaders = {}; | |
if (proxyHeaders) { | |
try { |
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 ! podman image exists sandbox; then | |
cat << EOF > /tmp/sandbox.containerfile | |
FROM debian:12 | |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
dbus-x11 \ | |
weston \ | |
xterm \ |
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 | |
set -euo pipefail | |
if [ ! -v FLATPAK_ID ]; then echo "Not in Flatpak."; exit; fi; | |
DEFAULT_COMMAND=$(cat /app/manifest.json | python3 -c "import sys, json; print(json.load(sys.stdin)['command'])"); | |
NEW_HOME="${HOME}/.altvar" | |
NEW_APP_DIR="${NEW_HOME}/app/${FLATPAK_ID}" |
OlderNewer