Skip to content

Instantly share code, notes, and snippets.

View marlyn-x86's full-sized avatar

Marlyn marlyn-x86

  • Earth
View GitHub Profile
/obj/item/apc_powercord
name = "power cable"
desc = "Insert into a nearby APC to draw power from it."
icon = 'icons/obj/power.dmi'
icon_state = "wire1"
flags = NOBLUDGEON
var/siphon_rate=500
/obj/item/apc_powercord/afterattack(atom/target, mob/user, proximity_flag, click_parameters)
if(!istype(target, /obj/machinery/power/apc) || !proximity_flag)
@marlyn-x86
marlyn-x86 / pip3_error
Created December 28, 2018 22:33
pip3 error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 33, in vendored
__import__(vendored_name, globals(), locals(), level=0)
ImportError: No module named 'pip._vendor.pkg_resources'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
from pip import main
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
CPU Family: 0x6
@marlyn-x86
marlyn-x86 / desktop_files_spec.lua
Last active July 29, 2017 22:49
Busted test for desktop file parsing
local menu_gen = require("menubar.menu_gen")
local gdebug = require("gears.debug")
local assets_dir = (os.getenv("SOURCE_DIRECTORY") or '.') .. "/spec/menubar/desktop_files"
menu_gen.all_menu_dirs = { assets_dir }
describe("menubar.menu_gen Entry Generation", function()
it("Can Generate Menu Entries", function()
async()
-- Test `perform_action` function
-- Used only once in `prompt_keypressed_callback`
function()
local a, newcmd, newprompt = mbar_guts.perform_action({
key = "Testing",
cmdline = "ls",
name = "example"
})
assert(a == true)
assert(newcmd == "")
@marlyn-x86
marlyn-x86 / CKittyLevelFileNotes.txt
Created August 28, 2016 23:20
Outdated notes for the Copy Kitty level format
NA: [Name]
Level Name
===
CR: [Name]
Creator Name
===
TAG: [Tag]
Level Tag (For grouping)
===
TSC: ??? Something with thumbnail?
@marlyn-x86
marlyn-x86 / kitty_wine.sh
Last active August 12, 2016 21:19
Simple script to install pre-reqs for Copy Kitty
#!/bin/bash
RED="\033[31m"
GREEN="\033[32m"
NORMAL="\033[0m"
winetricks_v="winetricks"
function check_for_dependencies {
local DEPS=(wine winetricks zenity)
local all_found=1
# We need:
@marlyn-x86
marlyn-x86 / sockets.py
Last active May 13, 2016 00:49
A thing to show packet information - currently, the notebook on the left doesn't resize nicely
import socket
from socket import (getaddrinfo)
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
url = "www.example.com"
port = 80
protocols = {
"AH" : socket.IPPROTO_AH,
name = "Spontaneous Combustion"
stealth = 1
resistance = -4
stage_speed = -4
transmittable = -4
level = 6
severity = 5
=================================
name = "Facial Hypertrichosis"
stealth = -3
@marlyn-x86
marlyn-x86 / clock.lua
Created December 16, 2015 04:19
A simple clock widget for awesome
local cairo = require("lgi").cairo
local wibox = require("wibox")
local naughty = require("naughty")
local math = math
local os = os
local setmetatable = setmetatable
local capi = { timer = timer }
local lemonclock = { mt = {} }