Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| #!/bin/sh | |
| db_host=localhost | |
| db_name=magento | |
| db_user=root | |
| db_pass=root | |
| if [ ! -f ~/Downloads/magento-1.7.0.2.tar.gz ]; then | |
| wget http://www.magentocommerce.com/downloads/assets/1.7.0.2/magento-1.7.0.2.tar.gz -O ~/Downloads/magento-1.7.0.2.tar.gz | |
| wget http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz -O ~/Downloads/magento-sample-data-1.6.1.0.tar.gz |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project name="${projectName}" basedir="." default="build:main"> | |
| <!-- Properties --> | |
| <property name="dir.app" value="${project.basedir}/app" /> | |
| <property name="dir.src" value="${project.basedir}/src" /> | |
| <property name="dir.build" value="${project.basedir}/app/build" /> | |
| <property name="dir.docs" value="${dir.build}/docs" /> | |
| <property name="dir.docs.phpdoc" value="${dir.docs}/phpdoc" /> | |
| <property name="dir.docs.docblox" value="${dir.docs}/docblox" /> | |
| <property name="dir.reports" value="${dir.build}/logs" /> |
| # Apt-install various things necessary for Ruby, guest additions, | |
| # etc., and remove optional things to trim down the machine. | |
| apt-get -y update | |
| apt-get -y remove apparmor | |
| apt-get -y install linux-headers-$(uname -r) build-essential | |
| apt-get -y install zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev libssl-dev openssl libreadline5-dev | |
| apt-get clean | |
| # Remove this file to avoid dhclient issues with networking | |
| rm -f /etc/udev/rules.d/70-persistent-net.rules |
| "repositories": { | |
| "antimattr/google-bundle": { | |
| "package": { | |
| "name": "antimattr/google-bundle", | |
| "version": "master", | |
| "source": { | |
| "url": "git://github.com/antimattr/GoogleBundle.git", | |
| "type": "git", | |
| "reference": "master" | |
| }, |
| # brew install youtube-dl | |
| function youtube_music | |
| { | |
| $(youtube-dl -f 37/22/18 "$1" --extract-audio --audio-format mp3 | tee /dev/tty) | |
| } | |
| function youtube_video | |
| { | |
| $(youtube-dl -f 37/22/18 "$1" | tee /dev/tty) |
| # This is a short collection of tools that are useful for managing your | |
| # known_hosts file. In this case, I'm using the '-f' flag to specify the | |
| # global known_hosts file because I'll be adding many deploy users on this | |
| # system. Simply omit the -f flag to operate on ~/.ssh/known_hosts | |
| # Add entry for host | |
| ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts | |
| # Scan known hosts | |
| ssh-keygen -f /etc/ssh/ssh_known_hosts -H -F github.com |
| # Install a Webserver | |
| apt-get -y install apache2 | |
| # Target docroot to /home/satis/web/ | |
| # Install PHP5 CLI and needed programs. | |
| apt-get -y install php5-cli php5-curl php5-json git wget | |
| # Add a specifix user for our task | |
| adduser satis |
| # Create a new Token | |
| curl -u 'githubuser' -d '{"note":"Your Application"}' https://api.github.com/authorizations | |
| # It is: "ebab4dc37e654bb230a9c69ebcd5f38e9a81e210" | |
| #{ | |
| # "created_at": "2013-01-04T18:00:28Z", | |
| # "app": { | |
| # "url": "http://developer.github.com/v3/oauth/#oauth-authorizations-api", |
| # Cronjob for poor man monitoring of server health | |
| PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | |
| # Every sunday, check for apt-get upgrades. | |
| 33 3 * * 0 root apt-get update ; apt-get -q --simulate upgrade | |
| # Every sunday, check for SMART errors. | |
| 34 3 * * 0 root echo 'SMART Sectors'; smartctl -a /dev/sda | grep -i sector ; smartctl -a /dev/sdb | grep -i sector; echo 'SMART All'; smartctl -a /dev/sda ; smartctl -a /dev/sdb |