I hereby claim:
- I am tsphethean on github.
- I am tsphethean (https://keybase.io/tsphethean) on keybase.
- I have a public key ASAEhPKaL0re498a862EdL0uf94-U8YqAFJgGqTnmJnNDwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| if [[ -z "$1" ]]; then | |
| echo "Usage: proxy_switch.sh en 1.1.1.1:8080. | |
| proxy_switch.sh dis" | |
| exit 2; | |
| fi | |
| if [[ "$1" == "en" ]]; then | |
| export http_proxy=http://$2 |
| Server { | |
| Port = 8000 | |
| SourceRoot = /vagrant/public/drupal.vbox.local/www/ | |
| } | |
| Eval { | |
| Jit = true | |
| } | |
| Log { | |
| Level = Error |
| git clone --recursive --branch 7.x-1.x http://git.drupal.org/project/vagrant.git | |
| cd vagrant | |
| vagrant box add base http://files.vagrantup.com/precise64.box | |
| vagrant up | |
| sudo nano /etc/hosts | |
| # add | |
| # 33.33.33.10 drupal.vbox.local dev-site.vbox.local | |
| vagrant ssh | |
| # Update our packages | |
| sudo apt-get update |
| // ==UserScript== | |
| // @name M101JS Downloader | |
| // @namespace M101JS | |
| // @include https://education.10gen.com/courses/10gen/M101JS/2013_August/wiki/M101JS/* | |
| // @version 1 | |
| // @run-at document-end | |
| // ==/UserScript== | |
| (function() { |
| #!/bin/sh | |
| # Drop old DB | |
| mysql -uroot -e "DROP DATABASE drupal8" | |
| # Create new DB | |
| mysqladmin -uroot create drupal8 | |
| # Add permissions | |
| mysql -uroot -e "GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON drupal8.* TO 'drupal8'@'localhost' IDENTIFIED BY 'password'" | |
| # Tidy up site files |