Skip to content

Instantly share code, notes, and snippets.

View Sup4eg's full-sized avatar
🎯
Focusing

Trezubov Kirill Sup4eg

🎯
Focusing
View GitHub Profile
@Sup4eg
Sup4eg / Lag simulation
Last active July 19, 2025 20:12
Unreal Engine
Добавь это в Config/DefaultEngin.ini текущего проекта
[PacketSimulationSettings]
PktLag = 100
@Sup4eg
Sup4eg / SSH Tunnel
Created December 2, 2023 06:30
Windows
scp -i /home/payassistant/.ssh/private_ssh_key_here file_name_here user_name@host_ip_address:/tmp/file_name_here
ssh -o ExitOnForwardFailure=yes -f -N -L 1234:localhost:22 user_name_here@host_name_here -i /home/payassistant/.ssh/private_ssh_key_here
@Sup4eg
Sup4eg / CheckInput.cpp
Last active November 29, 2024 05:43
C++
//Check user input for C++
static void checkInput(int &search, int &replace)
{
while (1)
{
if (cin.fail())
{
cin.clear();
cin.ignore(numeric_limits<streamsize>::max(), '\n');
cout << "You have entered wrong input" << endl;
@Sup4eg
Sup4eg / Annotation.java
Last active December 2, 2023 06:38
Java
import java.lang.annotation.*;
@Target(value=ElementType.FIELD)
@Retention(value= RetentionPolicy.RUNTIME)
public @interface Name {
String name();
String type() default “string”;
}
rm -f ~/.zsh_history
touch ~/.zsh_history
sudo journalctl --vacuum-time=1s
sudo find /var/log -type f -name "*.log" -exec truncate -s 0 {} \;
sudo systemctl restart rsyslog
history -c
rm -f ~/.bash_history
touch ~/.bash_history
sudo rm -rf /var/log/*
-- Create a group
CREATE ROLE readaccess;
-- Grant access to existing tables
GRANT USAGE ON SCHEMA public TO readaccess;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess;
-- Grant access to future tables
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess;
CMD
set GIT_TRACE_PACKET=1
set GIT_TRACE=1
set GIT_CURL_VERBOSE=1
POWER SHELL
$env:GIT_TRACE_PACKET=1
$env:GIT_TRACE=1