Skip to content

Instantly share code, notes, and snippets.

Searching for my Monkey Island II floppy disks


Searching for my Monkey Island II floppy disks
Block or report user

Report or block jpic

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
jpic / fearme.out
Created Feb 14, 2019
View fearme.out
14/02 2019 04:39:23 jpic@jpic ~/src/ansible-compose (master)
$ ansible-compose stop
Running ssh bash -euxc 'cd /home/jpic/bar; docker-compose stop'
+ cd /home/jpic/bar
+ docker-compose stop
jpic / ObsceneAnsible
Created Sep 29, 2018
Help displays without argument for the playlabs command
View ObsceneAnsible
29/09 2018 06:13:36 jpic@jpic ~/src/playlabs/playlabs/inventory_template (master)
$ playlabs
Playlabs: the obscene ansible distribution.
Init your ssh user with your key and secure sshd and passwordless sudo:
playlabs init root@
# all options are ansible options are proxied
playlabs init @somehost --ask-become-pass
jpic /
Created Aug 28, 2018
Import any python callback
Currently with django we can only import an attribute from a module, not a sub-attribute. For example
import_string('foo.models.YourModel') # works
import_string('foo.models.YourModel.objects.update_stats') # doesn't
This snippet fixes that, originally for django-call which has tests.
jpic /
Last active Aug 23, 2018
generic uwsgi spooler minimal wrapper poc, base of django-uwsgi-spooler (halted) and django-call (ongoing)
from importlib import import_module
import pickle
from uuid import uuid4
from uwsgi import SPOOL_OK
except ImportError:
class NameAdapter(StringAdapter):
# steps always executed in clean clone !
def validate(self):
if allcaps(
self.errors.append('omg poney')
def clean(self): =
jpic / drone.yml
Created Jan 5, 2018
setup drone with ansible
View drone.yml
- name: Create drone network
name: drone
- name: Drone server
name: drone-server
image: drone/drone:0.8.2
jpic / liremoi.rst
Last active Dec 9, 2017
Peut etre a opensourcer ?
View liremoi.rst

Ce répo contient les playbooks d'infra de MRS, normalement on a rien de compliqué: ssh, firewall, backups et dockerd + containers, et quelques ptits potes qu'on a invité à la fête.

Ce répo de playbooks est prévu pour être utilisé avec votre répo privé qui contient les variables de vos environnements.

Un environnement est configuré dans des fichiers comme:

  • group_vars/all/docker-vars.yml: variables publiques pour docker, etc
jpic / docker-dns-gen.yml
Created Dec 8, 2017
Install docker-dns-gen on Ubuntu artful
View docker-dns-gen.yml
- hosts: all
become: true
become_method: sudo
become_user: root
- name: Restart
notify: Restart dnsmasq
jpic / zabbix.yml
Created Dec 3, 2017
ansible docker zabbix dockbix, not maintained, pasted here for posterity
View zabbix.yml
- hosts: all
become: true
become_method: sudo
become_user: root
- name: Create zabbix network
You can’t perform that action at this time.