Skip to content

Instantly share code, notes, and snippets.

View ams0's full-sized avatar
🏠
Working from home

Alessandro Vozza ams0

🏠
Working from home
View GitHub Profile
@ams0
ams0 / devops.meetup.amsterdam.list.1
Last active December 11, 2015 01:48
DevOps Meetup shopping list
Pre:
- clear agenda, presentation, beamer, display adapters
- road signs
- print tags
- reminder email on wednesday
During:
- bring pro cameras
@ams0
ams0 / working_ad_schema_10.8_2012
Created February 7, 2013 11:06
AD schema extensions, made from Windows 2012 and 10.8 Server
# ==================================================================
#
# This file should be imported with the following command:
# ldifde -i -u -f 10.8_xpappleguide.ldf -s server:port -b username domain password -j . -c "cn=Configuration,dc=X" #configurationNamingContext
# LDIFDE.EXE from AD/AM V1.0 or above must be used.
# This LDIF file should be imported into AD or AD/AM. It may not work for other directories.
#
# ==================================================================
# ==================================================================
@ams0
ams0 / win2008R2.xml
Created February 13, 2014 21:35
win2008R2.xml
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit win2008R2
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>win2008R2</name>
<uuid>6d9536ed-8e7c-70af-eecb-37383727e0ae</uuid>
This file has been truncated, but you can view the full file.
[DEBUG 2014-10-13 09:03:54 main] Loading hook /usr/share/foreman-installer/hooks/boot/10-add_options.rb
[DEBUG 2014-10-13 09:03:54 main] Loading hook /usr/share/foreman-installer/hooks/post/10-setup_provisioning.rb
[DEBUG 2014-10-13 09:03:54 main] Loading hook /usr/share/foreman-installer/hooks/pre_values/10-register_staypuft_modules.rb
[DEBUG 2014-10-13 09:03:54 main] Loading hook /usr/share/foreman-installer/hooks/pre_validations/10-gather_and_set_staypuft_values.rb
[ INFO 2014-10-13 09:03:54 main] Executing hooks in group boot
[DEBUG 2014-10-13 09:03:54 main] Hook /usr/share/foreman-installer/hooks/boot/10-add_options.rb returned #<Clamp::Option::Definition:0x7f5eee634aa8 @type="MODE", @description="Should the interactive wizard ask for provisioning information and prepare foreman to provision machines accordingly? Supported modes are: interactive, non-interactive, none", @default_value="interactive", @attribute_name="provisioning_wizard", @multivalued=nil, @switches=["--provisioning-wizard"]>
[ INFO 2014-
@ams0
ams0 / matcher.py
Created December 18, 2014 10:27
matcher.py
#
# Copyright (C) 2013 eNovance SAS <[email protected]>
#
# Author: Frederic Lepied <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@ams0
ams0 / gist:34bbb48311c481877ceb
Last active August 29, 2015 14:15
Install W2012 on kvm
<domain type='kvm' id='26'>
<name>windows</name>
<uuid>9acc18bc-e17f-9c71-bd1d-394d411a99f7</uuid>
<description>None</description>
<memory unit='KiB'>8388608</memory>
<currentMemory unit='KiB'>8388608</currentMemory>
<vcpu placement='static'>4</vcpu>
<resource>
<partition>/machine</partition>
</resource>

Keybase proof

I hereby claim:

  • I am ams0 on github.
  • I am avozza (https://keybase.io/avozza) on keybase.
  • I have a public key whose fingerprint is 7F41 08C6 5716 2C8B EF14 31F4 124A 6BE0 81F4 213A

To claim this, I am signing this object:

@ams0
ams0 / jail.local
Created May 16, 2016 20:16
fail2ban configuration
[DEFAULT]
bantime = 3600
[sshd]
enabled = true
[ssh-iptables]
enabled = true
filter = sshd
action = iptables[name=SSH, port=ssh, protocol=tcp]
logpath = /var/log/secure
maxretry = 5
@ams0
ams0 / bashrc
Last active September 3, 2016 22:11
bashrc
# /etc/bashrc
# System wide functions and aliases
# Environment stuff goes in /etc/profile
# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg