I'm trying to figure out how to use rebar to:
- create erlang project
- add a dependency on an erlang module from github
- start the app via the erl console
- create a release and start the app from the release (via the generated scripts)
| // EntryPoint.js | |
| define(function () { | |
| return function EntryPoint(model1, model2) { | |
| // stuff | |
| }; | |
| }); | |
| // Model1.js | |
| define(function () { | |
| return function Model1() { |
| #!/bin/bash | |
| # store the current dir | |
| CUR_DIR=$(pwd) | |
| # Let the person running the script know what's going on. | |
| echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n" | |
| # Find all git repositories and update it to the master latest revision | |
| for i in $(find . -name ".git" | cut -c 3-); do |
| # Start Keymando at login | |
| # ----------------------------------------------------------- | |
| start_at_login | |
| # System-wide mappings | |
| # ----------------------------------------------------------- | |
| # Ctrl-Backspace maps to Alt-Delete for laptop use | |
| map "<Ctrl-delete>", "<Alt-backspace>" # (delete & bs are reversed in keymando) | |
| map "<Ctrl-Cmd-delete>", "<Cmd-backspace>" # delete to EOL |
| #!/usr/bin/env bash | |
| # login as root and run this script via bash & curl: | |
| apt-get update | |
| apt-get install -y build-essential bison openssl libreadline5 libreadline5-dev curl \ | |
| git-core zlib1g zlib1g-dev libopenssl-ruby libcurl4-openssl-dev libssl-dev \ | |
| libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libmysqlclient-dev \ | |
| mysql-client mysql-server |
| app.use(express.methodOverride()); | |
| // ## CORS middleware | |
| // | |
| // see: http://stackoverflow.com/questions/7067966/how-to-allow-cors-in-express-nodejs | |
| var allowCrossDomain = function(req, res, next) { | |
| res.header('Access-Control-Allow-Origin', '*'); | |
| res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE'); | |
| res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization'); | |
| #!/bin/bash | |
| # Takes one parameter: a remote git repository URL. | |
| # | |
| # This is the stuff this script does: | |
| # | |
| # 1. Clones the repository | |
| # 2. Fetches all remote branches | |
| # 3. Compresses the folder | |
| # 4. Deletes the cloned folder. |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| app.filter('bytes', function() { | |
| return function(bytes, precision) { | |
| if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) return '-'; | |
| if (typeof precision === 'undefined') precision = 1; | |
| var units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'], | |
| number = Math.floor(Math.log(bytes) / Math.log(1024)); | |
| return (bytes / Math.pow(1024, Math.floor(number))).toFixed(precision) + ' ' + units[number]; | |
| } | |
| }); |
| # development.pp | |
| stage { 'req-install': before => Stage['rvm-install'] } | |
| class misc { | |
| package { | |
| [ | |
| 'vim', | |
| ]: | |
| ensure => installed, | |
| } |