Skip to content

Instantly share code, notes, and snippets.

View minhnhut0602's full-sized avatar

Nhut Phan minhnhut0602

  • HVN
  • Ho Chi Minh
View GitHub Profile
@minhnhut0602
minhnhut0602 / For Mac 4.2.6 unlimited trial.md
Created October 19, 2025 07:46 — forked from rise-worlds/For Mac 4.2.6 unlimited trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@

Disable Device Enrollment Program (DEP) notification on macOS Monterey.md

NB! command-R is replaced with holding the power button on M1 macs.

With full reinstall (recommended)

   a. Boot into recovery using command-R during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

   b. Initial installation will run for approximately 1 hour, and reboot once

@minhnhut0602
minhnhut0602 / SlackApiClient.java
Created June 14, 2022 16:04 — forked from ehab-qadah/SlackApiClient.java
Spring boot java slack API client to send messages and reply to it (thread) with retries
package com.qadah.slack;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.http.HttpEntity;
@minhnhut0602
minhnhut0602 / README.md
Created April 5, 2022 03:30 — forked from russomi/README.md
Java 8 Spring Event Driven Microservices

Event Driven Microservices

  • Java 8
  • Spring Boot 2
  • JUnit
  • Cucumber
  • Kafka
  • Camunda
  • ElasticSearch
  • Cassandra
@minhnhut0602
minhnhut0602 / nginx-tuning.md
Created July 29, 2021 13:52 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@minhnhut0602
minhnhut0602 / Dockerfile
Created January 2, 2021 13:38 — forked from sudhanshu-15/Dockerfile
Docker image with Jenkins and Flutter installed
# Setting the base image of which docker image is being created
FROM jenkins/jenkins:lts
LABEL maintainer="[email protected]"
LABEL description="A docker image made from jenkins lts and flutter installed"
# Switching to root user to install dependencies and flutter
USER root
# Installing the different dependencies required for Flutter, installing flutter from beta channel from github and giving permissions to jenkins user to the folder
@minhnhut0602
minhnhut0602 / PingIP.java
Created December 5, 2019 01:50 — forked from madan712/PingIP.java
Java program to ping an IP address
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class PingIP {
public static void runSystemCommand(String command) {
try {
Process p = Runtime.getRuntime().exec(command);
BufferedReader inputStream = new BufferedReader(
@minhnhut0602
minhnhut0602 / main.dart
Created November 6, 2019 01:55 — forked from mlabouardy/main.dart
Invoke API Gateway with Dart
@override
void initState() {
super.initState();
http.get(this._apiGatewayURL)
.then((response) => response.body)
.then(JSON.decode)
.then((movies) {
movies.forEach(_addMovie);
});
}
<?php
/**
* http://webdeveloperswall.com/php/get-youtube-video-id-from-url
**/
function extractUTubeVidId($url){
/*
* type1: http://www.youtube.com/watch?v=9Jr6OtgiOIw
* type2: http://www.youtube.com/watch?v=9Jr6OtgiOIw&feature=related
* type3: http://youtu.be/9Jr6OtgiOIw
*/
@minhnhut0602
minhnhut0602 / date-input.jsx
Created April 29, 2017 07:27 — forked from radubrehar/date-input.jsx
react-date-picker input integration
import React from 'react'
import assign from 'object-assign';
import Input from 'react-filed';
import join from 'classnames';
import DatePicker from 'react-date-picker';
import moment from 'moment';
import ClassName from './index.local.styl';
export default class DateInput extends React.Component {