Skip to content

Instantly share code, notes, and snippets.

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 && \
module Tilt::SassTemplatePatch
def sass_options
super.delete(:cache)
end
end
Tilt::SassTemplate.prepend(Tilt::SassTemplatePatch)
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
@goosys
goosys / docker-compose.override.yml
Created July 21, 2023 07:36
GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN
version: '3.8'
services:
web:
environment:
APP_HOST: "${CODESPACE_NAME}-${DOCKER_WEB_PORT:-3000}.${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}"
// 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
@goosys
goosys / .gitignore
Last active February 18, 2022 16:07
Deploying Amplify App via CI
amplify/
aws-exports.js
aws amplify delete-backend-environment --app-id APPID --environment-name ENV --profile PROFILE
AWSTemplateFormatVersion: 2010-09-09
Metadata:
'AWS::CloudFormation::Designer':
4a374b90-9843-4f6a-a376-654dde1deb83:
size:
width: 60
height: 60
position:
x: 110
'y': 120
aaa
bbb
ccc
AWSTemplateFormatVersion: 2010-09-09
Metadata:
'AWS::CloudFormation::Designer':
f4584f57-70c6-4f93-912b-8035bca539de:
size:
width: 60
height: 60
position:
x: 420
'y': 110