Skip to content

Instantly share code, notes, and snippets.

View Kolyall's full-sized avatar
📱

Nick Unuchek Kolyall

📱
View GitHub Profile
@Kolyall
Kolyall / android.sh
Created March 7, 2023 08:40
android.sh
#!/bin/bash
# Путь к Android Studio
android_studio_path=/home/marina/android/android-studio
# Путь к иконке приложения
icon_path=${android_studio_path}/bin/studio.png
# Путь к ярлыку на рабочем столе
desktop_path=~/Desktop/AndroidStudio.desktop
@Kolyall
Kolyall / README.sh
Last active August 25, 2022 12:46
Install Ubuntu
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 / FavMainAdapter.kt
Last active February 2, 2022 16:43
FragmentStatePagerAdapter
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 / TIPS.md
Last active December 22, 2021 12:02
Android Tips

Лайфхак 1:

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

testImplementation "junit:junit:+"

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

dependencies {
### Keybase proof
I hereby claim:
* I am kolyall on github.
* I am spamick (https://keybase.io/spamick) on keybase.
* I have a public key ASAAlBrlpBvAuLsiOz-iSJTcWIuIQF3lZKPsXuLV_b5Wtwo
To claim this, I am signing this object:
@Kolyall
Kolyall / DOCKER.txt
Last active October 23, 2020 21:07
Docker
################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 January 24, 2020 20:56
Setup of Linux

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 January 24, 2020 09:50
Gradle file example
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