This file contains hidden or 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
Добавь это в Config/DefaultEngin.ini текущего проекта | |
[PacketSimulationSettings] | |
PktLag = 100 |
This file contains hidden or 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
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 |
This file contains hidden or 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
//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; |
This file contains hidden or 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 java.lang.annotation.*; | |
@Target(value=ElementType.FIELD) | |
@Retention(value= RetentionPolicy.RUNTIME) | |
public @interface Name { | |
String name(); | |
String type() default “string”; | |
} |
This file contains hidden or 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
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/* |
This file contains hidden or 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
-- 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; |
This file contains hidden or 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
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 |