Skip to content

Instantly share code, notes, and snippets.

Anthony Ruhier aruhier

Block or report user

Report or block aruhier

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View laptop.py
#!/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 Oct 14, 2017
Selfoss configuration
View config.ini
[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 Sep 4, 2017
Molecule PKGBUILD
View MANIFEST.in
recursive-include molecule/cookiecutter *
View merge_sort.py
#!/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)]
View gist:560531b33f2e8123f97d6f7def214d1d
- 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 / PKGBUILD
Created Jan 21, 2017
nvidia-beta-dkms 378.09
View PKGBUILD
# 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 / barython
Created May 31, 2016
bspwm, sxhkd and barython
View 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
View gist:8aebe9d5c1c4f0c378f2b8dab1628a95
" 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
View gist:390cbc4d88781a43b0b1fe9a8e1332ae
" 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
@aruhier
aruhier / .vimrc
Created Feb 22, 2016
dotfiles "light" version
View .vimrc
" 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
You can’t perform that action at this time.