This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# migrating from https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git/git.plugin.zsh | |
# Aliases | |
alias g='git' | |
#compdef g=git | |
alias gst='git status' | |
#compdef _git gst=git-status | |
alias gd='git diff' | |
#compdef _git gd=git-diff | |
alias gdc='git diff --cached' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.InputStream; | |
import java.net.Socket; | |
public class SimpleClient { | |
public static void main(String[] args) throws Exception { | |
Socket socket = new Socket("127.0.0.1", 6666); | |
InputStream input = socket.getInputStream(); | |
long total = 0; | |
long start = System.currentTimeMillis(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
</head> | |
<body> | |
<!-- normally you wouldn't show this --> | |
<div id="paste" contenteditable="true"></div> | |
<script type="text/javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tables": [ | |
{ | |
"title": [ | |
"Application Data Driven Events Summary: Exception Requests", | |
"System Name: RSA Archer GRC Version: 6.4.00200.1032", | |
"9/20/2018" | |
], | |
"info": { | |
"Application Name": "Exception Requests", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://press.one/p/address/v?s=43db63b18a5592a3f955ef638bd8d247d7315e1e33d2b21bed8d4d91e45f8ed37518a0e7ec1ac83858dcb470311e18223dac5c8df23c698e3dda207186af54421&h=06ca22c7639b002267255305b79b5ad50b794cb561968cb3694e0d6ebeeb28e8&a=7ac6a4535e1726dd6eec4f952359dcee725017f1&f=P1&v=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#To Get List of Hardware | |
sudo networksetup -listallhardwareports | |
#To Disable IPv6 on Wifi Adapter | |
sudo networksetup -setv6off wi-fi | |
#To Disable IPv6 on Built-in Ethernet Adapter | |
sudo networksetup -setv6off Ethernet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Autohotkey script to translate some Mac shortcuts for Windows | |
;Use Alt key instead of control key (Alt key is at the same place of Cmd on Mac) | |
;On Mac all hotkeys often used are: cmd+c, cmd+v, ... -> ctrl+c, ctrl+v, ... (on PC) | |
;Use ScrollLock key to temporary activate / descativate the current script, in case of get some trouble | |
;Added some Mac specific shortcuts like Alt+Shift+Right, Alt+Shift+Left or Cmd+Shift+L | |
;Work only with left Alt and left Control keys | |
#UseHook | |
#InstallKeybdHook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" | |
sudo apt-get update | |
sudo apt-get install skype | |
sudo apt-get install build-essential libssl-dev | |
curl https://raw.githubusercontent.com/creationix/nvm/v0.25.0/install.sh | bash | |
关掉terminal,重新打开才能使用nvm命令 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM codenvy/ubuntu_jdk8 |
NewerOlder