This file contains hidden or 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 zsh | |
| # before: | |
| # xcode-select --install | |
| # chsh -s /bin/zsh | |
| # | |
| # and run: | |
| # zsh <(curl -s https://gist.github.com/olownia/7483103/raw/8fa43deefbb7cb2aa6308291ee6a825a4351abce/mac.bash) | |
| trap 'ret=$?; test $ret -ne 0 && printf "failed\n\n" >&2; exit $ret' EXIT |
This file contains hidden or 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
| { | |
| "bold_folder_labels": true, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme", | |
| "draw_minimap_border": true, | |
| "find_selected_text": true, | |
| "highlight_line": true, | |
| "line_padding_bottom": 1, | |
| "open_files_in_new_window": false, | |
| "rulers": [120], |
This file contains hidden or 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
| matrix = [[1,2,3,4], [5,6,7,8]] | |
| defmodule Matrix do | |
| def transpose([[] | _]), do: [] | |
| def transpose(m) do | |
| [Enum.map(m, &hd/1) | transpose(Enum.map(m, &tl/1))] | |
| end | |
| end | |
| IO.inspect matrix |
This file contains hidden or 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
| hdiutil create -o /tmp/Catalina -size 8500m -volname Catalina -layout SPUD -fs HFS+J | |
| hdiutil attach /tmp/Catalina.dmg -noverify -mountpoint /Volumes/Catalina | |
| sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/Catalina --nointeraction | |
| hdiutil detach /Volumes/Install\ macOS\ Catalina | |
| hdiutil convert /tmp/Catalina.dmg -format UDTO -o ~/Catalina.cdr | |
| mv ~/Catalina.cdr ~/Catalina.iso |