Skip to content

Instantly share code, notes, and snippets.

View jimbalatero's full-sized avatar

Jim B jimbalatero

  • Travel Freely
  • PH
View GitHub Profile
@yuyasugano
yuyasugano / Dockerfile
Created October 2, 2020 13:54
Volume permission problems sample
FROM ubuntu:latest
RUN apt-get update && apt-get -y install gosu
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
@conradakunga
conradakunga / ssh-copy-id.ps1
Last active September 14, 2020 02:02
Copy SSH Key From Windows 10
function ssh-copy-id([string]$userAtMachine, [string]$port = 22) {
# Get the generated public key
$key = "$ENV:USERPROFILE" + "/.ssh/id_rsa.pub"
# Verify that it exists
if (!(Test-Path "$key")) {
# Alert user
Write-Error "ERROR: '$key' does not exist!"
}
else {
# Copy the public key across
@loilo
loilo / pass-slots.md
Last active May 7, 2024 09:07
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {