Skip to content

Instantly share code, notes, and snippets.


Marius Voila mariusv

View GitHub Profile
mariusv / remi_epel.yml
Last active Apr 9, 2021
Ansible playbook to enable EPEL + REMI repo. Tested on CentOS 6+ and RHEL 7
View remi_epel.yml
- hosts: all
sudo: yes
- name: Install EPEL repo.
name:{{ ansible_distribution_major_version }}.noarch.rpm
state: present

Keybase proof

I hereby claim:

  • I am mariusv on github.
  • I am mariusv ( on keybase.
  • I have a public key ASCqaSPOQVTDf0CrWWWHfGsE_nSVHBdJJ5pQpxPmuEtmcwo

To claim this, I am signing this object:

mariusv / kops-dns-controller-patch
Created Jul 4, 2019
Patch kops DNS controller to `--watch-ingress=true`
View kops-dns-controller-patch
Steps for the workaround:
Check the yaml of current deployment for the dns-controller. Here you will find the path to the --watch-ingress setting.
`kubectl get deployment -n kube-system dns-controller -o yaml`
Use the path and make a patch of the deployment. I think the path here will work for most.
```kubectl patch deployment -n kube-system dns-controller --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/command/1", "value":"--watch-ingress=true"}]'```

DevOps started out as "Agile Systems Administration". In 2008, Andrew Shafer did a talk called "Agile Infrastucture" addressing issues around involving more of the company in the same disciplines as programmers.

In 2009, Patrick Debois created "DevOpsDays" conference to help to bring it to light. However, it wouldn't begin to trend until about 2010, when people would begin to describe it as a standalone discipline.

Today, DevOps goes beyond just developers, systems administration and infrastructure, its about [dev, ops, agile, cloud, open source and business](

mariusv /
Created Nov 6, 2017 — forked from ngpestelos/
How to remove unused Docker containers and images
  1. Delete all containers

     $ docker ps -q -a | xargs docker rm

-q prints only the container IDs -a prints all containers

Notice that it uses xargs to issue a remove container command for each container ID

  1. Delete all untagged images
View wt-test
const request = require('request');
module.exports = function(context, callback) {
var url = '*';
var aux = {};
request(url, function (error, response, body) {
if (!error && response.statusCode == 200) {
var info = JSON.parse(body);
View flapjack.rb
# Sends events to Flapjack for notification routing. See
# This extension requires Flapjack >= 0.8.7 and Sensu >= 0.13.1
# In order for Flapjack to keep its entities up to date, it is necssary to set
# metric to "true" for each check that is using the flapjack handler extension.
# Here is an example of what the Sensu configuration for flapjack should
# look like, assuming your Flapjack's redis service is running on the
# same machine as the Sensu server:
# AUTHOR="Marius Voila (";
# Run as root (don't use sudo) with
# ./ ; tail -f /var/log/lampp-wizard.log
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
mariusv /
Last active Dec 14, 2015
Check if your server was compromised with the rootkit which leaves a backdoor on the system and gains the full root access to Linux-based servers.
if [ -f $lib64 ]; then
echo The server is compromised, $lib64 found please open a ticket so we can help you to fix it!!
exit 0
mariusv / fix.ps1
Created Feb 6, 2013
Disable 'Large Receive Offload' on the driver properties for all interfaces using the Citrix PV Ethernet driver
View fix.ps1
$root = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}'
$items = Get-ChildItem -Path Registry::$Root -Name
Foreach ($item in $items) {
if ($item -ne "Properties") {
$path = $root + "\" + $item
$DriverDesc = Get-ItemProperty -Path Registry::$path | Select-Object -expandproperty DriverDesc
if ($DriverDesc -eq "Citrix PV Ethernet Adapter") {
Set-ItemProperty -path Registry::$path -Name LROIPv4 -Value 0