Skip to content

Instantly share code, notes, and snippets.

View andrewmcodes's full-sized avatar
🌱

Andrew Mason andrewmcodes

🌱
View GitHub Profile
@andrewmcodes
andrewmcodes / libxml2.sh
Created February 2, 2021 16:31
Tricky Gem Install Commands
gem install libxml-ruby -v ‘3.1.0’ -- --with-xml2-config=/usr/local/opt/libxml2/bin/xml2-config --with-xml2-dir=/usr/local/opt/libxml2 --with-xml2-lib=/usr/local/opt/libxml2/lib --with-xml2-include=/usr/local/opt/libxml2/include
@andrewmcodes
andrewmcodes / component.html
Created February 3, 2021 04:22
Tailwind CSS Snippets
‎‎​
@andrewmcodes
andrewmcodes / release.yml
Last active February 6, 2021 05:59
GitHub Actions for Gems
name: release
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
steps:
{
"scripts": [],
"styles": []
}
@andrewmcodes
andrewmcodes / tasks.json
Created February 24, 2021 23:24
VS Code Tasks for Bridgetown + Snowpack
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "build",
"group": "build",
"problemMatcher": [],
"label": "npm: build",
"detail": "NODE_ENV=production BRIDGETOWN_ENV=production run-s build:snowpack"
@andrewmcodes
andrewmcodes / commands.zsh
Last active February 25, 2021 00:35
Setup Ruby on Rails with Node and Postgres on macOS Big Sur with asdf
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc
source ~/.zshrc
# ⚠️ You may want to restart your terminal ⚠️
brew doctor
brew install coreutils curl git gpg gawk zsh yarn asdf
echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ~/.zshrc
echo 'legacy_version_file = yes' >> ~/.asdfrc
# ⚠️ Restart your terminal ⚠️
asdf plugin add ruby
{
// Breadcrumbs
"breadcrumbs.enabled": false,
// Debug
"debug.console.fontSize": 13,
"debug.toolBarLocation": "docked",
// Diffeditor
"diffEditor.ignoreTrimWhitespace": false,
"diffEditor.renderSideBySide": false,
// Editor
{
"scripts": [],
"styles": []
}

Install

brew install asciinema

Authenticate

@andrewmcodes
andrewmcodes / icons-to-png.zsh
Last active March 10, 2021 01:45
Mac icns to png
function icns-to-png()
{
sips -s format png $1 --out $2
}