Видеозаписи всех докладов
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z "$1" ] | |
then | |
echo "You have to provide a required host ip addr to connect" | |
else | |
HOST=$1 | |
fi | |
if [ -z "$2" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM GENRE Electronica | |
REM DATE 2020 | |
PERFORMER "MASTER BOOT RECORD" | |
TITLE "VirtuaVerse OST" | |
FILE "MASTER BOOT RECORD 'VirtuaVerse OST' [Full Album - Official]-u_1UF6MZGUM.mp3" MP3 | |
TRACK 01 AUDIO | |
TITLE "VirtuaVerse" | |
PERFORMER "MASTER BOOT RECORD" | |
INDEX 01 00:00:00 | |
TRACK 02 AUDIO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val moshi = Moshi.Builder() | |
.add(SkipBadListObjectsAdapterFactory()) | |
.build() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
fun onLoginButtonClick(login: String, password: String) { | |
... | |
authorizationUseCase.login(login, password) | |
.subscribe( | |
{ onLoginSuccess(it) }, | |
{ onError(it) } | |
) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
private fun processServerException(exception: ServerException) { | |
viewState.showError(exception.description) | |
when (exception.code) { | |
ErrorCode.INVALID_CREDENTIALS -> invalidCredentialsCallback() | |
ErrorCode.AUTHENTICATION_REQUIRED -> authenticationRequiredCallback() | |
ErrorCode.UNKNOWN -> unknownServerErrorCallback() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
@CallSuper | |
open fun onError(throwable: Throwable) { | |
when (throwable) { | |
is HttpException -> { | |
val responseBody = throwable.response().errorBody().string() | |
try { | |
val serverException = parseError(responseBody) | |
processServerException(serverError) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a directory | |
mkdir ~/tmux-install | |
cd ~/tmux-install | |
# Get the files | |
curl -OL https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz | |
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz | |
# Extract them | |
tar xzf tmux-2.3.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# It brings JDK8 to Android Studio | |
__author__ = 'Fi5t' | |
from plistlib import readPlist, writePlist | |
def set_jdk(plist, version): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: UTF-8 -*- | |
__author__ = 'Fi5t' | |
from Tkinter import * | |
import subprocess | |
import io | |
import sys | |
import ConfigParser |
NewerOlder