This is how we pulled off our amazing 404 page.
A Pen by nclud team on CodePen.
| # <SRCUSER> <SRCPW> <DSTUSER> <DSTPW> |
| const express = require("express"); | |
| require("actions-on-google") | |
| // require('dotenv').config(); | |
| const axios = require('axios'); | |
| const { WebhookClient } = require("dialogflow-fulfillment"); | |
| const app = express(); | |
| app.post("/dialogflow", express.json(), (req, res) => { | |
| const agent = new WebhookClient({ request: req, response: res }); | |
| let intentMap = new Map(); | |
| intentMap.set("Default Welcome Intent", welcome); |
This is how we pulled off our amazing 404 page.
A Pen by nclud team on CodePen.
| curl -D cookie1.txt blog.xrmplatform.org/wp-login.php | |
| # step 1 | |
| # get default cookie of blog and write cookie to cookie1.txt | |
| # step 2 | |
| # simulate browser Firefox( of course , you can use any browser agent<!--more--> what you want!) "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" | |
| # input your username and also password | |
| # write new cookie to cookie2.txt | |
| curl -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" -D cookie2.txt -b cookie1.txt -F log=username -F pwd=password -F testcookie=1 -F wp-submit="Log In" -F redirect_to=blog.xrmplatform.org/wp-admin -F submit=login -F rememberme=forever blog.xrmplatform.org/wp-login.php | |
| # currently cookie2.txt stored all cookie info |
| <!html> | |
| <html> | |
| <head> | |
| <title>Test Player</title> | |
| </head> | |
| <body> | |
| <audio controls="controls"> | |
| <source src="http://shout1.phoncert.softgrouphosting.net:8096/source" type="audio/mp3" /> | |
| Your browser does not support the audio tag. | |
| </audio> |
| #! /bin/bash | |
| VBR="1500k" | |
| FPS="30" | |
| QUAL="veryfast" | |
| YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" | |
| KEY="" | |
| VIDEO_SOURCE="/home/ubuntu/video3.mp4" |
| <img csrc="https://facebook.com/some-url.jpg" | |
| alt="Image may contain: golf, grass, outdoor and nature" | |
| width="316" height="237"> |
| #Wymuszenie adresu bez prefiksu www: | |
| RewriteEngine on | |
| RewriteCond %{HTTP_HOST} ^www\.twojastrona\.pl [NC] | |
| RewriteRule ^(.*)$ http://twojastrona.pl/$1 [L,R=301] |
| #Wymuszenie adresu z prefiksem www: | |
| RewriteEngine on | |
| RewriteCond %{HTTP_HOST} ^twojastrona.pl [NC] | |
| RewriteRule ^(.*)$ http://www.twojastrona.pl/$1 [L,R=301,NC] |
| define('WP_DEBUG',true); |