- Feature
- Background
- Scenario
- Given
- When
- Then
- And
os | |
from flask_extended import Flask | |
app = Flask(__name__) | |
app.config.from_yaml(os.join(app.root_path, 'config.yml')) |
# Local Dates: | |
git log --date=local --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.local.tsv.txt | |
# ISO Dates: | |
git log --date=iso --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.iso.tsv.txt |
<?php | |
$countries = | |
array( | |
"AF" => "Afghanistan", | |
"AL" => "Albania", | |
"DZ" => "Algeria", | |
"AS" => "American Samoa", | |
"AD" => "Andorra", | |
"AO" => "Angola", |
// Adblock Plus Whitelist Export. require Developer Tools Console | |
// @author noromanba | |
// @license MIT License http://nrm.mit-license.org/2013 | |
// chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/options.html#tab-whitelisted | |
var area = document.createElement('textarea'); | |
area.id = 'rawDomainText'; | |
//area.readOnly = true; | |
area.style.width = '500px'; | |
area.style.height = '150px'; |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
To stop all the gitlab-related processes (e.g. for moving gitlab to another node while running it on top of HA-cluster) run the following two commands as root (strictly in that sequence):
gitlab-ctl stop
/sbin/stop gitlab-runsvdir
After such a full stopping gitlab couldn't be run again by conventional gitlab-ctl start
. Although gitlab-ctl reconfigure
would
work fine in such a case,
Short url: caseywatts.com/mediawikionheroku
Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book
How to get set up with Mediawiki running on Heroku.
Fork https://github.com/mediawiki/mediawiki (from the web interface)
(master
worked fine for me, but you might want the last stable tag?)
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
Free O'Reilly books and convenient script to just download them.
Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post
How to use:
- Take the
download.sh
file and put it into a directory where you want the files to be saved. cd
into the directory and make sure that it has executable permissions (chmod +x download.sh
should do it)- Run
./download.sh
and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.