1
0
mirror of /repos/dotTiddlywiki.git synced 2025-12-30 07:31:33 +01:00
This commit is contained in:
Aiko Mastboom 2017-02-25 14:38:52 +01:00
parent 09cac1c077
commit b791cb478f
6 changed files with 138 additions and 6 deletions

View File

@ -0,0 +1,52 @@
created: 20170219150759540
creator: user
modified: 20170219151441712
modifier: user
tags: elixir
title: ELM Phoenix
type: text/vnd.tiddlywiki
; elm-phoenix-socket
: https://github.com/fbonetti/elm-phoenix-socket/tree/2.0.1
; Phoenix with Elm - part 1
: http://www.cultivatehq.com/posts/phoenix-elm-1/
; Phoenix with Elm - part 2
: http://www.cultivatehq.com/posts/phoenix-elm-2/
; Phoenix with Elm - part 3
: http://www.cultivatehq.com/posts/phoenix-elm-3/
; Phoenix with Elm - part 4
: http://www.cultivatehq.com/posts/phoenix-elm-4/
; Phoenix with Elm - part 5
: http://www.cultivatehq.com/posts/phoenix-elm-5/
; Phoenix with Elm - part 6
: http://www.cultivatehq.com/posts/phoenix-elm-6/
; Phoenix with Elm - part 7
: http://www.cultivatehq.com/posts/phoenix-elm-7/
; Phoenix with Elm - part 8
: http://www.cultivatehq.com/posts/phoenix-elm-8/
; Phoenix with Elm - part 9
: http://www.cultivatehq.com/posts/phoenix-elm-9/
; Phoenix with Elm - part 10
: http://www.cultivatehq.com/posts/phoenix-elm-10/
; Phoenix with Elm - part 11
: http://www.cultivatehq.com/posts/phoenix-elm-11/
; Phoenix with Elm - part 12
: http://www.cultivatehq.com/posts/phoenix-elm-12/
; Phoenix with Elm - part 13
: http://www.cultivatehq.com/posts/phoenix-elm-13/

View File

@ -1,6 +1,6 @@
created: 20170204131710165
creator: user
modified: 20170204131856613
modified: 20170219151435935
modifier: user
tags:
title: ELM language
@ -10,4 +10,14 @@ type: text/vnd.tiddlywiki
: http://elm-lang.org
; elm starter
: https://github.com/splodingsocks/elm-starter
: https://github.com/splodingsocks/elm-starter
; Awesome Elm
: https://github.com/isRuslan/awesome-elm
; The Elm Architecture
: https://guide.elm-lang.org/architecture/
; Upgrade your Elm Views with Selectors
: https://medium.com/@ckoster22/upgrade-your-elm-views-with-selectors-1d8c8308b336#.8k6ywmcyz

View File

@ -1,8 +1,8 @@
created: 20151217170123889
creator: user
modified: 20160405202859420
modified: 20170219151405360
modifier: user
tags:
tags: elixir
title: Elixir
type: text/vnd.tiddlywiki
@ -42,6 +42,9 @@ type: text/vnd.tiddlywiki
; Phoenix Framework
: http://www.phoenixframework.org/
; Building and testing a Phoenix JSON API
: https://robots.thoughtbot.com/building-a-phoenix-json-api
; Learning Elixir and Erlang
: http://www.phoenixframework.org/docs/learning-elixir-and-erlang

View File

@ -1,10 +1,13 @@
created: 20160405090533053
creator: user
modified: 20160405090611682
modified: 20170212151204382
modifier: user
tags:
title: IDEA IntelliJ
type: text/vnd.tiddlywiki
; How to config intellij-idea not format some part of the code?
: http://stackoverflow.com/questions/14020200/how-to-config-intellij-idea-not-format-some-part-of-the-code
: http://stackoverflow.com/questions/14020200/how-to-config-intellij-idea-not-format-some-part-of-the-code
; Programming Fonts
: http://app.programmingfonts.org/#consolamono

12
mywiki/tiddlers/Swap.tid Normal file
View File

@ -0,0 +1,12 @@
created: 20170222115845344
creator: user
modified: 20170222120132234
modifier: user
tags:
title: Swap
type: text/vnd.tiddlywiki
dd if=/dev/zero of=/root/swap1024 bs=1M count=1k ; mkswap /root/swap1024 ; swapon /root/swap1024
dd if=/dev/zero of=/root/swap2048 bs=1M count=2k ; mkswap /root/swap2048 ; swapon /root/swap2048

View File

@ -0,0 +1,52 @@
created: 20170221153114021
creator: user
modified: 20170222115804400
modifier: user
tags: docker
title: proxmox docker
type: text/vnd.tiddlywiki
! Admin prepare VM
!! find out IP (or login on proxmox console):
* login: `docker`
* passwd: `tcuser`
!! persist data:
```sh
mke2fs -T ext4,news -L boot2docker-data -v /dev/sda
```
then reboot to enable data persistance
!! static ip:
```sh
cat << EOF | sudo tee /var/lib/boot2docker/bootsync.sh
kill \`cat /var/run/udhcpc.eth0.pid\`
ifconfig eth0 192.168.0.151 netmask 255.255.255.0 broadcast 192.168.0.255 up
ip route add default via 192.168.0.254
EOF
sudo chmod +x /var/lib/boot2docker/bootsync.sh
```
then reboot to persist fixed IP
----
! Developer start using VM
!! copy your ssh_key:
* passwd: `tcuser`
```sh
cat ${HOME}/.ssh/id_rsa.pub | ssh docker@192.168.0.151 'umask 0077; mkdir -p .ssh; cat >> .ssh/authorized_keys && echo "Key copied"'
```
so you can login without password
! create docker-machine:
```sh
export COMPOSE_PROJECT_NAME=$(basename ${PWD} | sed 's/[^a-zA-Z0-9]//g')
docker-machine create \
--driver=generic \
--generic-ip-address=192.168.0.151 \
--generic-ssh-user=docker \
--generic-ssh-key=${HOME}/.ssh/id_rsa \
--generic-ssh-port=22 \
${COMPOSE_PROJECT_NAME}-${USER}
```