Skip to content

Instantly share code, notes, and snippets.

View zhaopengme's full-sized avatar

zhaopeng zhaopengme

View GitHub Profile
@zhaopengme
zhaopengme / HTML:html_create_templdate
Created July 30, 2012 03:48
HTML:html_create_templdate
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
</body>
</html>
@zhaopengme
zhaopengme / HTML:html5_create_templdate
Created July 30, 2012 03:50
HTML:html5_create_templdate
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8">
 
  <title>untitled</title>
 
  <!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->  
 
  <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8">
import com.sun.javafx.application.PlatformImpl;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javafx.application.Platform;
import javafx.collections.ObservableList;
import javafx.embed.swing.JFXPanel;
import javafx.scene.Group;
import javafx.scene.Node;
@zhaopengme
zhaopengme / execit
Created May 20, 2015 01:55
enter docker container
#!/bin/bash
execit(){
echo "docker exec -it $1 bash"
docker exec -it $1 bash
}
execit [containerid]
@zhaopengme
zhaopengme / EnvUtil
Created June 9, 2015 03:37
set environment variables from Java
import java.lang.reflect.Field;
import java.util.Collections;
import java.util.Map;
/**
* Created by mikey.zhaopeng on 2015/6/9.
*/
public class EnvUtil {
public static void setEnv(Map<String, String> newenv) {
@zhaopengme
zhaopengme / OpenPowerShellHere.reg
Created August 31, 2016 07:38 — forked from codewithtyler/OpenPowerShellHere.reg
Creates a context menu item allowing you to open a PowerShell window in whatever directory you have clicked.
Windows Registry Editor Version 5.00
;
; Add context menu entry to Windows Explorer background
;
[HKEY_CLASSES_ROOT\Directory\Background\shell\powershell]
@="Open PowerShell window here"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\powershell\command]
@zhaopengme
zhaopengme / ContextCmder-Disable.reg
Created November 23, 2016 15:53 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7/8
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
@zhaopengme
zhaopengme / init.bat
Created November 23, 2016 15:55 — forked from 17/init.bat
Cmder explorer context menu integration
@echo off
SET CMDER_ROOT=%~dp0
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /ve /d "Cmder Here" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /v "Icon" /d "\"%CMDER_ROOT%cmder.exe\"" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /v "Extended" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder\command" /ve /d "\"%CMDER_ROOT%cmder.exe\" \"%%V\"" /f
pause
sudo apt-get purge -y maven
wget http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
tar -zxf apache-maven-3.3.9-bin.tar.gz
sudo cp -R apache-maven-3.3.9 /usr/local
sudo ln -s /usr/local/apache-maven-3.3.9/bin/mvn /usr/bin/mvn
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt-get update
sudo apt-get install git
git --version