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/modules/node/node.module b/modules/node/node.module | |
index dbb1a65..a750cf9 100644 | |
--- a/modules/node/node.module | |
+++ b/modules/node/node.module | |
@@ -3634,7 +3634,7 @@ function node_access_rebuild($batch_mode = FALSE) { | |
} | |
else { | |
// Try to allocate enough time to rebuild node grants | |
- drupal_set_time_limit(240); | |
+ drupal_set_time_limit(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 | |
/** | |
* @file | |
* Drush code to rebuild node access. | |
*/ | |
/** | |
* Implementation of hook_drush_command(). | |
*/ |
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 | |
which dcs | |
# Output: | |
# dcs: aliased to phpcs --standard=Drupal,DrupalPractice --extensions='php,module,inc,install,test,profile,theme,js,css,info,txt' --ignore='*.features.*.inc' |
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 | |
/** | |
* @file | |
* Test fputcsv vs MySQL OUTFILE. | |
*/ | |
class Timer { | |
protected $last, $timers = array(), $length = 10; |
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
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) | |
biff = no | |
# 100M | |
message_size_limit = 102400000 | |
# appending .domain is the MUA's job. | |
append_dot_mydomain = no | |
readme_directory = no |
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
Generating initial config on /usr/local/bin/authy-ssh.conf... | |
Adding 'ForceCommand /usr/local/bin/authy-ssh login' to /etc/ssh/sshd_config | |
MAKE SURE YOU DO NOT MOVE/REMOVE /usr/local/bin/authy-ssh BEFORE UNINSTALLIN | |
G AUTHY SSH | |
To enable two-factor authentication on your account type the following command: | |
sudo /usr/local/bin/authy-ssh enable root <your-email> <your-numeric-country- | |
code> <your-cellphone> |
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
35 */3 * * * /bin/wget --no-check-certificate --user deekayen@example.com --password PasswordHere https://updates.dnsomatic.com/nic/update > /dev/null 2>&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/bash | |
ADMIN="help@example.com" | |
ALERT=95 | |
df -H | grep -vE '^Filesystem|tmpfs|cdrom|varrun|varlock|udev|devshm|boot' | awk '{ print $3 " " $4 " " $5 }' | while read output; | |
do | |
usep=$(echo $output | awk '{ print $2}' | cut -d'%' -f1 ) | |
partition=$(echo $output | awk '{ print $3 }' ) | |
free=$(echo $output | awk '{ print $1 }' ) | |
if [[ $usep -ge $ALERT ]]; then | |
echo "Running out of space $partition ($usep% used, $free avail) |
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/perl | |
$| = 1; | |
# ddos.pl 2012.06.29 | |
# by Jeff Taylor (Shdwdrgn) | |
#--- REQUIRED PERL LIBRARIES ---# | |
# Net::Pcap (debian: libnet-pcap-perl) | |
# IPTables::ChainMgr (debian: libiptables-chainmgr-perl) |
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
aws ec2 describe-instances --region us-west-2 --profile default --filters "Name=instance-type,Values=t2.micro,t2.small,*.medium,*large" "Name=instance-state-name,Values=running" --query Reservations[*].Instances[*].[InstanceId,PrivateIpAddress] --output text |