This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
fixup = "!f(){ git reset --soft HEAD~${1-1} && git commit --amend -C HEAD; };f" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package exemple | |
import ( | |
"fmt" | |
"github.com/hashicorp/terraform/helper/schema" | |
) | |
func resourcePartial() *schema.Resource { | |
return &schema.Resource{ | |
Create: resourcePartialCreate, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
printf "[Match]\nDriver=*802.1Q*\nDriver=*802.1Q*\nNamePolicy=kernel\n" > /etc/systemd/network/05-vlan.link | |
for if in $(udevadm info -e | grep ^P.*\/pci.*\/net\/ | rev | cut -d'/' -f1 | rev) ; do | |
mac=$(ip link show ${if} | grep ether | awk '{print $2}') | |
printf "[Match]\nMACAddress=${mac}\n\n[Link]\nMACAddressPolicy=persistent\nName=${if}\n" > /etc/systemd/network/15-${if}.link | |
done |