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 | |
# Git KiCad library repos: | |
# | |
# The "install_prerequisites" step is the only "distro dependent" one. Could modify | |
# that step for other linux distros. | |
# This script requires "git". The package bzr-git is not up to the task. | |
# The first time you run with option --install-or-update that is the slowest, because | |
# git clone from github.com is slow. | |
# After that updates should run faster. |
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 | |
wget -q --mirror -p --html-extension -e robots=off --base=./ -k -P ./ http://<origin> | |
find ./<origin>/ -type f -print0 | xargs -0 sed -i 's/<origin>/<destination>/g' |
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
git clone --mirror https://<repo-to-mirror>.git | |
cd <repo-to-mirror>.git | |
git remote set-url --push gitlab <new path> | |
git fetch -q | |
git push -q --mirror gitlab |
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
----------------------------- | |
>> Tue, 06 Nov 2012 21:35:59 +0000 | |
S: * OK [CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=PLAIN COMPRESS=DEFLATE ENABLE ID LITERAL+ SASL-IR STARTTLS] hot-rain.com Archiveopteryx IMAP Server | |
C: 1 AUTHENTICATE CRAM-MD5 | |
S: + PGpOYk4welZCb04wYzRPU3BAaG90LXJhaW4uY29tPg== | |
C: [CRAM-MD5 Response] | |
S: 1 OK [CAPABILITY IMAP4rev1 ACL ANNOTATE-EXPERIMENT-1 BINARY CATENATE CHILDREN COMPRESS=DEFLATE CONDSTORE ENABLE ESEARCH I18NLEVEL=1 ID IDLE LIST-EXTENDED LITERAL+ MULTIAPPEND NAMESPACE RIGHTS=ekntx SORT SORT=DISPLAY STARTTLS UIDPLUS UNSELECT URLAUTH WITHIN] done | |
C: 2 LIST (SUBSCRIBED) "" ("*" "/users/*" "/*") RETURN (SUBSCRIBED) | |
S: * LIST (\hasnochildren \subscribed) "/" Archive | |
S: * LIST (\hasnochildren \subscribed) "/" Drafts |
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 php | |
<?php | |
$baseFile = __DIR__ . '/../lib/Application.php'; | |
if (file_exists($baseFile)) { | |
require_once $baseFile; | |
} | |
Horde_Registry::appInit(<app>, array('authentication' => false, 'cli' => true)); | |
$driver = $GLOBALS['injector']->getInstance('<app>_Factory_Driver')->create(); |
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 (arg(0) == 'node' && is_numeric(arg(1)) && is_null(arg(2))) { | |
$node = node_load(arg(1)); | |
if ($node->field_related_msds[0]['nid']) { | |
foreach ($node->field_related_msds as $msds_node_reference) { | |
$msds_node = node_load($msds_node_reference['nid']); | |
echo theme('filefield_file', $msds_node->field_msds[0]); | |
} | |
} else { | |
echo "none posted for this product."; |