This file contains hidden or 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 log($msg) | |
{ | |
//using the date() function | |
$time = date("F jS Y, h:iA"); | |
//$remote_addr is PHP variable to get ip address | |
$ip = $REMOTE_ADDR; | |
This file contains hidden or 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 ruby | |
# A script that will pretend to resize a number of images | |
require 'optparse' | |
# This hash will hold all of the options | |
# parsed from the command-line by | |
# OptionParser. | |
options = {} | |
optparse = OptionParser.new do|opts| |
This file contains hidden or 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
tell application "System Events" to set quitapps to name of every application process whose visible is true and name is not "Finder" | |
repeat with closeall in quitapps | |
quit application closeall | |
end repeat |
This file contains hidden or 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
iptables -A INPUT -p tcp -i eth0 -d 22.22.22.22 --dport 1935 -j REJECT | |
iptables -L | |
iptables -D INPUT 2 |
This file contains hidden or 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 | |
/** | |
* Initializes <code>$GLOBALS['TSFE']</code> the FE object to use in the backend | |
* | |
* @return void | |
*/ | |
function buildTSFE($pid = 1) { | |
//needed for TSFE | |
require_once(PATH_t3lib.'class.t3lib_timetrack.php'); |
This file contains hidden or 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
# Kill BPAccessd to be used in cron script | |
sudo kill -9 ` ps aux | grep BPAccessd | awk '{print $2}'` | |
ps aux | grep BPAccessd |
This file contains hidden or 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 ruby | |
# | |
# Copyright $Author: pim $ | |
# Last revision $Revision: 12506 $ | |
# Last date $Date: 2012-06-09 22:57:41 +0200 (Sat, 09 Jun 2012) $ | |
# CONFIGURE HERE | |
count=7010 # amount of password to generate |
This file contains hidden or 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
tx_dam.selections.txdamCat.sublevelDepth = 99 | |
tx_dam.selections.default.modeSelIcons = 1 |
This file contains hidden or 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
-- TODO fix make move to mailbox rule | |
-- TODO set condition | |
tell application "Mail" | |
set theseMessages to (get selection) | |
repeat with thisMessage in theseMessages | |
set theSender to sender of thisMessage | |
set SenderName to extract name from sender of thisMessage |
This file contains hidden or 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
options.pageTree.showPageIdWithTitle = 1 |