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
<html> | |
<head> | |
<title>Prezi presentation</title> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css" type="text/css" rel="stylesheet" /> | |
</head> | |
<body> | |
<iframe id="iframe_container" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" width="100%" height="100%" src="https://prezi.com/embed/ujk4bs8b72ki/?bgcolor=ffffff&lock_to_path=0&autoplay=0&autohide_ctrls=0&landing_data=bHVZZmNaNDBIWkRDVE93YVVDTVN5dWF2eDNlZVpKayszYlFONi91ZVhLUVdLQ1RaUnZTZ04yVTR0YjM0dXlWbnhYZ3F6WU09&landing_sign=vw8A4a6gflkN-MHQ1jTdQ95uragP8fklEo-qfhXCYwQ"></iframe> | |
</body> | |
</html> |
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 | |
/* | |
Plugin Name: Sub Categories Widget | |
Description: This Widget lists the sub-categories for a given category. | |
Author: BrokenCrust | |
Version: 1.4.1 | |
Author URI: http://brokencrust.com/ | |
Plugin URI: http://brokencrust.com/plugins/sub-categories-widget/ | |
License: GPLv2 or later | |
Text Domain: sub-categories-widget |
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
location /test { | |
content_by_lua ' | |
if ngx.var.arg_name == nil then | |
ngx.say("name: missing") | |
else | |
ngx.say("name: [", ngx.var.arg_name, "]") | |
end | |
'; | |
} | |
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
UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root'; | |
FLUSH PRIVILEGES; |
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
# ~/.ssh/config | |
Host server | |
Hostname myserver.com | |
User my-long-name | |
Port 1234567 |
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
location / { | |
# try to serve file directly, fallback to rewrite | |
try_files $uri @rewriteapp; | |
} | |
location @rewriteapp { | |
# rewrite all to app.php | |
rewrite ^(.*)$ /app<?php echo getenv('SYMFONY_ENV') === 'prod' ? '' : '_dev'; ?>.php/$1 last; | |
} |
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
Default date format: {$date|date_format} | |
Timestamp: {$date|date_format:"%s"} | |
{if $date|date_format:"%s" < $smarty.now} | |
True | |
{else} | |
False | |
{/if} |
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
SetEnvIfNoCase Request_URI ^/protected-page-1 require_auth | |
SetEnvIfNoCase Request_URI ^/protected-page-2 require_auth | |
AuthName "Login" | |
AuthUserFile path/to/.htpasswd | |
AuthType Basic | |
Order Deny,Allow | |
Deny from all | |
Satisfy any |
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
SELECT u.url, min(time), avg(time), max(time), count(*), VAR_POP(time) , STD(time) | |
FROM data d LEFT JOIN url u ON u.id = d.url | |
WHERE `timestamp` > TIMESTAMP(NOW() - INTERVAL 1 DAY) | |
GROUP BY d.url |
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
#!/bin/bash | |
#$ -V | |
#$ -j yes | |
set NHOSTS manually here: | |
export NHOSTS=2 | |
NPART=$NHOSTS | |
# | |
# This script starts a single-domain Delft3D-FLOW computation on Linux in parallel mode | |
# asuming nodes are allocated manually |