Skip to content

Instantly share code, notes, and snippets.

run "Docker Quickstart Terminal" utility

Run command: "C:\Program Files\Docker Toolbox\docker-machine" env default --shell=cmd

And past it's output into a console

cd folderNameWithDockerfile
@Alexnder
Alexnder / docker-linux.md
Last active January 8, 2017 01:03
Docker debian install

Install docker

curl -fsSL https://get.docker.com/ | sh
sudo su
curl -L https://github.com/docker/machine/releases/download/v0.6.0/docker-machine-`uname -s`-`uname -m` > /usr/local/bin/docker-machine && chmod +x /usr/local/bin/docker-machine

Start docker daemon

sudo su -
@Alexnder
Alexnder / vim.md
Last active May 7, 2016 20:56
vim install & configure

create ~/.vimrc

cat > ~/.vimrc <<EOF
" activates filetype detection
filetype plugin indent on

" activates syntax highlighting among other things
syntax on

" allows you to deal with multiple unsaved

start /b emulator -avd react-native

react-native init AwesomeProject

cd AwesomeProject

react-native run-android

git add .
set GIT_AUTHOR_DATE='Sat Oct 15 10:32:10 2016 +0300'
set GIT_COMMITTER_DATE='Sat Oct 15 10:32:10 2016 +0300'
git commit -m "Fixed"
@Alexnder
Alexnder / batch.md
Created November 8, 2016 14:04
batch helper

phpunit.phar example

@php "%~dp0phpunit.phar" %*
(function() {
"use strict";
const ACTION_INTERVAL = 250;
let christmasEmojiTypes = ['snowflake', 'christmas_tree', 'snowman', 'snow_cloud'];
function getEmogies(container, type, reacted = '') {
if (reacted) {
reacted = ':not(.user_reacted)';
}

Disable suspend by closing

sudo vim /etc/systemd/logind.conf

Change param to HandleLidSwitch=ignore

systemctl restart systemd-logind

Git

# run in administrator privileged command prompt window 
npm install --global --production windows-build-tools
npm update 

It doesn't close opened apps

Fix unity slow animation

DISPLAY=:0 unity --replace

Fix that apps don't react to mouse clicks:

compiz --replace &