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 | |
case $# in | |
0) | |
echo "Usage: $0 {start|stop}" | |
exit 1 | |
;; | |
1) | |
case $1 in | |
start) |
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
https://www.domstol.se/Aktenskapsforord/ | |
https://www.domstol.se/Avgöranden/2010-12-27%20T%204728-08%20Dom,%20skiljaktighet.pdf | |
https://www.domstol.se/Bildbank/Grafiska%20objekt/forvaltningsratterna_091019._pdf | |
https://www.domstol.se/Bildbank/Grafiska%20objekt/forvaltningsratterna_091019_.pdf | |
https://www.domstol.se/Bildbank/Hovratt/brottmal.jpg | |
https://www.domstol.se/Bildbank/Hovratt/brottmal2.jpg | |
https://www.domstol.se/Bildbank/Logotyper/sd_color_left.gif | |
https://www.domstol.se/Bildbank/Pressrum/highres/Lars-Erik%20Bergström.jpg | |
https://www.domstol.se/Bildbank/Pressrum/highres/Nils%20Petter%20Ekdahl_02.jpg | |
https://www.domstol.se/Bildbank/Pressrum/highres/Stefan%20Reimer2.jpg |
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
Copy the code below and paste it on to every page of your website. | |
Paste this code as high in the <head> of the page as possible: | |
<!-- Google Tag Manager --> | |
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
})(window,document,'script','dataLayer','GTM-NKDMZKH');</script> | |
<!-- End Google Tag Manager --> |
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
[{ | |
"@context": "http://schema.org", | |
"@type": "LocalBusiness", | |
"@id": "http://www.compricer.se", | |
"sameAs": "https://se.trustpilot.com/review/www.compricer.se", | |
"image": "https://s3-eu-west-1.amazonaws.com/tpd/screenshots/4be144e5000064000507c7f2/198x149.png", | |
"name": "Compricer", | |
"priceRange": "$", | |
"email": "info@compricer.se", | |
"telephone": "08-58612270", |
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
<!DOCTYPE html> | |
<!-- PageVariantID: eR4KRMHGf1YAAAFaatcdWKNn --> | |
<html> | |
<!-- refreshed Fri Oct 19 14:49:08 CEST 2018 --> | |
<head> | |
<link href="/INTERSHOP/static/WFS/Stadium-SwedenB2C-Site/-/-/sv_SE/css/compressed/combined.compressed.css?lastModified=1539769820000" rel="preload" as="style" /><link href="/INTERSHOP/static/WFS/Stadium-SwedenB2C-Site/-/-/sv_SE/css/compressed/combined.compressed2.css?lastModified=1539769821000" rel="preload" as="style" /><link href="/INTERSHOP/static/WFS/Stadium-SwedenB2C-Site/-/-/sv_SE/css/compressed/combined.compressed3.css?lastModified=1539769821000" rel="preload" as="style" /><link href="/INTERSHOP/static/WFS/Stadium-SwedenB2C-Site/-/-/sv_SE/css/compressed/combined.compressed4.css?lastModified=1539769821000" rel="preload" as="style" /> | |
<link rel="preload" href="/INTERSHOP/static/WFS/Stadium-SwedenB2C-Site/-/-/sv_SE/fonts/StadiumSans-Numbers.woff" as="font" crossorigin="anonymous"> | |
<link rel="preload" href="/INTERSHOP/static/WFS/Stadium-SwedenB2C-Site/-/-/sv_SE/fonts/StadiumSansW0 |
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 $download=json_decode(wp_remote_retrieve_body(wp_remote_get('http://www.reddit.com/r/Wordpress/comments/1a23de/reddit_comments/.json'))); | |
foreach ($download as $comments){ | |
?><ul><?php | |
foreach ($comments->data->children as $comment){ | |
if($comment->data->body != null){ | |
?><li><a href="http://www.reddit.com/user/<?php echo($comment->data->author)?>" target="_blank"> | |
<?php echo html_entity_decode($comment->data->author); ?></a><br /><?php | |
echo html_entity_decode($comment->data->body); ?></li><br /><br /><ul><?php | |
foreach($comment->data->replies->data->children as $reply){ | |
?><li><a href="http://www.reddit.com/user/<?php echo($reply->data->author)?>" target="_blank"> |
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
# 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 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" ); |
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
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 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 |
NewerOlder