Skip to content

Instantly share code, notes, and snippets.

@dhval
dhval / _.md
Last active October 22, 2020 20:17 — forked from anonymous/index.html
Azure Power Shell

Windows/Azure CLI

@dhval
dhval / Linux Static IP
Created November 4, 2015 15:18 — forked from fernandoaleman/Linux Static IP
How To Configure Static IP On CentOS 6
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
@dhval
dhval / ReadExcelToJson.java
Last active May 3, 2024 13:57
Convert Excel to JSON
#!/usr/bin/java --source 12 --class-path /Users/dhval/project/jar/poi-3.16/lib/*
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.*;