Skip to content

Instantly share code, notes, and snippets.

Guillaume Coré fridim

View GitHub Profile
View output.txt
PLAY [localhost] ******************************************************************************************************************************************************************************
TASK [set_fact] *******************************************************************************************************************************************************************************
ok: [localhost]
TASK [include_role : /tmp/testrole] ***********************************************************************************************************************************************************
TASK [/tmp/testrole : set_fact] ********************************
@fridim
fridim / mysshpassword.sh
Created Apr 20, 2018
write password even if it's a bad idea
View mysshpassword.sh
#!/usr/bin/expect
spawn ssh $argv
expect "password"
send "mypassword\n\r"
expect "$ "
interact
@fridim
fridim / i3-dmenu-desktop.patch
Last active Jun 18, 2017
add caching to i3-dmenu-desktop
View i3-dmenu-desktop.patch
--- /usr/bin/i3-dmenu-desktop 2016-11-12 13:32:44.000000000 +0100
+++ i3-dmenu-desktop 2017-06-18 02:31:25.736657222 +0200
@@ -7,7 +7,8 @@
use strict;
use warnings qw(FATAL utf8);
-use Data::Dumper;
+use Storable;
+#use Data::Dumper;
use IPC::Open2;
View block1_block2.diff
--- /tmp/2 2017-04-11 18:10:47.675418352 +0200
+++ /tmp/3 2017-04-11 18:10:58.305348455 +0200
@@ -4,7 +4,6 @@
- ^{{\s*(\w*)\s*}}$
- 32
_available_variables:
- _raw_params: ./block1.yml
ansible_accelerate_port: 5099
ansible_check_mode: false
ansible_connection: local
@fridim
fridim / block1.yml
Last active Apr 11, 2017
not working
View block1.yml
---
- block:
- name: first block
debug:
msg: "first block, first task"
listen: "first block"
when:
- test1
View blocks_in_handlers.yml
---
- name: conditionnal on blocks in handlers, false false
hosts: localhost
gather_facts: no
vars:
test1: false
test2: false
handlers:
- block:
- name: first block
View qr.sh
#!/usr/bin/bash
qrencode "$(xsel -p)" -o /tmp/qr.png
nohup feh /tmp/qr.png && rm /tmp/qr.png &
@fridim
fridim / get.html
Last active Dec 8, 2016
glod-web a webservice frontend to https://github.com/dwarvesf/glod
View get.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>download goodies!</title>
</head>
<body>
<h1>Extraction in progress ... <span id="ajaxcontent" ></span></h1>
View profile_tasks.py
import datetime
import os
import time
# Ansible 1.9 and 2.0 compatibility
try:
from ansible.plugins.callback import CallbackBase
parent_class = CallbackBase
except ImportError:
parent_class = object
@fridim
fridim / keybase.md
Created May 23, 2015
keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am fridim on github.
  • I am fridim (https://keybase.io/fridim) on keybase.
  • I have a public key whose fingerprint is D79D FF62 9E08 1E21 1181 A3C3 0A74 F4B1 A990 3389

To claim this, I am signing this object:

You can’t perform that action at this time.