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
| package test.java.com; | |
| import com.MockServerContainer; | |
| import com.zaxxer.hikari.HikariConfig; | |
| import com.zaxxer.hikari.HikariDataSource; | |
| import lombok.NonNull; | |
| import org.junit.Assert; | |
| import org.junit.Test; | |
| import org.mockserver.model.*; | |
| import org.slf4j.Logger; |
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
| То же самое без перла | |
| sed -i 's/DEFINER=[^[:space:]]\+ //' ~/Документы/SQL/sqlBackups/ifd/181219_dump_gt_ifd_main_clear.sql | |
| То же самое перлом | |
| perl -p -i.bak -e "s/DEFINER=\`\w.*\`@\`\d[0-3].*[0-3]\`//g" ~/Документы/SQL/sqlBackups/ifd/181024_dump_ga_vitrin_shard.sql |
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
| DELIMITER $$ | |
| CREATE PROCEDURE InsertRandomRows(IN NumRows INT) | |
| BEGIN | |
| DECLARE i INT; | |
| SET i = 1; | |
| START TRANSACTION; | |
| WHILE i <= NumRows DO | |
| INSERT INTO table_name (num) VALUES (ROUND(RAND() * 1000000)); | |
| SET i = i + 1; | |
| END WHILE; |
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
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| imageView = (ImageView) findViewById(R.id.imageView); | |
| //imageView.setTag(R.id.glide_tag); | |
| //ViewTarget.setTagId(R.id.glide_tag); |
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
| 1. Install New Package From Repository | |
| [root@centos7 ~]# dnf install httpd | |
| 2. Assume Yes | |
| [root@centos7 ~]# dnf install httpd-manual -y | |
| 3. Check For Available Updates | |
| [root@centos7 ~]# dnf check-update | |
| 4. Update New Package From Repository |
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
| private List<Map<String, String>> parseRule(String rule) { | |
| return Splitter.on(";").splitToList(rule).stream() | |
| .filter(StringUtils::isNotBlank) | |
| .map(parseToMap) | |
| .collect(Collectors.toList()); | |
| } | |
| private Function<String, Map<String, String>> parseToMap = ex -> { | |
| Map<String, String> result = new HashMap<>(); |
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
| <?php | |
| foreach(str_split(base64_decode('YOUR_ENCODED_PASS_HERE')) as $chr) | |
| echo chr(((($chr = ord($chr)) << 1) & 0xFF) | ($chr >> (8 - 1))); |
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
| package com; | |
| import com.model.WinnerDto; | |
| import java.io.*; | |
| import java.nio.charset.Charset; | |
| import java.nio.file.Files; | |
| import java.nio.file.Paths; | |
| import java.nio.file.StandardOpenOption; | |
| import java.security.SecureRandom; |
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 lombok.experimental.UtilityClass; | |
| import com.google.common.io.PatternFilenameFilter; | |
| import org.apache.commons.io.FileUtils; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.util.List; |
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
| package ru.ushakov; | |
| import lombok.Cleanup; | |
| import org.apache.commons.lang.StringUtils; | |
| import org.junit.Test; | |
| import java.io.*; | |
| import java.nio.charset.Charset; | |
| import java.nio.file.Files; | |
| import java.nio.file.Paths; |