Skip to content

Instantly share code, notes, and snippets.

View eagleusb's full-sized avatar
🪐
.

Leslie-Alexandre DENIS eagleusb

🪐
.
View GitHub Profile
@eagleusb
eagleusb / gist:c3b0a6584e4545fc512c2f492db7d601
Created November 22, 2016 12:47
Ansible template loop snippet
- name: Copying the templated jinja2 files
template:
src: {{item}}
dest: {{RUN_TIME}}/{{ item | regex_replace(role_path+'/templates','') | regex_replace('\.j2', '') }}
with_items:
- "{{ lookup('pipe','find {{role_path}}/templates -type f').split('\n') }}"
- name: create x template
template:
src: {{ item }}
@eagleusb
eagleusb / gist:2772a9ce3a51e6480479445a01b06eae
Created October 23, 2016 17:50 — forked from sshay77/gist:4b1f6616a7afabc1ce2a
google-search-url-parameters-query-string-
// ==UserScript==
// @name Google Search Better Privacy
// @description Delete unnecessary params and add useful params on Google Search.
// @version 0.0.4
// @include http://*.google.*/search*
// @include http://*.google.*/imgres*
// @include https://*.google.*/search*
// @include https://*.google.*/imgres*
// @exclude http://play.google.com/*
// @exclude http://mail.google.com/*
@eagleusb
eagleusb / hfsc-shape.sh
Created August 24, 2016 11:35 — forked from eqhmcow/hfsc-shape.sh
HFSC - linux traffic shaping's best kept secret
#!/bin/bash
# As the "bufferbloat" folks have recently re-discovered and/or more widely
# publicized, congestion avoidance algorithms (such as those found in TCP) do
# a great job of allowing network endpoints to negotiate transfer rates that
# maximize a link's bandwidth usage without unduly penalizing any particular
# stream. This allows bulk transfer streams to use the maximum available
# bandwidth without affecting the latency of non-bulk (e.g. interactive)
# streams.