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
<item> | |
<title>Brinna</title> | |
<link>http://www.scouterna.se/aktiviteter-och-lager/scoutklader-och-marken/intressemarken/brinna/</link> | |
<pubDate>Wed, 21 Nov 2012 22:03:40 +0000</pubDate> | |
<dc:creator>pontus.lof</dc:creator> | |
<guid isPermaLink="false">http://scouterna.spacedout.se/?post_type=marke-intresse&p=15177</guid> | |
<description></description> | |
<content:encoded><![CDATA[<p class="content-preamble">Det här är en fortsättning på intressemärket Tända. Genom att jobba med Brinna lär du dig mer om elden och hur man kan använda den på ett bra sätt. Eld som kan användas till att laga mat på, skapa en mysig stämning eller ge värme.</p> | |
<h2>Innehåll</h2> |
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
.-"--"""".__ `. | |
| ` | | |
( `._....------.._.: | |
. ) ( <o> <o> g) | |
) ) / J | |
( |. / . ( | |
$$ (. (_'. , )|` | |
|| |\`-....--'/ ' \ | |
/||. \\ | | | / / \. | |
//||(\ \`-===-' ' \o. |
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 cutstr($str, $length, $ellipsis='') | |
{ | |
$cut=explode('\n\n',wordwrap($str),$length,'\n\n')); | |
return $cut[0].((strlen($cut)<strlen($str))?$ellipsis:''); | |
} | |
echo cutstr('hej hej, nu ska vi kolla på hur det blir här. kommer det här att bli bra? eller vad säger du ? ', 30,'...'); |
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
# Origin pull in nginx | |
upstream origin { | |
server host.domain.tld:80; | |
} | |
server { | |
listen 80; | |
root /var/www; | |
index index.html index.htm; |
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 | |
/** | |
* @package Cache Wrapper | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: Cache Wrapper | |
Version: 1.0 | |
*/ |
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
kers@blingamatic:~/scripts/sigtuna_cache_invalidate/AWS-CloudFront-Invalidator-master$ php invalidate.php E219B1SVKAUH77 /ds-eventcalendar-external | |
Making invalidation request... | |
Request completed successfully: | |
ID: I14HNEDA0HUK6P | |
Time: 2013-07-08T08:08:23.407Z | |
Status: InProgress | |
Getting status of the last invalidation requests... | |
I14HNEDA0HUK6P: InProgress | |
I2B7Z4QBGM9389: Completed |
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
[Dialer Defaults] | |
Init1 = ATH | |
Init2 = ATE1 | |
Init3 = AT+CGDCONT=1,"IP","online.telia.se","",0,0 | |
Dial Command = ATD | |
Modem Type = USB Modem | |
Baud = 460800 | |
New PPPD = yes | |
Modem = /dev/ttyUSB0 | |
ISDN = 0 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
christian@raspbx:~$ redis-benchmark -q -n 100000 | |
PING_INLINE: 2937.46 requests per second | |
PING_BULK: 2794.08 requests per second | |
SET: 2584.38 requests per second | |
GET: 2654.63 requests per second | |
INCR: 2532.42 requests per second | |
LPUSH: 2598.96 requests per second | |
LPOP: 2597.88 requests per second | |
SADD: 2635.74 requests per second | |
SPOP: 2800.02 requests per second |
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
error_reporting( E_ALL ); | |
ini_set( 'display_errors', 'On' ); | |
ini_set( 'display_startup_errors', 'On' ); | |
// error report routine based on code by pekka @ stackowerflow http://stackoverflow.com/a/3193084 | |
error_reporting( -1 ); | |
function terminate_missing_variables( $errno, $errstr, $errfile, $errline ) { | |
if ( ( $errno == E_NOTICE ) and ( strstr( $errstr, "Undefined variable" ) || strstr( $errstr, "Undefined property" ) || strstr( $errstr, "Undefined index" ) ) ) | |
die ( "\nFATAL: $errstr in $errfile line $errline \n" ); |