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
.build-name { | |
max-width: none; | |
} |
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 | |
PROJECT_NAME="$1" | |
SCALA_VERSION="2.11.4" | |
SCALATEST_VERSION="2.2.1" | |
shift | |
SBT_COMMANDS="$@" | |
# ==== Dirs ==== |
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 | |
## Dump list, for reference | |
# android list sdk -u -a -e | |
## No 'tag' for getting latest build tools, for some reason | |
BUILD_TOOLS_LATEST=$(android list sdk -u -a -e | grep 'build-tools-' | head -n 1 | cut -d' ' -f2) | |
## Run through expect to accept license | |
expect -c " |
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
// Slick 3.0.0 with postgresql 9.4 | |
libraryDependencies ++= Seq( | |
"com.typesafe.slick" %% "slick" % "3.0.0", | |
"org.slf4j" % "slf4j-nop" % "1.6.4", | |
"com.zaxxer" % "HikariCP-java6" % "2.3.7", | |
"org.postgresql" % "postgresql" % "9.4-1201-jdbc41" | |
) |
iptables = brandvägg i linux http - port 80 https - port 443 ssh - 22
fundera på att använda UFW (interface över iptables) https://help.ubuntu.com/community/UFW
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 | |
case "$1" in | |
pss ) | |
exec docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.RunningFor}}" ${@:2} ;; | |
enter ) | |
exec docker exec -ti $2 bash ;; | |
* ) | |
exec docker $@ ;; | |
esac |
I hereby claim:
- I am tobias-johansson on github.
- I am tobjoh (https://keybase.io/tobjoh) on keybase.
- I have a public key whose fingerprint is 2553 C77C D75D DF99 06D8 4D64 15E7 BC9A 1A7B 980F
To claim this, I am signing this object:
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
CALL { | |
USE fabric.persons | |
MATCH (person:Person {id: $Person})-[:KNOWS]-(friend) | |
RETURN collect(friend.id) AS personIds | |
} | |
WITH *, [g in fabric.graphIds() WHERE g <> 0] AS gids | |
UNWIND gids AS gid | |
CALL { | |
USE fabric.graph(gid) |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
n | |
0 | |
1 | |
2 |