Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus| name: Gurulabs.dev | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| test: |
| { | |
| "name": "gurulabs", | |
| "version": "1.0.0", | |
| "main": "index.js", | |
| "repository": "[email protected]:manshu/shopify-gurulabs.git", | |
| "author": "Himanshu Batra <[email protected]>", | |
| "license": "MIT", | |
| "scripts": { | |
| "watch": "mix watch" | |
| }, |
| { | |
| "name": "myapp", | |
| "version": "1.0.0", | |
| "main": "index.js", | |
| "license": "MIT", | |
| "scripts": { | |
| "dev": "next", | |
| "build": "next build", | |
| "start": "next start" | |
| }, |
| <template> | |
| <div> | |
| <form @submit.prevent="onSubmit" class="mt-4 sm:flex sm:max-w-md"> | |
| <input | |
| aria-label="Email address" | |
| type="email" | |
| name="email" | |
| v-model="form.email" | |
| required | |
| class="appearance-none w-full px-5 py-3 border border-transparent text-base leading-6 rounded-md text-gray-900 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 transition duration-150 ease-in-out" |
| class CRMServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Register services. | |
| * | |
| * @return void | |
| */ | |
| public function register() | |
| { | |
| } |
| var stripe = Stripe( | |
| document.head.querySelector('meta[name="stripeKey"]').content | |
| ); | |
| var elements = stripe.elements(); | |
| var card = elements.create("card"); | |
| card.mount("#card"); | |
| card.addEventListener("change", function(event) { | |
| var displayError = document.getElementById("cardErrors"); | |
| if (event.error) { | |
| displayError.textContent = event.error.message; |
| Total props to Brian Cray: http://briancray.com/posts/estimated-reading-time-web-design/ |
| #!/usr/bin/env bash | |
| # | |
| # Bootstrap script for setting up a new OSX machine | |
| # | |
| # This should be idempotent so it can be run multiple times. | |
| # | |
| # Some apps don't have a cask and so still need to be installed by hand. These | |
| # include: | |
| # | |
| # - Twitter (app store) |
| location / { | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Proto $scheme; | |
| proxy_redirect off; | |
| proxy_read_timeout 1m; | |
| proxy_connect_timeout 1m; | |
| proxy_pass http://127.0.0.1:3000; # set the address of the Node.js | |
| } |