Skip to content

Instantly share code, notes, and snippets.

View denisinla's full-sized avatar
👋

denisinla

👋
View GitHub Profile
@denisinla
denisinla / Vagrantfile
Last active November 4, 2016 02:17 — forked from 0xIslamTaha/install_golang.sh
Vagrant + Centos7 + Go
Vagrant.configure(2) do |config|
config.vm.box = "centos/7"
config.vm.network "private_network", ip: "192.168.55.20"
config.vm.synced_folder ".", "/home/vagrant/dev", nfs: true
config.vm.provider "virtualbox" do |v|
v.name = "golangvbox"
end
config.vm.provision "shell", path: "provision.sh", privileged: true, binary: false
@denisinla
denisinla / docker-examples.md
Last active February 25, 2018 08:01 — forked from thaJeztah/docker-examples.md
Some docker examples

Commit, clone a container

To 'clone' a container, you'll have to make an image of that container first, you can do so by "committing" the container. Docker will (by default) pause all processes running in the container during commit to preserve data-consistency.

For example;

docker commit --message="Snapshot of my container" my_container my_container_snapshot:yymmdd
@denisinla
denisinla / ParentChild.es6
Created October 1, 2018 05:52 — forked from robba86/ParentChild.es6
Basic example to pass values between parent and child components in React.
/**
* Basic example to pass values between parent and child components in React
* Seems to be in line with this
* http://stackoverflow.com/questions/24147331/react-the-right-way-to-pass-form-element-state-to-sibling-parent-elements
* Now I have the state in parent and child. Is that good or bad? Why would I need it in child?
* Could probably take that out
* */
class Parent extends React.Component {
constructor(props) {
super(props);
@denisinla
denisinla / _readme.md
Last active September 13, 2019 05:36 — forked from hew/_readme.md
Operator Mono w/ Italics on OSX VIm

Operator Mono w/ Italics on OSX Vim

@denisinla
denisinla / .gitlab-ci.yml
Created March 3, 2020 18:19 — forked from Mazuh/.gitlab-ci.yml
Example of gitlab CI/CD for a create-react-app application on Amazon S3 Bucket.
image: nikolaik/python-nodejs:latest
stages:
- install
- test
- deploy
prodInstall:
stage: install
script: