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
# /etc/bashrc | |
# System wide functions and aliases | |
# Environment stuff goes in /etc/profile | |
# are we an interactive shell? | |
if [ "$PS1" ]; then | |
if [ -z "$PROMPT_COMMAND" ]; then | |
case $TERM in | |
xterm*) |
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
# Run memcached as a daemon. | |
-d | |
# pidfile | |
-P /var/run/memcached.pid | |
# Log memcached's output | |
logfile /var/log/memcached.log | |
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 MySQL database server configuration file. | |
# | |
[client] | |
port = 3306 | |
socket = /var/run/mysqld/mysqld.sock | |
[mysqld_safe] | |
socket = /var/run/mysqld/mysqld.sock | |
nice = 0 |
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
sub db_connect() { | |
our $dbh = DBI->connect("dbi:SQLite:" . $path . '/' . $db,"","") or die "Unable to connect to database: $DBI::errstr"; | |
return $dbh; | |
} | |
sub db_prepare($) { | |
my $dbh = db_connect(); | |
my $query = shift; | |
my $handle = $dbh->prepare($query); | |
return $handle; |
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 | |
/** | |
* Implements hook_menu() | |
*/ | |
function mymodule_menu() { | |
$items['comment/%/fastdelete/%'] = array( | |
'title' => 'Fast Comment Deletion', | |
'page callback' => 'mymodule_comment_fastdelete', | |
'page arguments' => array(1, 3), |
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 | |
function greentext_filter_info() { | |
$filters['greentext'] = array( | |
'title' => t('Implying greentext'), | |
'description' => t('Allows you to alter any lines input starting with \'>\' to appear as greentext.'), | |
'process callback' => '_greentext_greentext', | |
'tips callback' => '_greentext_greentext_tips', | |
); | |
return $filters; |
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
diff --git a/src/commands.c b/src/commands.c | |
index 411f944..7af604f 100644 | |
--- a/src/commands.c | |
+++ b/src/commands.c | |
@@ -480,6 +480,23 @@ void chat(char *buf, struct user_t *user) | |
logprintf(3, "OP Admin %s at %s added %s to nickban list\n", user->nick, user->hostname, tempstr); | |
} | |
} | |
+ | |
+ else if(((user->permissions & BAN_ALLOW) != 0) && (strncasecmp(temp, "!gag ", 5) == 0)) |
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 | |
$emails = array( | |
// fill in emails here or use array from somewhere else | |
); | |
foreach ($emails as $mail) { | |
$query = "SELECT 1 FROM {users} WHERE mail = :mail"; | |
$exists = db_query_range($query, 0, 1, array(':mail' => $mail))->fetchField(); |
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 | |
if [ -z "${1}" ] ; | |
then | |
echo 'Please enter the address the TTL should be found for' | |
exit 1 | |
fi | |
NS=`host -t NS $1 | awk {'print $4'}` | |
arr=$(echo $NS | tr " " "\n") | |
for x in $arr |
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/ruby | |
#require "net/http" | |
require "net/https" | |
require "uri" | |
require "socket" | |
require "yaml" | |
$redirects = Array.new |
OlderNewer