Skip to content

Instantly share code, notes, and snippets.

View osleg's full-sized avatar
🐢
Making change for devops

Alex Zaslavsky osleg

🐢
Making change for devops
View GitHub Profile
### Keybase proof
I hereby claim:
* I am osleg on github.
* I am osleg (https://keybase.io/osleg) on keybase.
* I have a public key ASClGgRwzfQJ0WXx8496Evkghlf6CMOvU0N0E9DFEETSkgo
To claim this, I am signing this object:
@osleg
osleg / meetlist.userscript
Created January 28, 2019 07:39
Hangouts Meet user list with checkboxes
// ==UserScript==
// @name Meet list
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author <Alex Zaslavsky>
// @match https://meet.google.com/*
// @grant none
// ==/UserScript==
/* Move Tab-bar beside Nav-bar */
#TabsToolbar {
margin-bottom: 0px !important; /* not needed anymore? */
margin-top: -1px !important; /* */
margin-left: 30vw !important;
margin-right: -34px !important;
}
#nav-bar {
margin-bottom: -1px !important; /* remove navbar bottom 1px border */
func process_candies(delta):
for cand in candies:
print(cand)
var pos = cand["candie"].get_pos()
pos += cand["speed"] * Vector2(1.0, 0) * delta
cand["candie"].set_pos(pos)
# The output
** Debug Process Started **
(candie:[Node2D:572]), (speed:173)
@osleg
osleg / z.py
Last active June 10, 2017 09:50
class Baz(object)
def kill_humans(self):
pass
class Foo(object):
def __init__(self, obj):
self._obj = obj
@property
def bar(self):
s.mysystray = wibox({
screen=s, border_width=0, height=20, width=1000, type="toolbar",
bg=theme.bg_normal, fg=theme.fg_normal, ontop=true, opacity=0.8,
visible=false, y=880, x=220
})
-- Add systray to wibox
s.mysystray:setup {
layout = wibox.layout.align.horizontal,
{
2017-01-27 05:00:48 /usr/share/awesome/lib/beautiful/xresources.lua:54: W: Failed to get xrdb value 'background'.
stack traceback:
/usr/share/awesome/lib/awful/hotkeys_popup/widget.lua:107: in function 'awful.hotkeys_popup.widget.new'
/usr/share/awesome/lib/awful/hotkeys_popup/widget.lua:460: in upvalue 'get_default_widget'
/usr/share/awesome/lib/awful/hotkeys_popup/widget.lua:477: in function 'awful.hotkeys_popup.widget.add_hotkeys'
/usr/share/awesome/lib/awful/hotkeys_popup/keys/vim.lua:171: in main chunk
[C]: in function 'require'
/usr/share/awesome/lib/awful/hotkeys_popup/keys/init.lua:11: in main chunk
[C]: in function 'require'
/usr/share/awesome/lib/awful/hotkeys_popup/init.lua:12: in main chunk
error 8: BadMatch (invalid parameter attributes) request 142 minor 6 serial 351
error 9: BadDrawable (invalid Pixmap or Window parameter) request 139 minor 4 serial 352
error 4: BadPixmap (invalid Pixmap parameter) request 54 minor 0 serial 390
2017-01-27 04:32:55 E: Error during a protected call: attempt to compare number with string
stack traceback:
[C]: in function 'math.min'
/usr/share/awesome/lib/wibox/widget/base.lua:310: in function 'wibox.widget.base.fit_widget'
/usr/share/awesome/lib/wibox/layout/fixed.lua:281: in function 'wibox.layout.fixed.fit'
[C]: in function 'xpcall'
/usr/share/awesome/lib/gears/protected_call.lua:36: in function </usr/share/awesome/lib/gears/protected_call.lua:35>
@osleg
osleg / init.lua
Created January 8, 2017 20:22
scracthdrop/init.lua
-------------------------------------------------------------------
-- Drop-down applications manager for the awesome window manager
-------------------------------------------------------------------
-- Coded by: * Lucas de Vries <lucas@glacicle.com>
-- Hacked by: * Adrian C. (anrxc) <anrxc@sysphere.org>
-- Licensed under the WTFPL version 2
-- * http://sam.zoy.org/wtfpl/COPYING
-------------------------------------------------------------------
-- To use this module add:
-- local scratchdrop = require("scratchdrop")
package main
import (
πg "grumpy"
π_grumpyΓlibΓos "grumpy/lib/os"
π_os "os"
)
func initModule(πF *πg.Frame, _ []*πg.Object) (*πg.Object, *πg.BaseException) {
ßgetenv := πg.InternStr("getenv")