I hereby claim:
- I am fredjoseph on github.
- I am fredjoseph (https://keybase.io/fredjoseph) on keybase.
- I have a public key ASAUP31ohpKOKZXGMac1INGln02a5em4A0N8DoSiJdKaIQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# This configuration file adds some commands to lf file manager for windows. | |
# Requirements : | |
# - git-for-windows | |
# - highlight | |
# interpreter for shell commands (needs to be POSIX compatible) | |
set shell cmd | |
# set '-eu' options for shell commands | |
# These options are used to have safer shell commands. Option '-e' is used to |
Docker is an open platform for developing, shipping, and running applications. It is the standard de facto for packaging and sharing apps – from desktop to the cloud.
To achieve its goal, Docker is using containers.
The container has the following characteristics:
OpenVPN, by default, installs only one TAP network interface. If you want to connect to multiple VPNs simultaneously you need a TAP interface for each VPN.
C:\Program Files\TAP-Windows\bin
addtap.bat
script, the result will be :
"devcon.exe" install "C:\Program Files\TAP-Windows\driver\OemWin2k.inf" tap0901
Device node created. Install is complete when drivers are installed...
;= @echo off | |
;= rem Call DOSKEY and use this file as the macrofile | |
;= %SystemRoot%\system32\doskey /listsize=1000 /macrofile=%0% | |
;= rem In batch mode, jump to the end of the file | |
;= goto:eof | |
;= Add aliases below here | |
e.=explorer . | |
ls=ls --show-control-chars -F --color $* | |
pwd=cd | |
clear=cls |
For connecting to in-memory HSQL database, we need to launch a db browser in the same JVM instance.
First, we need to add the following code in a Configuration class of the Spring application.
@PostConstruct
public void startDBManager() {
//hsqldb
DatabaseManagerSwing.main(new String[] { "--url", "jdbc:hsqldb:mem:testdb", "--user", "sa", "--password", "" });
}
If an error 'initialize': negative string size (or size too big)
occurs, the solution is to remove the index file in ~\.vagrant.d\data\machine-index
Vagrant doesn’t provide any out-of-the-box option to configure or to change the disk size. The disk size of a VM totally depends on the base image used for the VM. Moreover, most Vagrant boxes use VMDK disks which cannot be resized!
This plugin allows to resize the disk size.
Clink Commands | Description |
---|---|
Ctrl+V | Paste from clipboard |
Ctrl+R | Incremental history search |
Ctrl+S | Incremental history search |
Tab | completion |
Ctrl+Z | Undo |
Ctrl+Alt+U | Change directory (automatic “cd ..”) |
Ctrl+Alt+E | Expand environment variable |
Alt+H | GNU Readline help |
alias ls="ls --color=auto -v -h --group-directories-first" | |
unalias fd 2>/dev/null | |
alias mvn-quick-install="mvn clean install -DskipTests -T2C" | |
alias iless="less -iMSx4 -FXR" | |
# Kill all the tabs in Chrome to free up memory | |
# [C] explained: http://www.commandlinefu.com/commands/view/402/exclude-grep-from-your-grepped-output-of-ps-alias-included-in-description | |
alias chromekill="ps ux | grep '[C]hrome Helper --type=renderer' | grep -v extension-process | tr -s ' ' | cut -d ' ' -f2 | xargs kill" | |
alias chromiumkill="ps ux | grep '[c]hromium --type=renderer' | grep -v extension-process | tr -s ' ' | cut -d ' ' -f2 | xargs kill" |