- 2 teaspoon dry yeast
- 0.5 teaspoon sugar
- 1.5 cups lukewarm water
- 4 cups bread flour
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
#!/bin/bash | |
cd ~/Library/Containers/com.docker.docker/Data/database/ | |
mkdir -p ./com.docker.driver.amd64-linux/disk | |
echo -n false > ./com.docker.driver.amd64-linux/disk/full-sync-on-flush | |
echo -n none > ./com.docker.driver.amd64-linux/disk/on-flush |
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2015-09-24-raspbian-jessie.img
) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config
to:
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
before_filter :cors_preflight_check | |
after_filter :cors_set_access_control_headers | |
def cors_set_access_control_headers | |
headers['Access-Control-Allow-Origin'] = '*' | |
headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS' | |
headers['Access-Control-Allow-Headers'] = 'Origin, Content-Type, Accept, Authorization, Token' | |
headers['Access-Control-Max-Age'] = "1728000" | |
end |
The code below will effectively turn your Asynchronous Q promises synchronous so that they are easier to test.
beforeEach(function () {
sinon.stub(Q.xhr, 'post').returns(Q.resolve({myAwesome: 'response data goes here'}));
sinon.stub(process, 'nextTick').yields();
});
afterEach(function () {
Q.xhr.post.restore();
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
echo "* Updating system" | |
apt-get update | |
apt-get -y upgrade | |
echo "* Installing packages" | |
apt-get -y install build-essential libmagickcore-dev imagemagick libmagickwand-dev libxml2-dev libxslt1-dev git-core nginx redis-server curl nodejs htop | |
id -u deploy &> /dev/null | |
if [ $? -ne 0 ] | |
then |
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
:%!python -m json.tool |
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
// helper to create proper asset paths if an asset host is configured | |
App.assets = { | |
assets : { | |
<% AssetsUtil.images.each do |img| %> | |
"<%= img %>" : "<%= asset_path(img) %>", | |
<% end %> | |
}, | |
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
Jeffs-MacBook-Pro-2:~ jeff$ curl -s https://intridea-boxen-web.herokuapp.com/script/590343f6.sh > /tmp/install-boxen; bash /tmp/install-boxen | |
Since you are running OS X 10.9, you will need to install the Command | |
Line Tools (even if you already have Xcode installed). | |
1. You should see a pop-up asking you to install them in a moment. | |
2. Click Install! | |
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 | |
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) |
NewerOlder