Skip to content

Instantly share code, notes, and snippets.

💭
(✖╭╮✖)

įoнииγ įoнииγ retr0h

  • Los Angeles, CA
Block or report user

Report or block retr0h

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 keybase.md

Keybase proof

I hereby claim:

  • I am retr0h on github.
  • I am retr0h (https://keybase.io/retr0h) on keybase.
  • I have a public key whose fingerprint is 6D96 1F4A 1864 CE9C 5ED9 D99B D312 9167 EFCA 1072

To claim this, I am signing this object:

View gist:84d4bb5063aa258cbb6e2936f9663c25
bindkey -M vicmd "k" history-search-backward
bindkey -M vicmd "j" history-search-forward
bindkey -M vicmd "?" history-incremental-search-backward
bindkey -M vicmd "/" history-incremental-search-forward
bindkey -M isearch "k" history-search-backward
bindkey -M isearch "j" history-search-forward
View gist:4a9e45e9cd1058c9047d4b5a634704c8
[xxx@mcp1 ~]$ ip addr a
Not enough information: "dev" argument is required.
[metacloud@mcp1 ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP qlen 1000
link/ether de:56:82:80:aa:37 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP qlen 1000
View gist:08008d5656ffa56a85d83897722aa1a3
[jodewey:~/git/molecule_2/test/scenarios/driver/docker] [molecule2-env-2.7.13] master(+4/-0)+ ± git diff
diff --git a/test/scenarios/driver/docker/molecule/default/tests/test_default.py b/test/scenarios/driver/docker/molecule/default/tests/test_default.py
index 5143d9b..6b77b07 100644
--- a/test/scenarios/driver/docker/molecule/default/tests/test_default.py
+++ b/test/scenarios/driver/docker/molecule/default/tests/test_default.py
@@ -26,3 +26,7 @@ def test_etc_molecule_ansible_hostname_file(host):
assert f.user == 'root'
assert f.group == 'root'
assert f.mode == 0o644
+
View gist:21101944a98106ef12c31c559c9d1b29
#!/usr/bin/env python
import os
import ansible.constants
import ansible.inventory
import ansible.playbook
import ansible.plugins.callback
import ansible.parsing.dataloader
import ansible.utils.vars
View gist:14abdaf70b1a3eab979bd72c283ba863
import json
import ansible
import ansible.cli
import ansible.cli.playbook
import ansible.executor.task_queue_manager
import ansible.inventory
import ansible.parsing.dataloader
import ansible.playbook.play
import ansible.plugins.callback
View gist:125e85f5ebdf4f21e214af613374fbfa
def osclient(cmd,
auth_url=None,
auth_host=None,
auth_host_scheme='http',
username='admin',
user_domain_name='Default',
password='admin',
project='admin',
project_domain_name='Default',
domain_name=None,
View Dockerfile
FROM alpine:latest
ARG SOME_SECRET_SHIZ
RUN echo $SOME_SECRET_SHIZ > /tmp/secret
# Do something
RUN rm -f /tmp/secret
View gist:6a2a4faf54dfa6f3268e9ba8c84e56a2
[jodewey:~/git/molecule_2/test/scenarios/driver/openstack] [molecule2-env-2.7.13] openstack+ ± molecule list
Instance Name Driver Name Provisioner Name Scenario Name Created Converged
--------------------- ------------- ------------------ --------------- --------- -----------
instance-1-default Openstack Ansible default False False
instance-1-multi-node Openstack Ansible multi-node False False
instance-2-multi-node Openstack Ansible multi-node False False
@retr0h
retr0h / foo.py
Last active Apr 29, 2017
Logger Module
View foo.py
import logging
import os
import sys
import colorama
import sh
colorama.init(autoreset=True)
SUCCESS = 100
You can’t perform that action at this time.