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
"servicePrincipalProfile": {
"servicePrincipalClientID": "53abb787-f188-44a2-bacf-15bdaf7e9a9c",
"servicePrincipalClientKeyvaultSecretRef": "/subscriptions/12c7e9d6-967e-40c8-8b3e-4659a4ada3ef/resourceGroups/keyvault/providers/Microsoft.KeyVault/vaults/acsvault/secrets/acssp"
}
#cloud-config
# include one or more SSH public keys
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC19QwAQepPeGkpGSUP/dvutPxl/EX+gflzqulY4Y7sonlQj+lydb14SElNDMDHRmheV8muHu3Mj7+WSDl1xARBg8HHw7exhDF7mgP7i79dM+cOhNwaJiSc+ECnc5i0qGQryASA30/4d9Ma4D/JL4N/Ay74Nlq3ktUW80TTwCByhP0uUIAqg/FKD37Qs4HteeqjlZ/a9Anlnc294odVx9JZJgeDIPB5OFnp0XUyTEMxKXjbzZ10FF5oZH8dlNN5baR6SbzpXv4WhHUIyZyMXplu9hMB6RnPhYyBy89q7Kc4gXdUzAVGHNMCW4/K95N5pExUTFqa38D2V16qJR/UjXdF [email protected]
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
@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.
@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

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 / 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>
@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
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 / 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>