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
1. Enable 'LoadModule vhost_alias_module modules/mod_vhost_alias.so' within http.conf | |
2. Add the following to /extras/httpd-vhosts.conf | |
<VirtualHost *:80> | |
UseCanonicalName Off | |
VirtualDocumentRoot "C:/__HTDOCS/%0" | |
LogFormat "%h $v %V %f %t \"%r\" %>s %b" common | |
CustomLog logs/404_logging.log combined | |
</VirtualHost> |
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
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl'); |
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><html id="b"><head></head><body><textarea id="t"></textarea><script>t.value='<!DOCTYPE html>'+b.outerHTML;</script></body></html> |
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 | |
error_reporting(0); | |
function search($lines,$text,$after){ | |
$textLines = explode("\n", $lines); |
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
cls | |
$path = "C:\Weka-3-6\data\" | |
$output = "C:\Weka-3-6\dwm_output\" | |
$files = get-childitem $path | |
Add-Content $output"console_log.txt" "STARTING NEW OUTPUT =-------------------------------- "; | |
#Loop though all the files of directory | |
foreach ($file in $files) { |
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
ssh -D 1337 -C -q -N user@remote -p 22 |
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
Resource: | |
https://support.rackspace.com/how-to/install-epel-and-additional-repositories-on-centos-and-red-hat/ | |
#Step 1 - Add the IUS Repo | |
wget https://centos7.iuscommunity.org/ius-release.rpm | |
#Add it to YUM, U=upgrade, v=verbose, h=hash | |
sudo rpm -Uvh ius-release*.rpm | |
#Step 2 - Add the yum plugin replace package |
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
const DEMO_COMPONENT_NAME = "demoComponent"; | |
// before angular 1.5 component : directive was the way to create component | |
const demoComponent = { | |
template: '<h1>Hello world</h1><h2>{{$ctrl.domAttribute}}</h2>', | |
bindings: { | |
domAttribute: '@', | |
onSomething: '&', // function call out | |
demoAttr2: "<" // Data in |
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
const functions = require('firebase-functions'); | |
const express = require('express'); | |
const cors = require('cors'); | |
const bodyParser = require('body-parser'); | |
/** | |
* Route all firebase function requests through to express | |
* See https://codeburst.io/express-js-on-cloud-functions-for-firebase-86ed26f9144c | |
*/ | |
const app = express(); |
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> | |
<html> | |
<head> | |
<title>My first three.js app</title> | |
<style> | |
body { margin: 0; } | |
canvas { width: 100%; height: 100% } | |
</style> | |
</head> | |
<body> |
OlderNewer