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
# https://github.com/hotwired/turbo-rails/blob/main/UPGRADING.md#key-digest-changes-in-111:~:text=Rails.application.config.after_initialize | |
# | |
Rails.application.config.after_initialize do |app| | |
key_generator = ActiveSupport::KeyGenerator.new app.secret_key_base, | |
iterations: 1000, | |
hash_digest_class: OpenSSL::Digest::SHA1 | |
app.message_verifier("ActiveStorage").rotate(key_generator.generate_key("ActiveStorage")) | |
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
$(document).ready(function(){ | |
$('#search').selectize({ | |
render: { | |
item: function(item, escape){ | |
var el = $(".tag.tag-" + item.value) | |
return "<div>" + (el.is("*") ? el.prop("outerHTML") : item.value) + "</div>"; | |
}, | |
option: function(item, escape){ | |
var el = $(".tag.tag-" + item.value) | |
return "<div>" + (el.is("*") ? el.prop("outerHTML") : item.value) + "</div>"; |
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
rvm list | |
rvm install $(cat .ruby-version) | |
rvm --default use $(cat .ruby-version) | |
ruby -v | |
docker run -d -i --name postgres -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust postgres | |
export DATABASE_URL=postgresql://postgres:@localhost | |
./bin/setup | |
./bin/setup |
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
FROM ruby:3.1-slim-bookworm as jemalloc | |
RUN apt-get update | |
RUN apt-get install -y wget | |
RUN apt-get install -y build-essential | |
RUN wget -O - https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-5.3.0.tar.bz2 | tar -xj && \ | |
cd jemalloc-5.3.0 && \ | |
./configure && \ | |
make && \ |
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
module Tilt::SassTemplatePatch | |
def sass_options | |
super.delete(:cache) | |
end | |
end | |
Tilt::SassTemplate.prepend(Tilt::SassTemplatePatch) | |
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
curl https://sh.rustup.rs -sSf | sh | |
tail ~/.bashrc | |
source "$HOME/.cargo/env" | |
cargo --version | |
cargo new --lib wasm | |
cd !$ | |
cargo install wasm-pack | |
wasm-pack --version |
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
version: '3.8' | |
services: | |
web: | |
environment: | |
APP_HOST: "${CODESPACE_NAME}-${DOCKER_WEB_PORT:-3000}.${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}" |
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
// curl -s https://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages | grep Filename: | |
// sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
// sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
// sudo apt update | |
// sudo apt install google-chrome-stable | |
wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb | |
sudo apt install -y --allow-downgrades /tmp/chrome.deb | |
rm /tmp/chrome.deb |
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
amplify/ | |
aws-exports.js |
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
aws amplify delete-backend-environment --app-id APPID --environment-name ENV --profile PROFILE |
NewerOlder