Skip to content

Instantly share code, notes, and snippets.

View Lowess's full-sized avatar
💭
👑🥕

Florian Dambrine Lowess

💭
👑🥕
View GitHub Profile
@Lowess
Lowess / ansible-issue-14426-debug-log.log
Last active April 4, 2016 11:07
Debug output related to the Ansible issue #14426. Running Ansible 2.0.1.0
root@ip-w-x-y-z:/opt/ops/ansible# ANSIBLE_DEBUG=y ansible-playbook test.yaml -t configure -l <EC2_ID> -vvvvv
1039 1459767500.53173: starting run
Using /etc/ansible/ansible.cfg as config file
1039 1459767517.21890: in VariableManager get_vars()
1039 1459767517.23086: done with get_vars()
1039 1459767517.23098: in VariableManager get_vars()
1039 1459767517.23495: done with get_vars()
1039 1459767517.25708: in VariableManager get_vars()
1039 1459767517.26139: done with get_vars()
1039 1459767517.26150: in VariableManager get_vars()
@Lowess
Lowess / 0-ansible-issue-13278-cmd.log
Last active April 5, 2016 06:42
Debug output related to the Ansible issue #13278. Running Ansible 2.0.1.0 against Ubuntu 14.04 Ec2 server. When Ansible initiate the first shell command it fails with the timeout error, when the command runs for a second time it just works.
ANSIBLE_DEBUG=y ansible <EC2_ID> -s -m shell -a '/bin/true' -vvvvv

📂 repo_root/

📄 Jenkinsfile (has no file extension, references tasks in xx_BUILD_STEP folders below)

📂 01_BUILD/
    📄  _build.sh
        Dockerfile.build
    (optional - add more files for BUILD stage here)

📂 02_UNIT_TESTS/

@Lowess
Lowess / gist:f592618f52110a29019acf85acc1bcd9
Created May 16, 2017 14:30 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@Lowess
Lowess / 0_module_ec2_sg_main.tf
Last active September 25, 2017 21:35
Terraform with count
resource "aws_security_group" "sg" {
vpc_id = "${var.vpc}"
name = "${var.name}"
description = "${var.description}"
tags = "${merge(var.tags, map("Name", format("%s", var.name)))}"
}
resource "aws_security_group_rule" "sg_rule_sg_ids" {
count = "${length(var.inbound_sources) * (var.add_rules ? 1 : 0)}"
type = "${var.type}"

Kafka 0.11.0.0 (Confluent 3.3.0) added support to manipulate offsets for a consumer group via cli kafka-consumer-groups command.

  1. List the topics to which the group is subscribed
kafka-consumer-groups --bootstrap-server <kafkahost:port> --group <group_id> --describe

Note the values under "CURRENT-OFFSET" and "LOG-END-OFFSET". "CURRENT-OFFSET" is the offset where this consumer group is currently at in each of the partitions.

  1. Reset the consumer offset for a topic (preview)
@Lowess
Lowess / au20.ini
Created January 10, 2019 17:38 — forked from Baael/au20.ini
alfawise u20 for Cura 15.04 profile
[profile]
layer_height = 0.2
wall_thickness = 1.2
retraction_enable = True
solid_layer_thickness = 1.2
fill_density = 20
print_speed = 50
print_temperature = 210
print_temperature2 = 0
print_temperature3 = 0
@Lowess
Lowess / Systemd-Raspberry-Chromium
Created March 28, 2019 21:51
Unit file for Raspberry Chromium at boot on Raspbian 9.x
[Unit]
Description=launch chromium
[Service]
User=pi
Environment=DISPLAY=:0
ExecStart=/usr/bin/chromium-browser --kiosk --disable-session-crashed-bubble 127.0.0.1
[Install]
WantedBy=user@.service
@Lowess
Lowess / prepare-commit-msg.output
Last active March 4, 2020 10:50 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name
(MLE-297-Fix-naming-for-prometheus) $ ./prepare-commit-msg.sh 'Fix featureA in controller'
[MLE-297] Fix featureA in controller

Keybase proof

I hereby claim:

  • I am lowess on github.
  • I am lowess (https://keybase.io/lowess) on keybase.
  • I have a public key ASC-gBD_TaZM1Pa5crVba7Tr2mgoVdj8sAoaRci3NukWfgo

To claim this, I am signing this object: