Skip to content

Instantly share code, notes, and snippets.

View gyndav's full-sized avatar
👋

David Guyon gyndav

👋
View GitHub Profile
@gyndav
gyndav / INSTALL.md
Last active February 2, 2023 19:27
Apple M1

Things I wish I knew when setupping my Apple M1

Homebrew

prefix is now /opt/homebrew as opposed to Intel using $(brew --prefix) was slowing down my terminal to a degree, hence a static path approach end up loading both as still having both styles

# Zsh search path for executable
path=(
@gyndav
gyndav / magic.sh
Created December 13, 2018 21:21
macOS reset /tmp permissions recursively
chmod a=rwX,o+t /tmp -R
@gyndav
gyndav / whitespace_removal.rb
Created August 9, 2018 13:02
Ruby whitespace removal
String.new("Aaah FUUUU ".gsub(/[[:space:]]+/, "")
app@9a5c03fbb7b4:~/bimeio$ free
total used free shared buffers cached
Mem: 65960436 27498668 38461768 710252 50208 1079160
-/+ buffers/cache: 26369300 39591136
Swap: 0 0 0
app@9a5c03fbb7b4:~/bimeio$ free -m
total used free shared buffers cached
Mem: 64414 26854 37559 693 49 1053
-/+ buffers/cache: 25751 38662
Swap: 0 0 0
@gyndav
gyndav / gist:e2dc82007f8ac5d685348328e22b380c
Created December 20, 2017 10:41
docker-images auto build
1. having one layer for each languages among scala, ruby, node, elixir
2. having at least two bases in *Alpine Linux* and why not *slim* (Debian)
@gyndav
gyndav / gist:0698718da8c50bf1bcc5bb9b85e5a889
Last active December 20, 2017 09:06
Chromium + Firefox on Alpine Linux
# Chromium
https://bugs.alpinelinux.org/issues/8197
https://github.com/kouhin/alpine-node-chromium/blob/master/Dockerfile
https://github.com/rastasheep/alpine-node-chromium
# FF
https://github.com/karma-runner/karma-firefox-launcher/issues/76
https://hub.docker.com/r/leafney/alpine-selenium-firefox/~/dockerfile/
@gyndav
gyndav / Dockerfile
Last active August 6, 2023 20:56
install Scala and sbt on Alpine Linux
FROM openjdk:8u151-jre-alpine
ENV SCALA_VERSION=2.12.4 \
SCALA_HOME=/usr/share/scala
# NOTE: bash is used by scala/scalac scripts, and it cannot be easily replaced with ash.
RUN apk add --no-cache --virtual=.build-dependencies wget ca-certificates && \
apk add --no-cache bash curl jq && \
cd "/tmp" && \
wget --no-verbose "https://downloads.typesafe.com/scala/${SCALA_VERSION}/scala-${SCALA_VERSION}.tgz" && \

Keybase proof

I hereby claim:

  • I am gyndav on github.
  • I am gyndav (https://keybase.io/gyndav) on keybase.
  • I have a public key whose fingerprint is 2406 CB7A 4AF6 1CE8 1756 42BB 64ED 5B16 5859 4885

To claim this, I am signing this object:

@gyndav
gyndav / package.json
Created May 2, 2016 13:34 — forked from addyosmani/package.json
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js'",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",