Step 1: Install Samba
sudo apt update
sudo apt install samba -y
Step 4: Set Up a User Account
To create a user account, set a username and password with:
sudo smbpasswd -a username
Step 1: Install Samba
sudo apt update
sudo apt install samba -y
Step 4: Set Up a User Account
To create a user account, set a username and password with:
sudo smbpasswd -a username
// run maria db or mySql image and create a DB | |
docker run -p 3307:3306 --name container-name -e MARIADB_ROOT_PASSWORD=root -e MARIADB_DATABASE=rookiedev image-name/ID | |
// Build docker file | |
docker build -t my-app . | |
// for docker compose | |
** docker-compose up -d --build | |
docker-compose up | |
// docker network |
DayOfWeek dayOfWeek = WeekFields.of(Locale.getDefault()).getFirstDayOfWeek(); | |
LocalDateTime firstDayOfWeek = LocalDate.now().atTime(0, 0, 0).with(TemporalAdjusters.previousOrSame(dayOfWeek)) | |
.with(LocalTime.MIN); |
0 0/5 * * * ? -> 5 min every hour | |
0 */5 * * * ? ->every 5 min | |
0 * * * * ? -> every min | |
0 0 * * * ? - > every hour |
public static String replaceTabAndNewLine(String text, String replacement) { | |
return StringUtils.isNotBlank(text) ? text.replaceAll("[\\r\\t\\n]", replacement) : StringUtils.EMPTY; | |
} |
This file will cover important coding practices that are important to stress when coding this program. Listed below are some of the more important details that should be stressed. Each programmer has his/her own way to deliver code. The importance of having similar coding conventions throughout this program are listed below.
@Log4j2 | |
@Component | |
@RequiredArgsConstructor(onConstructor_ = @Autowired) | |
public class TagDataExporter { | |
@Nonnull private final DataExportImportSupport dataExportImportSupport; | |
@Nonnull private final AccountFileSupport accountFileSupport; | |
@Nonnull private final IdeaService ideaService; | |
private static final String TSV_DELIMITER = "\t"; | |
private static final String FILE_NAME_INFIX = "tags"; |
@PostMapping(value = MY_URL, produces = MediaType.APPLICATION_JSON_VALUE) | |
@ApiResponse(code = 200, message = "OK") | |
public void getData(@RequestBody String data) { | |
String val = data; | |
} |
public void sendCommunityData(File zippedFile) { | |
try { | |
HttpHeaders headers = New HttpHeaders(); | |
String url = "You url"; | |
headers.setContentType(MediaType.MULTIPART_FORM_DATA); | |
MultiValueMap<String, Object> requestBody = new LinkedMultiValueMap<>(); | |
requestBody.add("file", new FileSystemResource(zippedFile.getAbsolutePath())); | |
HttpEntity<MultiValueMap<String, Object>> requestEntity = new HttpEntity<>(requestBody, headers); | |
restTemplate.exchange(url, HttpMethod.POST, requestEntity, String.class); |