Skip to content

Instantly share code, notes, and snippets.

@kyl0b1te
kyl0b1te / gittips.md
Created December 18, 2019 14:09
git:tips

git tips

Change commit author

Basically all you need is to rebase to desired commit and use git ammend command.

  1. Rebase to target commit:
  • git rebase -i [COMMIT-HASH]
@kyl0b1te
kyl0b1te / Dockerfile
Created April 6, 2018 15:54
Docker laravel project builder
FROM php:7.1-cli
ENV COMPOSER_VERSION=1.6.3
# Update and install required packages
RUN apt-get update && apt-get install -y zlib1g-dev \
&& docker-php-ext-install zip
# Install composer
RUN curl https://getcomposer.org/download/${COMPOSER_VERSION}/composer.phar --output composer.phar \
@kyl0b1te
kyl0b1te / main.go
Created February 27, 2018 20:17
Golang producer/consumer interaction
package main
import (
"fmt"
"time"
)
func main() {
list := make(chan int)