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 | |
# Copyright 2004 Ben Reser <[email protected]> | |
# Licensed under the terms subversion ships under or GPLv2. | |
# Useful for greping in a subversion working copy. | |
# Essentially it behaves the same way your grep command does (in fact it | |
# ultimately calls the grep command on your path) with a few exceptions. | |
# Ignores the subversion admin directories (.svn) and vi(m) backup files. | |
# Recursive is always on with or without -r. |
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
-- On node writer: | |
-- --------------- | |
DROP TABLE test; | |
CREATE TABLE test ( | |
name VARCHAR(255) | |
); | |
set autocommit=0; | |
set transaction isolation level read committed; |
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/local/bin/perl -w | |
# This is a sample authentication module for authpipe. It uses the same | |
# protocol that pop3d/imapd/webmail use to communicate with authdaemon. | |
# | |
# If you want to indicate a temporary failure (e.g. database unavailable) | |
# then simply exit without sending any response. This will be indicated as | |
# a tempfail response, and a new child process will be started for the | |
# next authentication request, therefore ensuring that it is reinitialized. | |
# |
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
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/reset-fonts-grids.css" type="text/css" media="screen" /> | |
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> | |
gives me: | |
<link rel="stylesheet" href="http://www.lensflairphotography.co.za/wordpress/wp-content/themes/default/reset-fonts-grids.css" type="text/css" media="screen" /> | |
<link rel="stylesheet" href="http://www.lensflairphotography.co.za/wordpress/wp-content/themes/lensflair/style.css" type="text/css" media="screen" /> |
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 echo get_stylesheet_uri(); ?> --> | |
<!-- <?php echo get_template_directory_uri(); ?> --> | |
gives me: | |
<!-- http://www.lensflairphotography.co.za/wordpress/wp-content/themes/lensflair/style.css --> | |
<!-- http://www.lensflairphotography.co.za/wordpress/wp-content/themes/default --> |
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
[:user, :crypted_password, :uid, :gid, :homedir, :mail_dir, :options, :quota].each do |attribute| | |
eval %Q{ | |
def #{attribute.to_s} { | |
@attributes[#{attribute}] | |
} | |
} | |
end | |
SyntaxError: (eval):4:in `irb_binding': compile error | |
(eval):2: syntax error, unexpected '{', expecting '\n' or ';' |
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
the problem: | |
============ | |
postmap -q [email protected] hash:/etc/postfix/virtual | |
[email protected] | |
sendmail -bv [email protected] | |
# probe email says <[email protected]>: User unknown in virtual alias table | |
/etc/postfix/main.cf: |
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
javascript:var%20b=document.body;var%20GR________bookmarklet_domain='http://www.google.com';if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.src='http://www.google.com/reader/ui/subscribe-bookmarklet.js');void(b.appendChild(z));}else{location='http://www.google.com/reader/view/feed/'+encodeURIComponent(location.href)} |
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
set logfile syslog facility log_daemon | |
check process sshd with pidfile "/var/run/sshd.pid" | |
start = "/etc/init.d/ssh start" | |
stop = "/etc/init.d/ssh stop" | |
if failed port 22 and protocol ssh then restart | |
check process postfix with pidfile /var/spool/postfix/pid/master.pid | |
group mail | |
start program = "/etc/init.d/postfix start" |
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
Index: files/usr/local/bin/concatsnippets.sh | |
=================================================================== | |
--- files/usr/local/bin/concatsnippets.sh (revision 1191) | |
+++ files/usr/local/bin/concatsnippets.sh (working copy) | |
@@ -84,8 +84,14 @@ | |
cd ${WORKDIR} | |
# find all the files in the snippets directory, sort them numerically and concat to snippets.concat in the working dir | |
-/usr/bin/find snippets/ -type f -print0 |/usr/bin/sort ${SORTARG}|/usr/bin/xargs -0 /bin/cat >|"snippets.concat" | |
+rm -f snippets.concat |