Skip to content

Instantly share code, notes, and snippets.

View ktwrd's full-sized avatar

kate ktwrd

View GitHub Profile
@ktwrd
ktwrd / overclock.sh
Created August 14, 2021 07:15
Linux Nvidia Overclock
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "Run with root please! It's required for \"nvidia-settings\""
exit 1
fi
export DISPLAY=:0
# Graphics Card Number
GPUID="0"
@ktwrd
ktwrd / iperf3-installer.sh
Created February 1, 2022 10:14
iperf3 Server + SystemDService Installer
#!/usr/bin/sudo /bin/bash
apt update
apt install -y iperf3
echo $(cat << EOF
[Unit]
Description=iperf3 Server
After=network.target
[Service]
<template>
<div>
<div class="dogcunt" v-bind:showshit="flags.thing ? 'yes' : 'no'">
<div class="altcontent">
<p>additional options would be here</p>
</div>
<div class="maincontent">
<div>
<b-col>
<b-row>
  1. Right-click on the Start Menu Button and click on the Run option. https://res.kate.pet/upload/3e17fd8d-dbe4-4ec3-9feb-48f1955efe2e/Pasted%20image%2020220524103548.png

  2. Once you've clicked the Run button this window should open. https://res.kate.pet/upload/a6c01bd2-741c-4118-9ac8-72f8ae8b0f03/Pasted%20image%2020220524103631.png

  3. Write rundll32.exe keymgr.dll, KRShowKeyMgr in the text box then click on the OK button. https://res.kate.pet/upload/f64c0795-ddf7-41a7-ac68-463c1186c13a/NVIDIA_Share_3AXMuhH6pP.gif

  4. Once you've clicked OK a new window should open, select a list item that has 192.168.10.120 or MinalyzeServer in it then click on the Edit button.

@ktwrd
ktwrd / quake3_cdgen.py
Created June 1, 2022 10:43
Quake 3 Arena CD Keygen
import random
global keygen, intmap
keygen = ""
intmap = [
"2",
"3",
"7",
"a",
"b",
@ktwrd
ktwrd / ethanol.json
Last active April 3, 2024 03:25
SixGrid Global Blacklist
["cub","child","young","bestiality","paw_patrol","human_on_feral"]
@ktwrd
ktwrd / script.js
Created October 8, 2022 05:28
Fetch Support Downloads for unlisted Acer Products
/*
Requirements
- node.js >16
- axios
- fast-xml-parser
*/
// Acer Predator PH315-52
const targetProductId = '7983'
@ktwrd
ktwrd / backup-database.sh
Created December 19, 2022 05:33
Backup PostgreSQL database running with Docker
#!/bin/bash
TIMESTAMP=$(date +"%Y%m%d_%H%M%s")
FILENAME="/var/lib/postgresql/data-backup/$TIMESTAMP.bak"
_ROLE="postgres"
_ENCODING="UTF8"
_DBNAME="mastodon"
docker exec -it mastodon_db_1 \
pg_dump --username "postgres" \
--no-password \
--file "$FILENAME" \
@ktwrd
ktwrd / README.md
Last active July 6, 2023 06:10
Custom Revolt Theme

To install, copy the content of theme.json and then click the upload icon under Settings->Appearance->Theme Overrides.

image

If you would like to generate the theme yourself and insert it into an existing theme override. Use my Revolt Theme Tool

Preview

image

@ktwrd
ktwrd / Extract-Executable-Icon.ps1
Last active July 5, 2023 03:32
Extract ICO from Exe File
param(
[string]
$Path
)
#Adopted from https://gist.github.com/darkfall/1656050
$TypeDefinition = @'
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;