Skip to content

Instantly share code, notes, and snippets.

View jaequery's full-sized avatar
🏠
Working from home

Jae Lee jaequery

🏠
Working from home
  • Los Angeles, CA
View GitHub Profile
@jaequery
jaequery / dockerfile-chromium-nvm
Created April 19, 2022 22:23
Dockerfile with Chromium and NVM
FROM ubuntu:bionic
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN apt update -y
RUN apt install -y chromium-browser nodejs npm curl
# nvm environment variables
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 12.14.0
@jaequery
jaequery / cloudSettings
Created April 18, 2020 04:05
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-04-18T04:05:01.080Z","extensionVersion":"v3.4.3"}
@jaequery
jaequery / cloudSettings
Last active April 18, 2020 03:42
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-04-18T03:42:00.612Z","extensionVersion":"v3.4.3"}
@jaequery
jaequery / install_latest_docker_compose.sh
Last active June 10, 2016 05:29 — forked from luislobo/install_latest_docker_compose.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"

Requirements

  • Docker Machine + Docker
  • curl
  • A Virtualbox-driven Docker Machine called "default" docker-machine create --driver virtualbox default (this is the default with Docker toolkit).

Usage

The git.io URL (http://git.io/vsk46) is a shortened form of the raw url of the plist.

def self.convert_bd_in_hash(hash)
hash = hash.map_values do |v|
if v.class == BigDecimal
v.to_s('f')
else
v
end
end
return hash
end
def self.convert_bd_in_hash(hash)
hash.map_values do |v|
if v.class == BigDecimal
v.to_s('f')
end
end
return hash
end