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
`date +"%F-%H%M%S"` |
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/sh | |
MOUNT="false" | |
ISOHDPFX="M+2QkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJAz7fqO1bwAfPv8ZjHbZjHJZlNmUQZXjt2O\nxVK+AHy/AAa5AAHzpepLBgAAUrRBu6pVMckw9vnNE3IWgftVqnUQg+EBdAtmxwbxBrRC6xXrAFpR\ntAjNE4PhP1tRD7bGQFD34VNSULsAfLkEAGahsAfoRAAPgoAAZkCAxwLi8maBPkB8+8B4cHUJ+rzs\ne+pEfAAA6IMAaXNvbGludXguYmluIG1pc3Npbmcgb3IgY29ycnVwdC4NCmZgZjHSZgMG+HtmExb8\ne2ZSZlAGU2oBahCJ5mb3Nuh7wOQGiOGIxZL2Nu57iMYI4UG4AQKKFvJ7zRONZBBmYcPoHgBPcGVy\nYXRpbmcgc3lzdGVtIGxvYWQgZXJyb3IuDQperLQOij5iBLMHzRA8CnXxzRj06/0AAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" | |
help(){ | |
echo "usage: `basename $0` -i <input iso> -o <output iso> [-m]" | |
echo "" | |
echo "Recreate a 'dd able' iso from an existing iso:" | |
echo "" |
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/sh | |
print_progress_bar(){ | |
percent=$1 | |
width=$2 | |
width=$(( ${width} - 10 )) | |
barlen=$(( ${width} * ${percent} / 100 )) | |
voidlen=$(( ${width} - ${barlen} )) | |
bar=`printf %${barlen}s |tr " " "="` | |
void=`printf %${voidlen}s` |
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/sh | |
# Released under MIT License | |
RCol='\33[0m' # Text Reset | |
# Regular Bold Underline High Intensity BoldHigh Intens Background High Intensity Backgrounds | |
Bla='\33[0;30m'; BBla='\33[1;30m'; UBla='\33[4;30m'; IBla='\33[0;90m'; BIBla='\33[1;90m'; On_Bla='\33[40m'; On_IBla='\33[0;100m'; | |
Red='\33[0;31m'; BRed='\33[1;31m'; URed='\33[4;31m'; IRed='\33[0;91m'; BIRed='\33[1;91m'; On_Red='\33[41m'; On_IRed='\33[0;101m'; | |
Gre='\33[0;32m'; BGre='\33[1;32m'; UGre='\33[4;32m'; IGre='\33[0;92m'; BIGre='\33[1;92m'; On_Gre='\33[42m'; On_IGre='\33[0;102m'; |
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
require 'puppet/parser/functions' | |
module Puppet::Parser::Functions | |
newfunction(:pw_hash, :type => :rvalue, :doc => "Returns the hash of a password." | |
) do |args| | |
raise Puppet::ParseError, "pw_hash takes exactly two arguments," + | |
"#{args.length} provided" if args.length != 2 | |
pwd = args[0] | |
slt = args[1] |
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/sh | |
# listening interface for RARPD | |
IF=eth0 | |
# Base Network (this script is limited to D class networks) | |
NET=192.168.100. | |
# TFTP/RARPD server IP | |
SRV_IP=192.168.100.100 | |
# ethers file |
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
#!/usr/bin/env python | |
from samba.samdb import SamDB | |
from samba.auth import system_session | |
from samba import param | |
import ldb | |
from ldb import Dn | |
class SamDBOverride(SamDB): | |
"""The SAM database.""" |
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
<VirtualHost *:80> | |
ServerName git.example.fr | |
DocumentRoot /var/www/git/ | |
<Directory "/var/www/git/repo/"> | |
Allow from All | |
Options +ExecCGI | |
AllowOverride All | |
</Directory> |
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
<VirtualHost *:80> | |
DocumentRoot /var/www/trac | |
ServerName trac.example.fr | |
SetEnv TRAC_ENV /var/www/trac | |
WSGIScriptAlias / /var/www/trac/apache/trac.wsgi | |
<Directory /var/www/trac/apache/> | |
WSGIApplicationGroup %{GLOBAL} | |
Order deny,allow |
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/sh | |
MIRROR="rsync://mirror.yandex.ru/mirrors/jenkins/plugins/" | |
OUT="./" | |
help(){ | |
cat <<EOF | |
usage: `basename $0` [-o <out>] [-m <mirror>] | |
Recover only the latest version of all the jenkins plugins |
OlderNewer