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/python | |
# -*- coding: utf-8 -*- | |
from time import * | |
lt = localtime() | |
config.fab_hosts = ['server.com'], | |
config.fab_host = 'server.com', | |
config.fab_user = 'user', | |
config.postgres_bin = '/usr/local/pgsql/bin', |
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/python | |
# -*- coding: utf-8 -*- | |
config.project = 'domain.de' # Name des Projektes | |
config.project_type = 'websites' # websites, intern, previews, user/username | |
config.svn_repos = '/server/svn/repos/online' # Pfad zu den Repositorys | |
config.svn_url = 'svn://server.admin/online' # SVN-URL | |
config.svn_passwd = '/server/svn/repos/online/passwd' # Pfad zur passwd | |
config.working_dir = '$HOME/Projekte/Kunden' # Pfad zum lokalen Arbeitsordner | |
config.fab_hosts = ['server.admin'] # Host |
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
<?php if ($this->hasError): ?> | |
<h3 class="error"><?php echo $this->getErrorAsString(); ?></h3> | |
<?php endif; ?> | |
<p> | |
<?php echo $this->generateLabel(); ?> | |
<?php echo $this->generate(); ?> | |
</p> |
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/python | |
import os | |
import os.path | |
from subprocess import call | |
if __name__ == "__main__": | |
apps_dir = os.path.abspath('.') | |
for app_name in os.listdir(apps_dir): | |
app_dir = os.path.abspath(os.path.join(apps_dir, app_name)) | |
git_path = os.path.join(app_dir, '.git') |
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/python | |
# -*- coding: utf-8 -*- | |
from fabric.api import env | |
env.hosts = ['host.com'] | |
env.user = 'user' # Can also be written in ~/.fabricrc (user = <username>) | |
env.server_path = '/home/user/django/apache2/bin' | |
env.project_path = '/home/user/django/project' | |
env.memcached_ip = 'IP' |
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 | |
mkdir $1.git | |
cd $1.git | |
git --bare init --shared | |
touch GITWEB_EXPORT_OK | |
touch git-daemon-export-ok | |
git --bare update-server-info | |
chmod a+x hooks/post-update |
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
mkdir -p ~/Library/Application\ Support/TextMate/Bundles | |
cd ~/Library/Application\ Support/TextMate/Bundles | |
svn co http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle/ | |
osascript -e 'tell app "TextMate" to reload bundles' |
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 | |
ME=your-username | |
DIR=/Users/$ME/Sites/$1 | |
if [ ! -d $DIR ] | |
then | |
sudo -u $ME mkdir $DIR | |
sudo -u $ME touch $DIR/index.php | |
echo "<h1>$1</h1>" >> $DIR/index.php | |
fi |
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/python | |
# -*- coding: utf-8 -*- | |
def fontsize(base_fontsize, target_fontsize, lineheight): | |
lineheight_px = base_fontsize * lineheight | |
target_lineheight = lineheight_px / target_fontsize | |
target_fontsize_em = 1.0 / base_fontsize * target_fontsize | |
target_lineheight = round(target_lineheight, 4) | |
target_fontsize_em = round(target_fontsize_em, 4) | |
return "###################\nfont-size: %sem\nline-height: %s\nmargin-bottom: %s\n###################" % (target_fontsize_em, target_lineheight, target_lineheight) |
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 | |
find . -name _vti_cnf -exec rm -rf {} \; | |
find . -name _borders -exec rm -rf {} \; | |
find . -name _private -exec rm -rf {} \; | |
find . -name _vti_pvt -exec rm -rf {} \; | |
find . -name _vti_txt -exec rm -rf {} \; | |
find . -name _vti_script -exec rm -rf {} \; | |
find . -name .DS_Store -exec rm -rf {} \; | |
find . -name WS_FTP.LOG -exec rm -rf {} \; |