Phabricator style for stylish (applicable to stylebot and others if you remove the moz declarations) to make it more space efficient.
See https://userstyles.org/styles/112977/wikimedia-phabricator-condensed
Phabricator style for stylish (applicable to stylebot and others if you remove the moz declarations) to make it more space efficient.
See https://userstyles.org/styles/112977/wikimedia-phabricator-condensed
<?php | |
namespace Gather\stores; | |
use \PageImages; | |
use Title; | |
/** | |
* Loading page images for titles | |
*/ |
# If you don't remember the exact path/name, search the log for deleted files | |
git log --diff-filter=D --summary | grep delete | |
# Find the file you want to get from the ouput, and use the path | |
# Find the commits that involved that path | |
git log --all -- some/path/to/deleted.file | |
# Bring the file back to life to the current repo (sha commit of parent of commit that deleted) | |
git checkout shaofthecommitthatdeletedthefile^ -- some/path/to/deleted.file |
[ | |
{ | |
"txt": "Table Flip", | |
"val": "(╯°□°)╯︵ ┻━┻" | |
}, | |
{ | |
"txt": "umadbro?", | |
"val": "¯\\_(ツ)_/¯" | |
}, | |
{ |
Generate cool changelogs (adapted for mediawiki extension):
Markdown version:
git log --since=1.week --pretty=format:'%s ([Gerrit](https://gerrit.wikimedia.org/r/#/q/%h,n,z) ∙ [Github](https://github.com/wikimedia/mediawiki-extensions-Gather/commit/%h))' --reverse | grep -v '^.\{7\} Merge\|Localisation'
git log --since=1.week --pretty=format:'%s (<a href="https://gerrit.wikimedia.org/r/#/q/%h,n,z">Gerrit</a> ∙ <a href="https://github.com/wikimedia/mediawiki-extensions-Gather/commit/%h">Github</a>)' --reverse | grep -v '^.\{7\} Merge\|Localisation'
mediawiki (master %=) $ cloc --exclude-dir=vendor,node_modules,tools . | |
13558 text files. | |
12729 unique files. | |
1707 files ignored. | |
http://cloc.sourceforge.net v 1.62 T=120.17 s (97.4 files/s, 20750.7 lines/s) | |
-------------------------------------------------------------------------------- | |
Language files blank comment code | |
-------------------------------------------------------------------------------- | |
JSON 4822 124 0 841161 |
browser (review/jdlrobson/qa23 $) $ KEEP_BROWSER_OPEN=true BROWSER=firefox bundle exec cucumber features/new_collection.feature | |
@chrome @en.m.wikipedia.beta.wmflabs.org | |
Feature: Creating new collections | |
Background: # features/new_collection.feature:4 | |
Given I am logged into the mobile website # features/step_definitions/common_steps.rb:15 | |
And I am using the mobile site # features/step_definitions/common_steps.rb:1 | |
And I am in alpha mode # features/step_definitions/common_steps.rb:20 | |
And I am on the "Selenium Gather test" page # features/step_definitions/common_steps.rb:33 | |
When I click the watchstar # features/step_definitions/common_steps.rb:39 |
It's not connecting to mysql but i've ssh'd in and run mysql and the server is running and I can execute queries just fine... :(
test.php
and edit it with the template and data you want.php test.php
and observe output.