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

User contributions for Derg

A user with 88 edits. Account created on 9 September 2024.
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)

10 September 2024

9 September 2024

  • 22:1122:11, 9 September 2024 diff hist +2,200 N Cursed thoughtsCreated 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..." current
  • 22:1022:10, 9 September 2024 diff hist +3,745 N PunsCreated 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..."
  • 22:0722:07, 9 September 2024 diff hist −647 Main PageNo edit summary
  • 20:5120:51, 9 September 2024 diff hist +2,984 N slisten.pyCreated 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..."
  • 20:4520:45, 9 September 2024 diff hist −1 m websred.pyNo edit summary
  • 20:4520:45, 9 September 2024 diff hist +2,992 N websred.pyCreated 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',..."
  • 20:4320:43, 9 September 2024 diff hist +2,995 N bridge.pyCreated 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(..."
  • 20:4220:42, 9 September 2024 diff hist +568 N displaytoggle.pyCreated 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..."
  • 20:3720:37, 9 September 2024 diff hist +182 N justfail.serviceCreated 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>"
  • 20:3520:35, 9 September 2024 diff hist +174 N servicefailure@.serviceCreated page with "<syntaxhighlight lang="INI"> [Unit] Description=Failure handler for %i [Service] Type=oneshot ExecStart=/home/pi/.cron/servicefailure/servicefailure.py %i </syntaxhighlight>"
  • 20:3420:34, 9 September 2024 diff hist +1,055 N servicefailure.pyCreated 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(..."
  • 20:2420:24, 9 September 2024 diff hist −1 vnc.serviceNo edit summary
  • 19:4119:41, 9 September 2024 diff hist +34 vnc.serviceNo edit summary Tag: visualeditor-switched
  • 19:3919:39, 9 September 2024 diff hist +48 conky.serviceNo edit summary Tag: visualeditor-switched
  • 19:3719:37, 9 September 2024 diff hist +2,073 N .conkyrcCreated 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,..." current
  • 19:2119:21, 9 September 2024 diff hist +159 N conky.serviceCreated page with "[Unit] Description=Conky [Service] Type=simple ExecStart=/usr/bin/conky -c /home/derg/.conkyrc Restart=always RestartSec=60 [Install] WantedBy=default.target"
  • 19:2019:20, 9 September 2024 diff hist +175 N vnc.serviceCreated 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

8 September 2024

  • 23:2223:22, 8 September 2024 diff hist +56 N MewCreated page with "Mew is a very cute sound that yeens, cats and foxes make" current Tag: visualeditor-switched
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)