Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

New pages

More actions
New pages
Hide registered users | Hide bots | Show redirects
  • 03:31, 18 September 2024clipthing.html (hist | edit) ‎[5,475 bytes]Derg (talk | contribs) (Created page with "To try this thing out go to https://kserver.nu/tools/clipthing.php <syntaxhighlight lang="html"> <!DOCTYPE html> <html> <head> <title>ClipThing</title> <style> html { color: #ffffff; background-color: #000000; } #stuff { width: 100%; } .item { background-color: #111111; margin-bottom: 10px; padding: 5px; width: 100%; } .c...")
  • 08:26, 17 September 2024splitsql.py (hist | edit) ‎[616 bytes]Derg (talk | contribs) (Created page with " <syntaxhighlight lang="python"> cur = 'beginning' fi = open(cur + '.sql', 'wb') starts = b'CREATE DATABASE →‎!32312 IF NOT EXISTS: `' ends = b'` →‎!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci: ;' with open('beforereinstallalldbs.sql', 'rb') as f: for l in f: l = l.strip() if l.startswith(starts) and l.endswith(ends): cur = l[len(starts):-len(ends)].decode('utf-8') print(cur) fi.close() fi = open(cur + '.sql', 'wb')...")
  • 08:02, 17 September 2024openfolderoffilenewwindow.reg (hist | edit) ‎[277 bytes]Derg (talk | contribs) (Created page with " <syntaxhighlight lang="reg"> Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\openfolderoffileinnewwindow] @="Open folder of file in new window" [HKEY_CLASSES_ROOT\*\shell\openfolderoffileinnewwindow\command] @="explorer.exe /select,\"%1\"" </syntaxhighlight>")
  • 06:50, 15 September 2024egloreset.yaml (hist | edit) ‎[2,188 bytes]Derg (talk | contribs) (Created page with " <syntaxhighlight lang="yaml"> - id: '1725756517456' alias: EGLO reset device description: '' trigger: [] condition: [] action: - service: switch.turn_on metadata: {} data: {} target: device_id: 600ff73a7ec019441ee0c81accd1f8f8 - wait_template: '' continue_on_timeout: true timeout: '1' - service: switch.turn_off metadata: {} data: {} target: device_id: 600ff73a7ec019441ee0c81accd1f8f8 - wait_template: '' c...")
  • 06:35, 15 September 2024homo.cpp (hist | edit) ‎[482 bytes]Derg (talk | contribs) (Created page with " <syntaxhighlight lang="C++"> #include <iostream> #include <string> class Homo { private: public: std::string key; void operator= (std::string index) { std::cout << this->key << " is " << index << std::endl; } }; class Gay { private: public: Homo operator[] (std::string index) { Homo h; h.key = index; return h; } }; int main() { Gay gay; gay["your mom"] = "gay"; return 0; } </syntaxhig...")
  • 06:18, 15 September 2024.htaccess (hist | edit) ‎[604 bytes]Derg (talk | contribs) (Created page with " <syntaxhighlight lang="Apache"> RewriteEngine On RewriteBase / # Ignore if file exists RewriteCond %{REQUEST_FILENAME} !-f # Ignore if directory exists RewriteCond %{REQUEST_FILENAME} !-d # Redirect if old w short path RewriteRule ^w/(.*)$ /$1 [R=301,L] # Redirect if old wiki path RewriteRule ^wiki/(.*)$ /$1 [R=301,L] # Sitemap moved fix RewriteRule ^sitemap.xml*$ mediawiki/sitemap.xml [L,QSA] # Root path rewrite to main page RewriteRule ^$ mediawiki/index.php [L,QSA]...")
  • 04:54, 14 September 2024Test (hist | edit) ‎[1,225 bytes]Derg (talk | contribs) (Created page with " This is a text article <syntaxhighlight lang="python"> # You can syntax highlight code def compacttrace(exc: Exception, maxamount: int = 100): out = [] for a in range(maxamount): line = exc.__traceback__.tb_lineno file = exc.__traceback__.tb_frame.f_code.co_filename out.append(f"{exc!a} # line {line} file {file}") if exc.__cause__: out.append("# Caused") elif exc.__context__: out.append("# Happened...")
  • 04:45, 14 September 2024Gnolls (hist | edit) ‎[69 bytes]Derg (talk | contribs) (Created page with "Gnolls are anthro yeens and very good creatures and I am one at times")
  • 23:11, 9 September 2024Cursed thoughts (hist | edit) ‎[2,200 bytes]Derg (talk | contribs) (Created page with "Why are good night stories interesting. Wouldn't it be more efficient to tell a extremely boring story that causes someone to fall asleep like the entire manual to UNIX Have you ever thought like Deidara from Naruto like if he was forced to unclog a toilet with his hands how he would taste it all? A FIFO buffer is like all the way through where the first part is the part that comes out first while a LIFO buffer is like shoving items up your ass and pooping them out whe...")
  • 23:10, 9 September 2024Puns (hist | edit) ‎[3,807 bytes]Derg (talk | contribs) (Created page with "If you eat something real good, is it pheNOMenal? If you have a fact about art, is it then an artifact? If you sing a song in a maze, does it make your song aMAZEing? If you have a staircase covered in eyes, is it a starecase? If you murder a mushroom, is it fungicide? Did you know that when you are programming you are always having fun since you are writing FUNctions If you steal a clock, do you take time? If you set up a camera and you are a girl, are you a camg...")
  • 21:51, 9 September 2024slisten.py (hist | edit) ‎[2,984 bytes]Derg (talk | contribs) (Created page with "<syntaxhighlight lang="python"> #!/usr/bin/python3 import argparse import json import sys import redis a = argparse.ArgumentParser() a.add_argument('-s', dest='subscribe', action='append') a.add_argument('-p', dest='psubscribe', action='append') a.add_argument('-r', dest='raw', action='store_true') a.add_argument('-n', dest='nochannel', action='store_true') a.add_argument('-f', dest='prettyprint', action='store_true') a.add_argument('-c', dest='contains', action='store...") originally created as "Slisten.py"
  • 21:45, 9 September 2024websred.py (hist | edit) ‎[2,991 bytes]Derg (talk | contribs) (Created page with "<syntaxhighlight lang="python"> !/usr/bin/python import argparse parser = argparse.ArgumentParser() parser.add_argument('-d', '--daemonize', dest='daemon', action='store_true') parser.add_argument('-p', '--port', dest='port', type=int, default=8079) parser.add_argument('-i', '--subscribe', dest='subscribe') parser.add_argument('-o', '--publish', dest='publish') parser.add_argument('-v', '--debug', dest='debug', action='store_true') parser.add_argument('-l',...") originally created as "Websred.py"
  • 21:43, 9 September 2024bridge.py (hist | edit) ‎[2,995 bytes]Derg (talk | contribs) (Created page with "<syntaxhighlight lang="python"> #!/usr/bin/python3 from twisted.internet import reactor, protocol import sys class Client(protocol.Protocol): def __init__(self, s): self.server = s self.connected = 0 self.data = [] def connectionMade(self): self.connected = 1 for a in self.data: self.transport.write(a) self.data = [] def write(self, a): if self.connected: self.transport.write(...") originally created as "Bridge.py"
  • 21:42, 9 September 2024displaytoggle.py (hist | edit) ‎[568 bytes]Derg (talk | contribs) (Created page with "<syntaxhighlight lang="python"> #!/usr/bin/python3 import win32api, win32con, argparse screenid = 1 a = argparse.ArgumentParser() a.add_argument('on', nargs="?", default=False, type=lambda x: x.lower() not in ("false", "0", "off")) b = a.parse_args() screenstring = f"\\\\.\\DISPLAY{screenid:d}" if b.on: win32api.ChangeDisplaySettingsEx(screenstring, None) else: s = win32api.EnumDisplaySettings(screenstring, win32con.ENUM_CURRENT_SETTINGS) s.PelsWidth = 0...") originally created as "Displaytoggle.py"
  • 21:37, 9 September 2024justfail.service (hist | edit) ‎[182 bytes]Derg (talk | contribs) (Created page with "<syntaxhighlight lang="INI"> [Unit] Description=This will just fail OnFailure=servicefailure@%n.service [Service] Type=oneshot ExecStart=sh -c 'echo fail; exit 1' </syntaxhighlight>") originally created as "Justfail.service"
  • 21:35, 9 September 2024servicefailure@.service (hist | edit) ‎[174 bytes]Derg (talk | contribs) (Created page with "<syntaxhighlight lang="INI"> [Unit] Description=Failure handler for %i [Service] Type=oneshot ExecStart=/home/pi/.cron/servicefailure/servicefailure.py %i </syntaxhighlight>") originally created as "Servicefailure@.service"
  • 21:34, 9 September 2024servicefailure.py (hist | edit) ‎[1,055 bytes]Derg (talk | contribs) (Created page with "<syntaxhighlight lang="python"> #!/usr/bin/python3 import subprocess import requests import sys import os service = sys.argv[1] proc = subprocess.Popen("hostname", stdout=subprocess.PIPE, shell=True) hostname = proc.communicate()[0].decode("utf-8").strip() status = f"Service {service} failed on {hostname}" print(status) try: import redis r = redis.Redis() r.publish("boterrorlocal", status) except Exception as e: print(e) proc = subprocess.Popen(...") originally created as "Servicefailure.py"
  • 20:37, 9 September 2024.conkyrc (hist | edit) ‎[2,073 bytes]Derg (talk | contribs) (Created page with "<syntaxhighlight lang="lua"> conky.config = { own_window = true, own_window_type = 'normal', own_window_transparent = true, own_window_argb_visual = true, own_window_class = 'conky-semi', own_window_hints = 'undecorated,above,sticky,skip_taskbar,skip_pager', background = false, use_xft = true, update_interval = 15, total_run_times = 0, double_buffer = true, minimum_height = 5, minimum_width = 5, maximum_width = 400,...")
  • 20:21, 9 September 2024conky.service (hist | edit) ‎[207 bytes]Derg (talk | contribs) (Created page with "[Unit] Description=Conky [Service] Type=simple ExecStart=/usr/bin/conky -c /home/derg/.conkyrc Restart=always RestartSec=60 [Install] WantedBy=default.target") originally created as "Conky.service"
  • 20:20, 9 September 2024vnc.service (hist | edit) ‎[208 bytes]Derg (talk | contribs) (Created page with "<code> [Unit] Description=VNC server [Service] ExecStart=/usr/bin/x11vnc -forever -display $DISPLAY -rfbauth /home/derg/.vnc/passwd [Install] WantedBy=default.target </code>") Tag: visualeditor-switched originally created as "Vnc.service"
  • 00:22, 9 September 2024Mew (hist | edit) ‎[56 bytes]Derg (talk | contribs) (Created page with "Mew is a very cute sound that yeens, cats and foxes make") Tag: visualeditor-switched