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
| $oldPart = "https://old-url.com"; | |
| $newPart = "https://new-url.com"; | |
| $args = [ | |
| 'post_type' => 'post', | |
| 'suppress_filters' => true, | |
| 'posts_per_page' => -1, | |
| ]; | |
| $loop = new WP_Query( $args ); | |
| while ( $loop->have_posts() ) : $loop->the_post(); | |
| update_post_meta( get_the_ID(), '_yoast_wpseo_canonical', str_replace( oldPart, newPart, get_the_permalink() ) ); |
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
| git clone https://github.com/openshift/origin.git | |
| cd origin | |
| git checkout release-1.4 | |
| set V 1.4.0.rc1 | |
| # update the release, incrementing based form the last releaseed RPMS | |
| set R 1 | |
| sed -i origin.spec -e "s/^Version: .*/Version: $V/g" -e "s/^Release: .*/Release: $R\%{?dist}/g" | |
| git add origin.spec |
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 | |
| cd /crate/plugins/elasticsearch-repository-hdfs | |
| curl http://central.maven.org/maven2/org/apache/hadoop/hadoop-client/2.7.1/hadoop-client-2.7.1.jar > hadoop-libs/hadoop-client-2.7.1.jar | |
| curl http://apache.mirror.amaze.com.au/hadoop/common/hadoop-2.7.1/hadoop-2.7.1.tar.gz | tar -xzf - | |
| JARS="apacheds-i18n-2.0.0-M15.jar apacheds-kerberos-codec-2.0.0-M15.jar api-asn1-api-1.0.0-M20.jar api-util-1.0.0-M20.jar avro-1.7.4.jar commons-collections-3.2.1.jar commons-compress-1.4.1.jar commons-configuration-1.6.jar commons-beanutils-core-1.8.0.jar commons-digester-1.8.jar commons-httpclient-3.1.jar commons-io-2.4.jar commons-lang-2.6.jar commons-net-3.1.jar curator-client-2.7.1.jar curator-framework-2.7.1.jar curator-recipes-2.7.1.jar gson-2.2.4.jar hadoop-annotations-2.7.1.jar hadoop-auth-2.7.1.jar hadoop-common-2.7.1.jar hadoop-hdfs-2.7.1.jar htrace-core-3.1.0-incubating.jar jackson-core-asl-1.9.13.jar jackson-mapper-asl-1.9.13.jar jline-0.9.94.jar jsp-api-2.1.jar leveldbjni-all-1.8.jar protobuf-java-2.5 |