Skip to content

Instantly share code, notes, and snippets.

@piroux
piroux / gist:0440601ad376f8b7fa7a187df6e8af0a
Created November 26, 2019 12:00
alpine-proj-community-bug
$ docker run -ti alpine:3.9 sh
/ # echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
/ # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
v3.9.4-227-g285bed6156 [http://dl-cdn.alpinelinux.org/alpine/v3.9/main]
v3.9.4-214-g3d7cbd0eda [http://dl-cdn.alpinelinux.org/alpine/v3.9/community]
v20191114-742-g11273ae5ae [http://dl-cdn.alpinelinux.org/alpine/edge/community]
OK: 15437 distinct packages available

OK with one line between a list and a code block

  • abcd
efgh
---
- xyz
 123
@piroux
piroux / model_mixins.py
Created December 5, 2018 11:05
NameMixin For SqlAlchemy
from sqlalchemy import inspect
def to_str(x, charset='utf8', errors='strict'):
if x is None or isinstance(x, str):
return x
if isinstance(x, unicode):
return x.encode(charset, errors)
return str(x)
@piroux
piroux / awx_task_20180608-100921Z.log
Created June 8, 2018 11:17
Logs for the issue during AWX initialization
2018-06-08T09:44:25.203865658Z Using /etc/ansible/ansible.cfg as config file
2018-06-08T09:44:25.924522979Z 127.0.0.1 | SUCCESS => {
2018-06-08T09:44:25.924550559Z "changed": false,
2018-06-08T09:44:25.924554135Z "elapsed": 0,
2018-06-08T09:44:25.924557026Z "path": null,
2018-06-08T09:44:25.924559897Z "port": 5432,
2018-06-08T09:44:25.924562551Z "search_regex": null,
2018-06-08T09:44:25.924565301Z "state": "started"
2018-06-08T09:44:25.924568201Z }
2018-06-08T09:44:26.233707860Z Using /etc/ansible/ansible.cfg as config file
#!/bin/bash
set -euxo pipefail
# Requirements:
# - python 2.7
# - virtualenv
# - Docker > CE-17.03/EE-1.13
# - Git > v2
# -*- mode: ruby -*-
# vi: set ft=ruby ts=2 sw=2 et :
ENV["LANG"] = "en_US.UTF-8"
ENV["LC_ALL"] = "en_US.UTF-8"
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
system("
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function FindProxyForURL(url, host) {
// access the CIMCs via the SSH-tunneled SOCKS proxy that is hopefully
// running on port 8181, but allow fallback if it's not running
if (isInNet(dnsResolve(host), "10.0.7.0", "255.255.255.0")) {
return "SOCKS localhost:8181; DIRECT";
}
// Everything else directly!
return "DIRECT";
}
[web]
browser = google-chrome
[user]
name = Pierre Roux
email = [email protected]
[color]
ui = auto
branch = auto
diff = auto
interactive = auto
target triple = "x86_64-none-linux-gnu"
declare i32 @printf(i8*, ...) nounwind
declare i32* @malloc(i32) nounwind
declare void @free(i32*) nounwind
@format_int_s = internal constant [3 x i8] c"%d\00"