Skip to content

Instantly share code, notes, and snippets.

View lucndm's full-sized avatar
🎯
Focusing

Nguyễn Đăng Minh Lực lucndm

🎯
Focusing
View GitHub Profile
@lucndm
lucndm / free_ports.sh
Created October 22, 2021 17:05 — forked from hjbotha/free_ports.sh
Free ports 80 and 443 on Synology NAS
#! /bin/bash
# NEWLY ADDED BACKUP FUNCTIONALITY IS NOT FULLY TESTED YET, USE WITH CARE, ESPECIALLY DELETION
# Developed for DSM 6. Not tested on other versions.
# Steps to install
# Save this script in one of your shares
# Backup /usr/syno/share/nginx/ as follows:
# # cd /usr/syno/share/
# # tar cvf ~/nginx.tar nginx
# Run this script as root
@lucndm
lucndm / .tmux.conf.local
Last active February 4, 2020 16:48
docker-workspaces
# show host name and IP address on left side of status bar
set-option -g default-shell /bin/zsh
set -g status-left-length 70
set -g status-left "#[fg=yellow]Remote #[fg=green]#h : #[fg=brightblue]#(ip addr show dev eth0 | grep "inet[^6]" | awk '{print $2}')"
@lucndm
lucndm / Config connect in kafka connection
Created December 21, 2019 06:26
Config connect in kafka connection
connector.class=io.debezium.connector.mysql.MySqlConnector
snapshot.locking.mode=none
transforms.unwrap.delete.handling.mode=rewrite
tasks.max=2
database.history.kafka.topic=dbhistory.be_autos
buffer.memory=100
decimal.handling.mode=double
confluent.topic.replication.factor=3
poll.interval.ms=200
value.converter=io.confluent.connect.avro.AvroConverter
@lucndm
lucndm / Host
Created December 21, 2019 06:24
Proxmox GPU passthrough to LXC Container
Note : Proxmox 6.1
VI : /etc/apt/sources.list
# security updates
deb http://security.debian.org jessie/updates main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian jessie pve-no-subscription
@lucndm
lucndm / Build PC DeepLearning.md
Created October 15, 2019 07:23
Build PC DeepLearning


Personal Deep Learning Computer

@lucndm
lucndm / hyper.json
Last active July 3, 2019 04:17
setting for terminal hyper js
clgt
@lucndm
lucndm / airflow-k8s-executor-minikube-helm.md
Created March 27, 2019 03:33 — forked from kppullin/airflow-k8s-executor-minikube-helm.md
Airflow w/ kubernetes executor + minikube + helm

Overview

The steps below bootstrap an instance of airflow, configured to use the kubernetes airflow executor, working within a minikube cluster.

This guide works with the airflow 1.10 release, however will likely break or have unnecessary extra steps in future releases (based on recent changes to the k8s related files in the airflow source).

Prerequisites

  • Docker installed
  • Minikube installed and started
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTbduV2RQfhebNH40Hde9mRopQVQnORDVgSGpKxuBuemL0GRxsUQxv9t58k1f8cAIt20aSFUPKYAGXKk0+7YG00eepo5amFgAJL3ZBDppQ7itK45LSDefE4W8SpVQ6uknkq7aDtz2BqU/WQQ7U3hKCLjBqM+9b3R1Q/jscnpY+E43PVTFDEFXiQMII0R3Feuol3qQU3wYnZH+BUM9xTtehsivSqf3kxjaKLfhOq7bOvdl9aENEoog/v/2pnG9k3lQVfkngzzANiH1ZrZJdOjily5vHnP34YD4bq1gFuMJuoDyc8Gyzq3/yEes0pN6DrYHjySdzfSs7cnVmnVFQXJgZ [email protected]
@lucndm
lucndm / link pycharm spark
Created September 22, 2016 08:10
link pycharm spark
@lucndm
lucndm / ReflectionHelper.cs
Created April 10, 2016 14:49
ReflectionHelper
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using log4net;
namespace LichPhatSong.Scraper.Helpers
{
public static class ReflectionHelper