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
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 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 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 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 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 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 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
# Fix mysqld start fail: (when backup server) | |
vim /etc/mysql/my.cnf --> | |
[mysqld] | |
innodb_force_recovery = 3 | |
# Backup: | |
mysqldump -u root -p[password] [database_name] > dumpfilename.sql | |
# Restore: | |
mysql -u root -p[password] [database_name] < dumpfilename.sql | |
# Create user | |
CREATE USER 'finley'@'localhost' IDENTIFIED BY 'some_pass'; |
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
# Modify this file accordingly for your specific requirement. | |
# http://www.thegeekstuff.com | |
# 1. Delete all existing rules | |
iptables -F | |
# 2. Set default chain policies | |
iptables -P INPUT DROP | |
iptables -P FORWARD DROP | |
iptables -P OUTPUT DROP |
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
LightHouse aka Audit 2.0 (https://github.com/GoogleChrome/lighthouse) - Lighthouse analyzes web apps and web pages, collecting modern performance metrics and insights on developer best practices. |
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
* Use Json Web Token (JWT) for authorization [https://jwt.io/] | |
- Flickr | |
Request Format: GET or POST [https://www.flickr.com/services/api/request.rest.html] | |
Successful Responses: | |
{ | |
"stat": "ok", | |
"blogs": { | |
"blog": [ | |
{ |