Skip to content

Instantly share code, notes, and snippets.

View vchepeli's full-sized avatar

Vitalij Čepeljuk vchepeli

  • Phrase CZ
  • New York, USA
View GitHub Profile
@vchepeli
vchepeli / android-setup.sh
Last active January 25, 2024 12:48 — forked from mate-h/android-setup.sh
Downloads the Android Command Line tools for MacOS and installs the platform-tools (including ADB) package with the sdkmanager CLI. Useful for installing basic Android tooling and the Android Emulator without the need to install Android Studio or the entire SDK.
# http://johnborg.es/2019/04/android-setup-macos.html
# install rtx from https://github.com/jdx/rtx
rtx install java@17
rtx global java@17
# install brew from https://brew.sh/
# sdkmanager, avdmanager
brew install --cask android-commandlinetools
@vchepeli
vchepeli / docker-osx-shared-folders.rst
Created July 19, 2019 13:54 — forked from codeinthehole/docker-osx-shared-folders.rst
How to share folders with docker containers on OSX

How to share a folder with a docker container on OSX

Mounting shared folders between OSX and the docker container is tricky due to the intermediate boot2docker VM. You can't use the usual docker -v option as the docker server knows nothing about the OSX filesystem - it can only mount folders from the boot2docker filesystem. Fortunately, you can work around this using SSHFS.

@vchepeli
vchepeli / curl.md
Created July 16, 2019 13:37 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@vchepeli
vchepeli / create-certs.sh
Created July 16, 2019 11:43 — forked from gesellix/create-certs.sh
add TLS/self-signed certificates to the Docker for Mac daemon
#!/bin/sh
mkdir -p certs
openssl req -x509 -days 365 -newkey rsa:4096 -nodes -sha256 -out certs/domain.crt -keyout certs/domain.key -subj "/C=DE/ST=Berlin/L=Berlin/O=IT/CN=docker.local"
@vchepeli
vchepeli / cloud.mail.ru-webdav.md
Created June 25, 2019 13:01 — forked from starlinq/cloud.mail.ru-webdav.md
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 18.04
title Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 18.04
date 2019-02-06

С 2019 года прекратилась поддержка ПК-клиент приложения Cloud.mail.ru для Linux (см. страницу https://help.mail.ru/cloud_web/app/about). Для многих людей, имеющих хороший объем диска в этом облачном хранилище, стал актульным вопрос что-же делать дальше.

Если у вас подключен платный тариф, вы можете подключиться к сервису по протоколу WebDAV. На вашем компьютере Облако будет выглядеть как обычная файловая система. Инструкция по такому подключению есть здесь https://help.mail.ru/cloud_web/app/webdav#linux

@vchepeli
vchepeli / Setup.md
Created May 27, 2019 16:08 — forked from derrickrobb/Setup.md
WSL Docker Setup
@vchepeli
vchepeli / wsl-bootstrap.sh
Created May 27, 2019 16:07 — forked from augustohp/wsl-bootstrap.sh
Bootstraps a new environment on WSL (Windows Subsystem for Linux) with my configuration
#!/usr/bin/env bash
# vim: noet ft=sh sw=4 ts=4:
#
# Author: Augusto Pascutti <augusto.hp+oss@gmail.com>
#
# This will help you bootstrap a Windows machine with WSL with Docker
# and some other utilities. This is heavily customized for my own use.
#
# Requirements (or things that should already be installed):
# - WSL (with Debian or Ubuntu)
@vchepeli
vchepeli / persistent_c_mount_wsl.sh
Created May 27, 2019 12:57 — forked from sgtoj/persistent_c_mount_wsl.sh
Ubuntu for Windows: Mounting C: Drive to WSL's Root
# allow `mount` cmd without password
echo "$USER ALL=NOPASSWD: /bin/mount" | (sudo su -c 'EDITOR="tee -a" visudo')
# add the mount directive to `fstab`
sudo mkdir -p /c
sudo sh -c "echo '/mnt/c /c none bind' >> /etc/fstab"
# update to `.bashrc` to auto mount at login
echo "sudo mount -a" >> ~/.bashrc
# now reload it
source ~/.bashrc
@vchepeli
vchepeli / script
Created May 16, 2019 12:14 — forked from avitsidis/script
SSH into mobylinux (docker for windows)
#based on po75558Manuel Patrone comment on https://forums.docker.com/t/how-can-i-ssh-into-the-betas-mobylinuxvm/10991/8
#get a privileged container with access to Docker daemon
docker run --privileged -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker alpine sh
#run a container with full root access to MobyLinuxVM and no seccomp profile (so you can mount stuff)
docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh
#switch to host FS
chroot /host
@vchepeli
vchepeli / p4merge-git-tool.md
Created May 3, 2019 09:39 — forked from dgoguerra/p4merge-git-tool.md
Setup p4merge as difftool and mergetool on Windows

Setting up p4merge as diff and merge tool on Windows. Tried for Git version 1.8.4.msysgit.0.

Two alternatives are explained: using the command line, and directly editing the config file.

Setting up from the command line

Being the installation path "C:Program Files\Perforce\p4merge.exe", just run:

$ git config --global diff.tool p4merge