This file contains hidden or 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://console.cloud.google.com/freetrial?page=0 (Sign up and get $300 to spend on Google Cloud Platform over the next 60 days. Credit Card with $ is required) | |
https://amazonlightsail.com/ (starting from 5$/month) | |
https://cloud.digitalocean.com/login (free with Github Student Pack, require Paypal) |
This file contains hidden or 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
## mako | |
<%namespace name='static' file='/static_content.html'/> | |
<%! | |
from django.utils.translation import ugettext as _ | |
from django.core.urlresolvers import reverse | |
%> | |
<%page args="tab_list, active_page, default_tab, tab_image" expression_filter="h" /> | |
<% |
This file contains hidden or 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
web mvc scaffold --class ~.web.PkgSmsLMCycleController --backingType ~.domain.PkgSmsLMCycle --path admin/pkgsmslmcycle | |
web mvc scaffold --class ~.web.PkgDataController --backingType ~.domain.PkgData --path admin/pkgdatacfg |
This file contains hidden or 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
# Install third party library to local maven repository | |
mvn install:install-file -Dfile=/path/to/file.jar -DgroupId=groupId -DartifactId=artifactId -Dversion=version -Dpackaging=jar |
This file contains hidden or 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
Reading package lists... | |
Building dependency tree... | |
Reading state information... | |
python-software-properties is already the newest version. | |
The following package was automatically installed and is no longer required: | |
libt1-5 | |
Use 'apt-get autoremove' to remove them. | |
0 upgraded, 0 newly installed, 0 to remove and 166 not upgraded. | |
OK | |
You are about to add the following PPA to your system: |
This file contains hidden or 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
Reading package lists... | |
Building dependency tree... | |
Reading state information... | |
python-software-properties is already the newest version. | |
The following package was automatically installed and is no longer required: | |
libt1-5 | |
Use 'apt-get autoremove' to remove them. | |
0 upgraded, 0 newly installed, 0 to remove and 166 not upgraded. | |
OK | |
You are about to add the following PPA to your system: |
This file contains hidden or 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
Get the system information (OS version): cat /etc/*-release | |
Lists open files and the corresponding processes: lsof -i :port | |
Get PID of the process which is running on specific port: netstat -nlp | grep "port" | |
Get the path of specific PID: ps -fp pid | |
Get the public ip: curl httpbin.org/ip | |
Read Realtime log: tailf /path/to/file | |
Get directory structure: tree /directory | |
Move to previous directory: cd - (actually it is $OLDPWD environment path) | |
Copy ssh public key to server: ssh-copy-id user@ip_address | |
Execute a command repeatedly: watch 'command' |
This file contains hidden or 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
Network Interface Configurator. | |
- View network settings of an ethernet adapter: | |
ifconfig eth0 | |
- Display details of all interfaces, including disabled interfaces: | |
ifconfig -a | |
- Disable eth0 interface: | |
ifconfig eth0 down |
This file contains hidden or 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
Backup: sudo tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/boot --one-file-system / | |
Restore: sudo tar -xvpzf /path/to/tar/file -C / --numeric-owner |
This file contains hidden or 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
# The vboxmanage is located at: | |
\path\to\virtualbox (example: ..\Oracle\VirtualBox) | |
# Clone a virtual machine (with Virtual Machine name) to specific folder: | |
vboxmanage clonevm Funix --basefolder D:\VMWare |