Skip to content

Instantly share code, notes, and snippets.

View marceloslacerda's full-sized avatar

Marcelo Lacerda marceloslacerda

View GitHub Profile
[ 22.812]
X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
[ 22.812] Current Operating System: Linux arch-msl09 6.9.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 28 Jun 2024 04:32:50 +0000 x86_64
[ 22.812] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=658cb499-9df5-40d0-9452-255dac66fc8a rw delayacct loglevel=3 quiet resume=UUID=055d626a-c79a-4225-9b41-00925318a307
[ 22.812]
[ 22.812] Current version of pixman: 0.43.4
[ 22.812] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 22.812] Markers: (--) probed, (**) from config file, (==) default setting,
@marceloslacerda
marceloslacerda / search-engines.md
Last active June 6, 2024 19:49
Are there any good search engines?

Is there any search engine that's better than the others?

For an engine to score a point it needs to be able to show the expected result within the first few answers in a readable manner (ie: not hidden behind numerous video thumbnails, ads etc).

Private focused engines (allegedly)

startpage ecosia duckduckgo kagi brave searx[1] expected result
1 rocky linux docker ✔️ ✔️ ✔️ ✔️ ✔️ rocky linux docker image
- hosts: 127.0.0.1
handlers:
- name: handler a
shell: echo this
tags:
- xtag
- name: handler b
shell: echo that
tags:
- xtag
import unittest
import docopt
class DocoptTestCase(unittest.TestCase):
def test_single_optional(self):
docopt.docopt("""
test command
Usage: test [--verbose]
# neither this or that gets executed
- hosts: 127.0.0.1
remote_user: root
tasks:
- name: do this
shell: echo this
when: not all_proj
- name: do that
shell: echo that
when: all_proj
#!/bin/sh
sudo -u {{ USER }} /home/msl09/custom-scripts/backup-server
@marceloslacerda
marceloslacerda / MAGA
Last active April 29, 2016 23:27
make everything better again on irc
def trumpfy(string='AMERICA'):
bold=''
colors = ['5,1', '16,1', '2,1']
words = ['MAKE', string, 'GREAT', 'AGAIN']
def freedomfy(word):
for i in range(len(word)):
yield colors[i%3] + word[i].upper()
result = bold + colors[0] + ' ' + ' '.join([''.join((list(freedomfy(word)))) for word in words]) + ' '
return result
@marceloslacerda
marceloslacerda / serranodsdd.log
Created April 16, 2016 00:53
serranodsdd build log
This file has been truncated, but you can view the full file.
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
CM_VERSION=13.0-20160415-UNOFFICIAL-serranodsdd
TARGET_PRODUCT=cm_serranodsdd
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
[ 66341.667] (II) config/udev: Adding input device Wacom Intuos S 2 Pad (/dev/input/event17)
[ 66341.667] (**) Wacom Intuos S 2 Pad: Applying InputClass "Wacom USB device class"
[ 66341.667] (**) Wacom Intuos S 2 Pad: Applying InputClass "Wacom class"
[ 66341.667] (II) Using input driver 'wacom' for 'Wacom Intuos S 2 Pad'
[ 66341.667] (**) Wacom Intuos S 2 Pad: always reports core events
[ 66341.667] (**) Option "Device" "/dev/input/event17"
[ 66341.667] (EE) Wacom Intuos S 2 Pad: Invalid type 'stylus' for this device.
[ 66341.667] (EE) Wacom Intuos S 2 Pad: Invalid type 'eraser' for this device.
[ 66341.667] (EE) Wacom Intuos S 2 Pad: Invalid type 'cursor' for this device.
[ 66341.667] (EE) Wacom Intuos S 2 Pad: Invalid type 'touch' for this device.
[Unit]
Description=translate wacom tablet inputs
Requires=graphical.target
[Service]
Environment=DISPLAY=:0.0
Environment=XAUTHORITY=/home/msl09/.Xauthority
WorkingDirectory=/home/msl09/PycharmProjects/xwacom/
User=root
ExecStart=/usr/bin/python3 redirect_keys.py