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
https://pypi.org/project/PySocks/#files | |
/usr/hdp/current/superset/bin/pip install sqlalchemy-clickhouse --proxy socks5://FQDN:22020 |
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
HiveServer2 | |
hive://hive@FQDN:10000/default |
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
Guides: | |
https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.0/adding-druid/content/druid_add_superset.html | |
https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.4/integrating-hive/content/hive_start_the_superset_service.html | |
ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (pg.InternalError) FATAL: no pg_hba.conf entry for host "::1", user "superset", database "superset", SSL off | |
su - postgres | |
vi /var/lib/pgsql/data/pg_hba.conf | |
host all superset ::/0 md5 |
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
mypath="/hdfspath/to/data/" | |
myzip="name of myfile" # without the .zip extension | |
hadoop fs -chmod 777 "$mypath" | |
hadoop fs -ls "$mypath$myzip.zip".* | |
hadoop fs -cat "$mypath$myzip.zip".* > file.zip | |
ls -la | |
unzip file.zip -d "$myzip" |
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
wget -r -k -l 7 -p -E -nc -erobots=off --user-agent="Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/5З7.З6 (KHTML, like Gecko) Chrome/60.0.З112.11З Safari/5З7.36" www.bartek.wojtyca.pl |
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 str = "abAsdhqfdkjggjsjfpg".toList | |
val str1 = str | |
.groupBy(identity) // s -> List(s,s) | |
.mapValues(_.size) // s -> 2 | |
//.map( e => (e._1,e._2.length)) // s -> 2 | |
.toList // (s,2) | |
// with tail recursion | |
def timesFirst(chars: List[Char]) : List[(Char,Int)] = { | |
@tailrec // comiler cheks if really tailrecursive |
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
import StatType.StatType | |
object NewMain extends App{ | |
val one = new Person("sss") | |
val two = new Person("sas") with IHaveStats | |
two.requirements = Set(new Force(40),new Wind(40)) | |
two.requirements.foreach(obj => println(s"${obj.name} + ${obj.modifierType} + ${obj.value}")) | |
} |
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
#### Unreal Engine | |
## Default | |
Intermediate/ | |
Saved/ | |
Binaries/ | |
DerivedDataCache/ | |
## Extra | |
Content/StarterContent/HDRI |
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
#define OUT | |
// Used for saving ViewPortLocation | |
FVector PlayerViewPointLocation; | |
// Used for saving ViewPortRotation | |
FRotator PlayerViewPointRotation; | |
void GetPlayerViewPort(){ | |
GetWorld()->GetFirstPlayerController()->GetPlayerViewPoint( | |
OUT PlayerViewPointLocation, |
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
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class BarleyBrake : MonoBehaviour | |
{ | |
/// <summary> | |
/// Событие, которое произойдёт при победе | |
/// </summary> |
NewerOlder