This file contains hidden or 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 | |
| # make-bridge-for-libvirt.sh | |
| # | |
| # This scripts follows blindly the instructions from: | |
| # http://wiki.libvirt.org/page/Networking#Fedora.2FRHEL_Bridging | |
| # | |
| # It tries to copy the existing physical network config | |
| # to the bridge. It may not work if you have a non-trivial | |
| # network setup on ifcfg-eth0. | |
| # |
This file contains hidden or 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 | |
| # make-bridge-for-libvirt.sh | |
| # | |
| # This scripts follows blindly the instructions from: | |
| # http://wiki.libvirt.org/page/Networking#Fedora.2FRHEL_Bridging | |
| # | |
| # It tries to copy the existing physical network config | |
| # to the bridge. It may not work if you have a non-trivial | |
| # network setup on ifcfg-eth0. | |
| # |
This file contains hidden or 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
| . /mnt/common/sys/scripts/git-completion.bash | |
| export GIT_PS1_SHOWDIRTYSTATE=true | |
| export GIT_PS1_SHOWUNTRACKEDFILES=true | |
| _git_cur_branch() | |
| { | |
| __git_ps1 | |
| return |
This file contains hidden or 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
| [rerere] | |
| enabled = true | |
| [format] | |
| numbered = auto | |
| [sendemail] | |
| chainreplyto = 0 | |
| suppressfrom = 1 | |
| suppresscc = all |
This file contains hidden or 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
| #/usr/bin/env python | |
| # Game of Death | |
| # quick and dirty implemenation of http://spikedmath.com/299.html | |
| # Copyright (c) 2010 Eduardo Habkost <[email protected]> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # simple script to compare sets of flags on Qemu cpudef config files | |
| # Author: Eduardo Habkost <[email protected]> | |
| import sys | |
| import ConfigParser | |
| files = sys.argv[1:] | |
| setlists = [] |
This file contains hidden or 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
| relayhost = [smtp.gmail.com]:587 | |
| smtp_tls_policy_maps = hash:/etc/postfix/tls_policy | |
| smtp_tls_CAfile = /etc/pki/tls/cert.pem | |
| sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relayhost | |
| smtp_sasl_auth_enable = yes | |
| smtp_sasl_password_maps = hash:/etc/postfix/smtp_pass | |
| smtp_sasl_security_options = |
This file contains hidden or 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
| try: | |
| datetime.datetime(year+2000 if year < 1000 else year, month, day) | |
| print "%i-%i-%i" % (year+2000 if year < 1000 else year, month, day) | |
| except ValueError: | |
| try: | |
| datetime.datetime(year+2000 if year < 1000 else year, day, month) | |
| print "%i-%i-%i" % (year+2000 if year < 1000 else year, day, month) | |
| except ValueError: | |
| try: | |
| datetime.datetime(month+2000 if month < 1000 else month, day, year) |
This file contains hidden or 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
| #import <Foundation/Foundation.h> | |
| @interface NSDictionary (QueryStringBuilder) | |
| - (NSString *)queryString; | |
| @end |
This file contains hidden or 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
| int a; |
OlderNewer