You are going to install some things. Login in root or use sudo for most of the followings commands.
su -
First you need git.
yum install git
<?php | |
class Test { | |
public function test() { | |
return "abcd1234"; | |
} | |
} |
#!/bin/bash | |
REPEAT=20 | |
TIMER=0 | |
function fetchTimer { | |
URL=$1 | |
CURRENT_TIME=`curl --compressed -w '%{time_total}' -o /dev/null -s $URL`; | |
TIMER=`echo "$CURRENT_TIME + $TIMER" | bc` |
<?xml version='1.0' encoding='UTF-8'?> | |
<accounts type='array'> | |
<account> | |
<id>44283</id> | |
<name></name> | |
<event-feed-uri>/events.rss</event-feed-uri> | |
<applications type='array'> | |
<application> | |
<id type='integer'>156463</id> | |
<name>NetworldAlliance</name> |
May 30 08:55:13.470 [12381] dbg: logger: adding facilities: all, bayes, learn, dns | |
May 30 08:55:13.470 [12381] dbg: logger: logging level is DBG | |
May 30 08:55:13.470 [12381] dbg: generic: SpamAssassin version 3.3.2 | |
May 30 08:55:13.470 [12381] dbg: generic: Perl 5.010001, PREFIX=/usr/local, DEF_RULES_DIR=/usr/local/share/spamassassin, LOCAL_RULES_DIR=/etc/mail/spamassassin, LOCAL_STATE_DIR=/var/lib/spamassassin | |
May 30 08:55:13.470 [12381] dbg: config: timing enabled | |
May 30 08:55:13.471 [12381] dbg: config: score set 0 chosen. | |
May 30 08:55:13.474 [12381] dbg: util: running in taint mode? yes | |
May 30 08:55:13.474 [12381] dbg: util: taint mode: deleting unsafe environment variables, resetting PATH | |
May 30 08:55:13.474 [12381] dbg: util: PATH included '/home/glens/bin', keeping | |
May 30 08:55:13.474 [12381] dbg: util: PATH included '/usr/local/bin', keeping |
#!/usr/bin/perl | |
# Allows the user to take the result of a series of SQL queries | |
# and place them in Google docs, so that data can be easily shared | |
# Author: Glen Solsberry <http://dp.cx/blog> | |
# Copyright: Public Domain | |
use warnings; | |
use strict; |
0.0.0.0 twitter.com | |
0.0.0.0 mail.google.com | |
0.0.0.0 facebook.com | |
0.0.0.0 www.facebook.com | |
0.0.0.0 nytimes.com | |
0.0.0.0 www.nytimes.com | |
0.0.0.0 news.ycombinator.com | |
0.0.0.0 stellar.io | |
0.0.0.0 www.stellar.io |
You are going to install some things. Login in root or use sudo for most of the followings commands.
su -
First you need git.
yum install git
tell application "Calendar" | |
tell calendar "Calendar" | |
set theStartDate to ((current date) - 1 * days) | |
set time of theStartDate to 1 * hours | |
set theEndDate to (current date) | |
set time of theEndDate to 1 * hours | |
set theEventListString to "" | |
set theEventList to every event where start date > theStartDate and end date < theEndDate |
19 8 * * * exec /usr/bin/osascript "calendar_logger.scpt" | grep -v "^$" | sort -k4 -k3 -k6 -k5 | /usr/local/bin/dayone -d="yesterday" new |
$app->hook('slim.before', function() use ($app){ | |
$authenticated = $app->request()->headers('X-API-KEY') == API_KEY; | |
if(! $authenticated) { | |
throw new ApiException('Authentication failed'); | |
} | |
}); |