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
### 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
@Kolyall
Kolyall / install.sh
Created November 26, 2019 14:46
Install WhatsUp to linux
[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 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")