Skip to content

Instantly share code, notes, and snippets.

View arduanov's full-sized avatar
🍄
work is fun

Marsel Arduanov arduanov

🍄
work is fun
  • Perm, Russia
View GitHub Profile
@arduanov
arduanov / JwtUsageExample.cpp
Last active May 9, 2020 16:14
UE4 JWT Parser usage
#include "Kismet/GameplayStatics.h"
// ...
// Obtain reference to UXsollaLoginSubsystem object. It is assumed that login subsystem has been already initialized.
UGameInstance* GameInstance = UGameplayStatics::GetGameInstance(this);
UXsollaLoginSubsystem* XsollaLoginSubsystem = GameInstance->GetSubsystem<UXsollaLoginSubsystem>();
// Get "email" value from token youi've received previously from launcher
@arduanov
arduanov / gist:ae2f9b30b35a79f0a22b5011563bb8aa
Created December 31, 2018 18:15 — forked from luckydev/gist:b2a6ebe793aeacf50ff15331fb3b519d
Increate max no of open files limit in Ubuntu 16.04/18.04 for Nginx
# maximum capability of system
user@ubuntu:~$ cat /proc/sys/fs/file-max
708444
# available limit
user@ubuntu:~$ ulimit -n
1024
# To increase the available limit to say 200000
user@ubuntu:~$ sudo vim /etc/sysctl.conf
@arduanov
arduanov / README.md
Last active June 9, 2018 18:29 — forked from agnoster/README.md
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@arduanov
arduanov / hadoop_spark_osx
Created April 20, 2017 15:53 — forked from cjzamora/hadoop_spark_osx
Hadoop + Spark installation (OSX)
Source: http://datahugger.org/datascience/setting-up-hadoop-v2-with-spark-v1-on-osx-using-homebrew/
This post builds on the previous setup Hadoop (v1) guide, to explain how to setup a single node Hadoop (v2) cluster with Spark (v1) on OSX (10.9.5).
Apache Hadoop is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage. Rather than rely on hardware to deliver high-availability, the library itself is designed to detect and handle failures at the application layer, so delivering a highly-available service on top of a cluster of computers, each of which may be prone to failures. The Apache Hadoop framework is composed of the following core modules:
HDFS (Distributed File System): a distributed file-system that stores data on commodity machines, providing very high aggregate bandwidth across the cluster.
YARN (Yet A
@arduanov
arduanov / php-fpm-cli
Created September 25, 2015 19:47 — forked from muhqu/php-fpm-cli
#!/bin/bash
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Mathias Leppich <mleppich@muhqu.de>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell