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 | |
export UE4_VERSION="UnrealEngine-4.27.2-release" | |
export UE4_DEST_FOLDER="$HOME/Software/LinuxInstalled" | |
export UE4_GAME_PROJECT="" | |
export UE4_TOKEN="" | |
export UE4_ASSET_ID_SRC="" | |
export UE4_ASSET_ID_DEPS="" |
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
#pragma once | |
#include <vector> | |
#include <string> | |
#include <sstream> | |
auto split (const std::string& line, char seperator, bool remove_empty = false) | |
{ | |
std::vector<std::string> strs; |
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 ! [ -f "$1" ] ; then exit 1 ; fi | |
if [ "$2" == "" ] ; then exit 2 ; fi | |
FULL_PATH=$(realpath "$1") | |
DIR_NAME=$(dirname "${FULL_PATH}") | |
FILE_NAME=$(basename -- "${FULL_PATH}") | |
BASE_NAME="${FILE_NAME%.*}" |
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
1) install qtcreator | |
2) install qt + desktop compilers | |
2) create new ue4 project (don't use white spaces in the path to project!!!) | |
3) add new C++ class | |
4) open QtCreator | |
5) QtCreator -> Open Project -> <path_to_ue4_project> -> [project].pro | |
6) QtCreator -> Projects |
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
#include <iostream> | |
#include <unistd.h> | |
#include <arpa/inet.h> | |
#include <errno.h> | |
#include <string.h> | |
#define DEF_TCP_PORT 20197 | |
int main() |
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
#include <iostream> | |
#include <unistd.h> | |
#include <arpa/inet.h> | |
#include <errno.h> | |
#include <string.h> | |
#define SENDER_PORT 55555 | |
#define RECEIVER_PORT 55554 | |
#define RECEIVER_ADDR "0.0.0.0" |
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 | |
# Note: Wine64 is needed! | |
sudo apt install wine64 winetricks winbind cabextract | |
rm -rf "$HOME/.wine64EpicGamesLauncher" | |
export WINEPREFIX="$HOME/.wine64EpicGamesLauncher" | |
export WINEARCH="win64" | |
winetricks d3dx9 corefonts dotnet20 |
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 | |
sudo apt install wget unzip git libusb-1.0-0-dev libzip-dev libbz2-dev pkg-config cmake libssl-dev g++ -y | |
git clone "https://github.com/NXPmicro/mfgtools.git" | |
pushd "mfgtools" | |
wget -nc "https://www.voipac.com/downloads/imx/iMX6_OpenRex/Tools/mfgtools-Imx6Rex.zip" | |
unzip "mfgtools-Imx6Rex.zip" |
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
#include <iostream> | |
using namespace std; | |
template<class T> | |
class BinTree | |
{ | |
T _key; | |
bool _init; | |
BinTree<T> *_btLeft, *_btRight; |
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 | |
# Set TTL | |
echo 'net.ipv4.ip_default_ttl=65' | sudo tee /etc/sysctl.d/99_default_ttl.conf | |
sudo sysctl --system | |
# Set User-Agent | |
sed -i 's/general\.useragent\.override*//g' "$HOME/.mozilla/firefox/"*".default/prefs.js" |
NewerOlder