-
Open the Terminal
-
Use
mysqldumpto backup your databases -
Check for MySQL processes with:
ps -ax | grep mysql -
Stop and kill any MySQL processes
-
Analyze MySQL on HomeBrew:
brew remove mysql
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| #!/usr/bin/env python | |
| import gzip | |
| import os | |
| import sys | |
| import re | |
| INPUT_DIR = "nginx-logs" | |
| lineformat = re.compile(r"""(?P<ipaddress>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) - - \[(?P<dateandtime>\d{2}\/[a-z]{3}\/\d{4}:\d{2}:\d{2}:\d{2} (\+|\-)\d{4})\] ((\"(GET|POST) )(?P<url>.+)(http\/1\.1")) (?P<statuscode>\d{3}) (?P<bytessent>\d+) (["](?P<refferer>(\-)|(.+))["]) (["](?P<useragent>.+)["])""", re.IGNORECASE) |
| # See also https://trac.ffmpeg.org/wiki/Encode/AAC | |
| # direct copy | |
| ffmpeg -i input.mkv -c:v copy -c:a copy output.mp4 | |
| # direct copy video, but convert audio to AAC with default variable bit rate | |
| ffmpeg -i input.mkv -c:v copy -c:a aac -strict experimental output.mp4 | |
| # direct copy video, but convert audio to AAC with constant bit rate | |
| ffmpeg -i input.mkv -c:v copy -c:a aac -strict experimental -b:a 320k output.mp4 |
| type Api struct { | |
| *revel.Controller | |
| } | |
| func addHeaderCORS(c *revel.Controller) revel.Result { | |
| c.Response.Out.Header().Add("Access-Control-Allow-Origin","*") | |
| return nil | |
| } | |
| func init() { |
Hi Nicholas,
I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I lead the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:
The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can'
###Install Node and Bower
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -sudo apt-get install nodejssudo npm install -g bowergit clone https://github.com/benweet/stackedit/public/res/constants.js:constants.BASE_URL = "http://stackedit.dev:3000/";##Solving a Spark error: Invalid signature file digest for Manifest main attributes
When using spark-submit to run a jar, you may encounter this error:
Invalid signature file digest for Manifest main attributes
The error occurs when one of the included libraries in the jar's META-INF directory has a bad signature.
| #!/bin/bash | |
| # Install Spark on CentOS 7 | |
| yum install java -y | |
| java -version | |
| yum install wget -y | |
| wget http://downloads.typesafe.com/scala/2.11.8/scala-2.11.8.tgz | |
| tar xvf scala-2.11.8.tgz | |
| sudo mv scala-2.11.8 /usr/lib | |
| sudo ln -s /usr/lib/scala-2.11.8 /usr/lib/scala |