Skip to content

Instantly share code, notes, and snippets.

@aruhier
aruhier / RealdebridCom.py
Last active July 1, 2023 22:25
Plugin RealDebrid for pyLoad, updated for the double authentication.
import re
import xml.dom.minidom as dom
from module.plugins.Account import Account
class RealdebridCom(Account):
__name__ = "RealdebridCom"
__version__ = "0.42"
__type__ = "account"
@aruhier
aruhier / gist:fb2f6141aa4e518d9f3bf495652672d0
Created April 3, 2023 19:58
udevadm info logitech receiver
P: /devices/pci0000:00/0000:00:01.3/0000:02:00.2/0000:03:09.0/0000:09:00.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:046D:C547.0026/input/input47/event16
M: event16
R: 16
U: input
D: c 13:80
N: input/event16
L: 0
S: input/by-path/pci-0000:09:00.0-usb-0:1.1:1.0-event-mouse
S: input/by-id/usb-Logitech_USB_Receiver-event-mouse
E: DEVPATH=/devices/pci0000:00/0000:00:01.3/0000:02:00.2/0000:03:09.0/0000:09:00.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:046D:C547.0026/input/input47/event16
@aruhier
aruhier / laptop.py
Created March 13, 2018 21:38
Barython
#!/usr/bin/env python3
from barython import Panel, Screen
from barython.widgets.base import TextWidget, Widget
from barython.widgets.battery import BatteryWidget
from barython.widgets.clock import ClockWidget
from barython.widgets.audio import PulseAudioWidget
from barython.widgets.mpd import MPDWidget
from barython.widgets.xorg import ActiveWindowWidget
from barython.widgets.bspwm import BspwmDesktopWidget, BspwmDesktopPoolWidget
@aruhier
aruhier / config.ini
Created October 14, 2017 08:40
Selfoss configuration
[globals]
db_type=pgsql
db_host=db.example.com
db_database=selfoss
db_username=selfoss
db_password=DB_PASSWORD
db_port=5432
items_perpage=100
items_lifetime=30
username=USER
@aruhier
aruhier / MANIFEST.in
Last active September 4, 2017 13:39
Molecule PKGBUILD
recursive-include molecule/cookiecutter *
@aruhier
aruhier / merge_sort.py
Created August 17, 2017 15:05
merge sort
#!/usr/bin/env python3
EXAMPLE = [40, 3, 5, 10, -2]
def merge_sort(lst):
if len(lst) < 2:
return lst
elif len(lst) == 2:
return [min(lst), max(lst)]
@aruhier
aruhier / PKGBUILD
Created January 21, 2017 14:29
nvidia-beta-dkms 378.09
# Maintainer : Anish Bhatt <anish at gatech dot edu>
# Co-Maintainer: Det <nimetonmaili gmail a-dot com>
# Contributor: Alucryd <alucryd at gmail dot com>
# Contributor: Jason Melton <jason dot melton at gmail dot com>
# Contributor: Youpi <max dot flocard at gmail dot com>
# Contributor: sl1pkn07 <sl1pkn07 at gmail dot com>
pkgname=nvidia-beta-dkms
pkgver=378.09
pkgrel=1
@aruhier
aruhier / gist:560531b33f2e8123f97d6f7def214d1d
Created February 2, 2017 13:51
Ansible handle ssk keys
- name: ssh - add authorized keys {{ playbook_dir }}
authorized_key: "
user='{{ ansible_env.USER }}'
key='{{ lookup('file', playbook_dir + '/files/ssh_public_keys/' + item) }}'
state=present
"
with_items: "{{ ssh_authorized_keys }}"
- name: ssh - add authorized keys {{ playbook_dir }}
authorized_key: "
@aruhier
aruhier / barython
Created May 31, 2016 12:29
bspwm, sxhkd and barython
#!/usr/bin/env python3
from barython import Panel, Screen
from barython.widgets.base import TextWidget, Widget
from barython.widgets.battery import BatteryWidget
from barython.widgets.clock import ClockWidget
from barython.widgets.audio import PulseAudioWidget
from barython.widgets.mpd import MPDWidget
from barython.widgets.xorg import ActiveWindowWidget
from barython.widgets.bspwm import BspwmDesktopWidget, BspwmDesktopPoolWidget
" All system-wide defaults are set in $VIMRUNTIME/archlinux.vim (usually just
" /usr/share/vim/vimfiles/archlinux.vim) and sourced by the call to :runtime
" you can find below. If you wish to change any of those settings, you should
" do it in this file (/etc/vimrc), since archlinux.vim will be overwritten
" everytime an upgrade of the vim packages is performed. It is recommended to
" make changes after sourcing archlinux.vim since it alters the value of the
" 'compatible' option.
set runtimepath=~/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.vim/after