Skip to content

Instantly share code, notes, and snippets.

View Sar777's full-sized avatar
🎯
Focusing

Arthur Antonevich Sar777

🎯
Focusing
  • Minsk, Republic of Belarus
  • 11:59 (UTC +03:00)
View GitHub Profile
2.144.0.0/14; 2.176.0.0/12; 5.22.0.0/17; 5.22.192.0/19; 5.23.112.0/21; 5.28.32.0/21; 5.34.192.0/19; 5.52.0.0/16; 5.53.32.0/19; 5.56.128.0/22; 5.56.132.0/24; 5.56.135.0/24; 5.57.32.0/21; 5.61.24.0/23; 5.61.26.0/24; 5.61.29.0/24; 5.61.30.0/23; 5.61.72.0/21; 5.62.160.0/19; 5.63.8.0/21; 5.72.0.0/14; 5.78.0.0/16; 5.102.32.0/20; 5.106.0.0/16; 5.112.0.0/12; 5.134.128.0/18; 5.144.128.0/21; 5.145.112.0/21; 5.159.48.0/21; 5.160.0.0/15; 5.190.0.0/16; 5.198.160.0/19; 5.200.64.0/18; 5.200.128.0/17; 5.201.128.0/17; 5.202.0.0/16; 5.208.0.0/12; 5.226.48.0/21; 5.232.0.0/13; 5.250.0.0/17; 31.2.128.0/17; 31.7.64.0/18; 31.7.128.0/20; 31.14.80.0/20; 31.14.112.0/20; 31.14.144.0/20; 31.24.204.0/22; 31.24.232.0/21; 31.25.88.0/21; 31.25.104.0/21; 31.25.128.0/21; 31.25.232.0/21; 31.29.32.0/19; 31.40.0.0/21; 31.47.32.0/19; 31.56.0.0/14; 31.130.176.0/20; 31.170.48.0/20; 31.171.216.0/21; 31.184.128.0/18; 31.193.112.0/21; 31.193.144.0/20; 31.217.208.0/21; 37.9.248.0/21; 37.10.64.0/22; 37.19.80.0/20; 37.27.0.0/16; 37.32.0.0/19; 37.32.32.0/
class AccountObjectSetCheats
{
bool AutoBattle = false;
AccountobjectSetCheats Type;
int8 SlotLockCheat = 0;
};
class AccountObjectGetProfile
{
std::string Filename;
@Sar777
Sar777 / build-boost-libc++
Created September 3, 2016 23:04 — forked from jimporter/build-boost-libc++
Build Boost against libc++
#!/bin/sh
# First, build libc++ See <http://libcxx.llvm.org/>, "Build on Linux using CMake
# and libsupc++." and substitute libsupc++ for libstdc++. NOTE: You'll probably
# need to explicitly link libsupc++ when you compile your own code!
#
# Next, download Boost and extract it somewhere. Set SRC_DIR to that location.
SRC_DIR=$HOME/src/boost_1_55_0
# Set this to be the install prefix. "/usr" is also a good choice.
@Sar777
Sar777 / quote.java
Last active October 30, 2016 13:11
package by.onliner.newsonlinerby.Parser.Parsers;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import by.onliner.newsonlinerby.Parser.IContentParser;
import by.onliner.newsonlinerby.Structures.Comments.CommentQuote;
/**
* Парсинг цитат к комментариям
@Sar777
Sar777 / webpack.server.config.js
Created April 10, 2017 10:37 — forked from madx/webpack.server.config.js
Webpack config for an Express app in Node.js
const path = require("path")
const fs = require("fs")
// -- Webpack configuration --
const config = {}
// Application entry point
config.entry = "./src/server/index.js"
@Sar777
Sar777 / AccountAuthenticator.java
Created June 3, 2017 14:08 — forked from burgalon/AccountAuthenticator.java
Implementing OAuth2 with AccountManager, Retrofit and Dagger
public class AccountAuthenticator extends AbstractAccountAuthenticator {
private final Context context;
@Inject @ClientId String clientId;
@Inject @ClientSecret String clientSecret;
@Inject ApiService apiService;
public AccountAuthenticator(Context context) {
super(context);
@Sar777
Sar777 / Api.java
Created June 8, 2017 15:22 — forked from imminent/Api.java
Call retrying with Retrofit 2.0
package com.example.api;
import java.util.Map;
import retrofit.Call;
import retrofit.http.Body;
import retrofit.http.GET;
import retrofit.http.POST;
public interface Api {
@Sar777
Sar777 / AuthInterceptor.java
Created June 26, 2017 22:45
OkHttp network interceptor for replace http status code.
public class AuthInterceptor implements Interceptor {
@Override
public Response intercept(@NonNull Chain chain) throws IOException {
Request request = chain.request();
// Handle only post requests
if (!request.method().equals("POST")) {
return chain.proceed(chain.request());
}
@Sar777
Sar777 / how-to-install-latest-gcc-on-ubuntu-lts.txt
Created July 3, 2017 19:08 — forked from application2000/how-to-install-latest-gcc-on-ubuntu-lts.txt
How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
These commands are based on a askubuntu answer http://askubuntu.com/a/581497
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \