Skip to content

Instantly share code, notes, and snippets.

Avatar
📱

Nick Unuchek Kolyall

📱
View GitHub Profile
View DOCKER.txt
################Move docker to another dir
1. Move .docker directory from C:\Users\username to D:\
2. Run C:\Users\username>mklink /j .docker D:\.docker
-------------------------------------------------------------------------------
DOCKER
-------------------------------------------------------------------------------
docker pull coturiv/ci-android
docker run -it coturiv/ci-android /bin/bash
docker container ls
@Kolyall
Kolyall / README.md
Created Jan 24, 2020
Setup of Linux
View README.md

Run jars:

sudo apt-get install binfmt-support
chmod a+rx myjar.jar
./myjar.jar

OR Install jarwrapper. After that (and by adding the executable bit) you can start the jar file just by entering the jarfile name.

@Kolyall
Kolyall / gradle dile
Created Jan 24, 2020
Gradle file example
View gradle dile
https://source.jalview.org/crucible/rdiff/jalview?csid=edfb6c264fce9f6251a129663c797b72e06ebc5e&u&N
https://source.jalview.org/crucible/browse/~br=improvement%402fJAL-3449_add_install4j_installer_getdown_versions_to_jalview_console.2/jalview/build.gradle?hb=true
@Kolyall
Kolyall / install.sh
Created Nov 26, 2019
Install WhatsUp to linux
View install.sh
[Desktop Entry]
Name=Franz
Comment=
Exec=/opt/franz/franz
Icon=/opt/franz/franz-icon.png
Terminal=false
Type=Application
Categories=Messaging,Internet
@Kolyall
Kolyall / FavMainAdapter.kt
Last active Nov 21, 2019
FragmentStatePagerAdapter
View FavMainAdapter.kt
class FavMainAdapter constructor(
val context: Context?,
fragmentManager: FragmentManager
) : BaseFragmentPagerAdapter(fragmentManager) {
override fun createItem(position: Int): BaseFragment {
return when (position) {
0 -> MyCollectionsFragment()
1 -> MyPlaylistsFragment()
else -> throw IndexOutOfBoundsException("IndexOutOfBounds $position")
@Kolyall
Kolyall / README.sh
Last active Jan 12, 2021
Install Ubuntu
View README.sh
sudo apt-get -y update
sudo apt install gnome-clocks
#------------------------PuTTY--------------
#-----https://numato.com/help/blog/how-to-install-putty-on-linux/
#-----https://www.ssh.com/ssh/putty/linux/puttygen
#-------------------------------------------
sudo apt-get -y update
sudo apt-get -y install -y putty
putty
@Kolyall
Kolyall / TIPS.md
Last active Jun 18, 2020
Android Tips
View TIPS.md

Лайфхак 1:

для тех кому как и мне не нравиться видеть зависимость в списке основных зависимостей приложения например

testImplementation "junit:junit:+"

создаем файл testDependencies.gradle :

dependencies {