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
# Proof of Concept | |
class ArrayifyBehavior | |
def initialize(data) | |
@data = data | |
end | |
def self.call(data) | |
new(data) | |
end |
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
function rvm --description='Ruby enVironment Manager' | |
# run RVM and capture the resulting environment | |
set --local env_file (mktemp -t rvm.fish.XXXXXXXXXX) | |
bash -c 'PATH=$GEM_HOME/bin:$PATH;RVMA=$(which rvm);RVMB=$(whereis rvm | sed "s/rvm://");source $(if test $RVMA;then echo $RVMA | sed "s/bin/scripts/";elif test $RVMB; then echo $RVMB | sed "s/rvm/rvm\/scripts\/rvm/"; else echo ~/.rvm/scripts/rvm; fi); rvm "$@"; status=$?; env > "$0"; exit $status' $env_file $argv | |
# apply rvm_* and *PATH variables from the captured environment | |
and eval (grep -E '^rvm|^[^=]*PATH|^GEM_HOME' $env_file | grep -v '_clr=' | sed '/^[^=]*PATH/s/:/" "/g; s/^/set -xg /; s/=/ "/; s/$/" ;/; s/(//; s/)//') | |
# needed under fish >= 2.2.0 | |
and set -xg GEM_PATH (echo $GEM_PATH | sed 's/ /:/g') |
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
git clone https://github.com/vim/vim.git | |
cd vim | |
./configure --with-features=huge \ | |
--enable-multibyte \ | |
--enable-rubyinterp=yes \ | |
--enable-python3interp=yes \ | |
--with-python-config-dir=$(python3-config --configdir) \ | |
--enable-perlinterp=yes \ | |
--enable-luainterp=yes \ | |
--enable-gui=gtk2 \ |
ssh-keygen -t rsa -b 4096
(asuming destination SSH is up and configured for accepting keys)
cat ~/.ssh/id_rsa.pub
At the moment upgrading vue-loader
causes some changes in how things are done. These are my config options for these items just to get it working.
const { environment } = require('@rails/webpacker')
const coffee = require('./loaders/coffee')
const vue = require('./loaders/vue')
environment.loaders.append('vue', vue)
Gem | Description |
---|---|
annotate_models | writes the model schema to the model tests and app model files as comments. |
arbre | an Object Oriented DOM Tree in Ruby |
arel | a relational algebra |
benchmark-ips | provides iteration per second benchmarking for Ruby |
byebug | Rails' default debug tool of choice |
churn | the history of churns to give the number of times a file, class, or method is changing during the life of a project |
coveralls | online service for code coverage |
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
The following configuration doesn't work. | |
docker run -d --name gitlab-dind --privileged --restart always --network gitlab-runner-net -v /var/lib/docker -v /etc/gitlab-runner:/etc/gitlab-runner -v /var/run/docker.sock:/var/run/docker.sock docker:18.06.1-ce-dind --storage-driver=overlay2 | |
docker run -d --name gitlab-runner --restart always --network gitlab-runner-net -v /etc/gitlab-runner:/etc/gitlab-runner -e DOCKER_HOST=tcp://gitlab-dind:2375 gitlab/gitlab-runner:alpine | |
docker run -it --rm -v /etc/gitlab-runner:/etc/gitlab-runner gitlab/gitlab-runner:alpine register --executor docker --docker-image docker:18.06.1-ce --docker-volumes /var/run/docker.sock:/var/run/docker.sock |
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
apt-get update | |
apt-get install ruby nodejs curl build-essential ruby-dev libxml2-dev | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
apt-get update && apt-get install yarn | |
curl https://sh.rustup.rs -sSf | sh | |
source $HOME/.cargo/env | |
export USER=root | |
gem install bundler rake webpacker_cli |
NewerOlder