-
-
Save renoirb/031667fa19062c773de5 to your computer and use it in GitHub Desktop.
Temporary stash bin
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
<VirtualHost *:80> | |
ServerName discourse.webplatform.org | |
ServerAlias talk.webplatform.org | |
ServerAdmin team-webplatform-systems@w3.org | |
DocumentRoot /var/www | |
RewriteEngine On | |
RewriteRule ^(.*)$ - [R=404] | |
</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
--- i/code/files/wiki/Settings.php.jinja | |
+++ w/code/files/wiki/Settings.php.jinja | |
@@ -235,7 +235,7 @@ $wgSyntaxHighlightDefaultLang = "html5"; | |
require_once("$IP/extensions/Cite/Cite.php"); | |
-require_once("$IP/extensions/Vector/Vector.php"); | |
+require_once("$IP/extensions/VectorBeta/VectorBeta.php"); #TODO differs in wmf/1.25wmf14, instead of previous Vector | |
$wgDefaultUserOptions['vector-collapsiblenav'] = 1; | |
$wgVectorUseSimpleSearch = true; | |
@@ -258,7 +258,7 @@ $sfgRenameEditTabs = true; | |
## SemanticResultFormats, an extra set of printers for SMW | |
require_once("$IP/extensions/SemanticResultFormats/SemanticResultFormats.php"); | |
-include_once("$IP/extensions/AdminLinks/AdminLinks.php"); | |
+#include_once("$IP/extensions/AdminLinks/AdminLinks.php"); #TODO not in wmf/1.25wmf14 | |
#require_once("$IP/extensions/EmailCapture/EmailCapture.php"); #TODO, find | |
## Captcha Extension | |
@@ -309,7 +309,7 @@ require_once("$IP/extensions/SubPageList3/SubPageList3.php"); | |
#require_once("$IP/extensions/DismissableSiteNotice/DismissableSiteNotice.php" ); #DISABLED | |
## Semantic_Internal_Objects | |
-include_once("$IP/extensions/SemanticInternalObjects/SemanticInternalObjects.php"); | |
+#include_once("$IP/extensions/SemanticInternalObjects/SemanticInternalObjects.php"); #TODO not in wmf/1.25wmf14 | |
## Replace_Text | |
#require_once("$IP/extensions/ReplaceText/ReplaceText.php"); #TODO, Find? | |
@@ -317,15 +317,15 @@ include_once("$IP/extensions/SemanticInternalObjects/SemanticInternalObjects.php | |
## StringFunctionsEscaped | |
require_once("$IP/extensions/ParserFunctions/ParserFunctions.php"); | |
$wgPFEnableStringFunctions = true; // Note: this must be after ParserFunctions and before StringFunctionsEscaped | |
-require_once("$IP/extensions/StringFunctionsEscaped/StringFunctionsEscaped.php"); #NEEDSTOBEADDED | |
+#require_once("$IP/extensions/StringFunctionsEscaped/StringFunctionsEscaped.php"); #NEEDSTOBEADDED #TODO not in wmf/1.25wmf14 | |
## Social Profile extension | |
-require_once("$IP/extensions/SocialProfile/SocialProfile.php"); # Make sure we applied mediawiki/patches/issue-19.path | |
+#require_once("$IP/extensions/SocialProfile/SocialProfile.php"); # Make sure we applied mediawiki/patches/issue-19.path | |
$wgUserProfileDisplay['friends'] = true; | |
$wgUserProfileDisplay['foes'] = false; | |
## NewSignupPage extension, for agreeing to site terms | |
-require_once("$IP/extensions/NewSignupPage/NewSignupPage.php"); #NEEDSTOBEADDED | |
+#require_once("$IP/extensions/NewSignupPage/NewSignupPage.php"); #NEEDSTOBEADDED #TODO not in wmf/1.25wmf14 | |
$wgRegisterTrack = true; | |
$wgUserStatsPointValues['referral_complete'] = 10; | |
$wgAutoAddFriendOnInvite = true; | |
@@ -334,7 +334,7 @@ $wgForceNewSignupPageInitialization = true; | |
## CLDR extension, for local language names | |
require_once("$IP/extensions/cldr/cldr.php"); | |
-require_once("$IP/extensions/LookupUser/LookupUser.php"); #NEEDSTOBEADDED | |
+#require_once("$IP/extensions/LookupUser/LookupUser.php"); #NEEDSTOBEADDED #TODO not in wmf/1.25wmf14 | |
$wgGroupPermissions['*']['lookupuser'] = false; | |
$wgGroupPermissions['sysop']['lookupuser'] = true; |
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
renoirb@salt:/srv/salt$ cat mysql/files/wpd-mysql-reset-slave.sh | |
#!/bin/bash | |
HOST=$1 | |
RUSER=repl | |
read -p "What is the replication password?: " RPASS | |
IFS=" | |
" | |
mysql -h $HOST -e "STOP SLAVE" | |
for line in $(mysql -e "SHOW SLAVE STATUS" -E -h $HOST) | |
do | |
key=${line%:*} # Split off what goes before : | |
key=${key// } # And trim spaces | |
data=${line#*:} # Split off what goes after : | |
data=${data// } # And trim spaces yet again!!! | |
case $key in | |
Exec_master_log_pos) LOGPOS=$data;; | |
Exec_Master_Log_Pos) LOGPOS=$data;; | |
Relay_Master_Log_File) LOGFILE=$data;; | |
Master_Host) RHOST=$data;; | |
Master_User) RUSER=$data;; | |
Master_Port) RPORT=$data;; | |
esac | |
done | |
if [ -z $LOGPOS -o -z $LOGFILE ]; then echo "OMG FAIL NO POSITIONS KNOWN"; exit; fi | |
mysql -h $HOST -e "RESET SLAVE" | |
mysql -h $HOST -e "CHANGE MASTER TO MASTER_HOST='$RHOST', MASTER_USER='repl', MASTER_PASSWORD='$RPASS', MASTER_LOG_FILE='$LOGFILE', MASTER_LOG_POS=$LOGPOS" | |
mysql -h $HOST -e "START SLAVE" |
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
## Screenshots: | |
## - https://docs.webplatform.org/wiki/File:nginx_fastcgi_status.png | |
## - https://docs.webplatform.org/wiki/File:nginx_fastcgi_status_full.png | |
location ~ ^/(status|ping)$ { | |
include /etc/nginx/fastcgi_params; | |
## The following makes it possible to have both HHVM/Python/NodeJS/php5-fpm server locally but the | |
## intended purpose is that NGINX server will be calling from a list of multiple fastcgi servers. | |
## ref: http://wiki.nginx.org/HttpSetMiscModule | |
fastcgi_pass {{ remote_fpm_server_ip|default('127.0.0.1') }}:{{ remote_fpm_server_port|default('9000') }}; | |
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name; | |
allow 127.0.0.1; | |
deny all; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related: