Disclaimers:
- I'm hoping this will help you understand so you can help us improve our documentation.
- This is simplified version, i'm ignoring some details which are unimportant for discusing this.
/* | |
* Copyright © 2009, Componentix. All rights reserved. | |
*/ | |
package com.componentix.hibernate.dialect; | |
import java.sql.Types; | |
/** | |
* A proper dialect for Microsoft SQL Server 2000 and 2005. |
function targetBlank() { | |
// remove subdomain of current site's url and setup regex | |
var internal = location.host.replace("www.", ""); | |
internal = new RegExp(internal, "i"); | |
var a = document.getElementsByTagName('a'); // then, grab every link on the page | |
for (var i = 0; i < a.length; i++) { | |
var href = a[i].host; // set the host of each link | |
if( !internal.test(href) ) { // make sure the href doesn't contain current site's host | |
a[i].setAttribute('target', '_blank'); // if it doesn't, set attributes |
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package org.hibernate.dialect; | |
import java.sql.Types; | |
import java.sql.Types; | |
import org.hibernate.Hibernate; |
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### | |
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget. | |
### You can download all the binaries one-shot by just giving the BASE_URL. | |
### Script might be useful if you need Oracle JDK on Amazon EC2 env. | |
### Script is updated for every JDK release. | |
### Features:- | |
# 1. Resumes a broken / interrupted [previous] download, if any. | |
# 2. Renames the file to a proper name with including platform info. |
<?php | |
/* | |
* Usage: | |
* $ php check.php --extensions="apc memcached redis" | |
* apc: 3.1.13 | |
* memcached: 2.2.0 | |
* redis: 2.2.5 | |
*/ | |
class PHPExtensionUpdates { |
#!/bin/bash | |
################################ | |
#!# SiteId=behat_whole_suite_m | |
#!# OutputFormat=moodle_progress,junit | |
################################ | |
# Optional Params. | |
if [ -z "${BehatProfileToUseOnDay}" ]; then | |
BehatProfileToUseOnDay="default default default default default default default" | |
fi | |
if [ -z "${SELENIUMPORT}" ]; then |
#!/bin/bash | |
# | |
# This Bash script installs Moodle (http://moodle.org) and all it's | |
# requirements into a freshly installed Centos or RHEL 7 operating system. | |
# It assumes an 'Enforced' SELinux environment and configures the system | |
# accordingly. | |
# | |
# It is designed to be instructional and clear to read to persons unfamiliar | |
# with Bash and as such does *no* sanity checking before taking actions. | |
# Becasue of this *great* care should be taken if you feel the urge to run |
# Let us consider the following typical mysql backup script: | |
mysqldump --routines --no-data -h $mysqlHost -P $mysqlPort -u $mysqlUser -p$mysqlPassword $database | |
# It succeeds but stderr will get: | |
# Warning: Using a password on the command line interface can be insecure. | |
# You can fix this with the below hack: | |
credentialsFile=/mysql-credentials.cnf | |
echo "[client]" > $credentialsFile | |
echo "user=$mysqlUser" >> $credentialsFile | |
echo "password=$mysqlPassword" >> $credentialsFile |