-
Open the Terminal
-
Use
mysqldump
to 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
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
case object DateCoercionViolation extends ValueCoercionViolation("Date value expected") | |
def parseDate(s: String) = Try(new DateTime(s, DateTimeZone.UTC)) match { | |
case Success(date) => Right(date) | |
case Failure(_) => Left(DateCoercionViolation) | |
} | |
val DateTimeType = ScalarType[DateTime]("DateTime", | |
coerceOutput = date => ast.StringValue(ISODateTimeFormat.dateTime().print(date)), | |
coerceUserInput = { |
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
#!/usr/bin/env ruby | |
require 'open-uri' | |
teams = { | |
atl: 'hawks', | |
bkn: 'nets', | |
bos: 'celtics', | |
cha: 'hornets', | |
chi: 'bulls', |
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
function transfer | |
if test (count $argv) -eq 0 | |
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md" | |
return 1 | |
end | |
## get temporarily filename, output is written to this file show progress can be showed | |
set tmpfile ( mktemp -t transferXXX ) | |
## upload stdin or file |
- Reactive Manifesto 2.0 -> http://www.reactivemanifesto.org/
- Akka -> http://akka.io/
- Spray.io -> http://spray.io/
- Functional Programing -> http://learnyouahaskell.com/chapters
- Streams -> http://www.reactive-streams.org/
- Spark -> http://spark.apache.org/
- Samza -> http://samza.incubator.apache.org/
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
instances: | |
- host: localhost | |
port: 7199 | |
# user: username | |
# password: password | |
# name: cassandra_instance | |
# #trust_store_path: /path/to/trustStore.jks # Optional, should be set if ssl is enabled | |
# #trust_store_password: password | |
# #java_bin_path: /path/to/java #Optional, should be set if the agent cannot find your java executable |
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
# The following documentation details configuring an application ID to execute a SSH action | |
# In the illustration- | |
# edge node=cdh-sn03 | |
# oozie server=cdh-mn01 | |
# applicaiton ID=akhanolk | |
# ========================================== | |
# 1. On edge node, as application ID |
Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution
I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)