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
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
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
# 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
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
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 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
@Basic | |
@Column(name = "created_date", nullable = true) | |
@Type(type="org.jadira.usertype.dateandtime.joda.PersistentLocalDateTime") | |
public DateTime getCreatedDate() { | |
return createdDate; | |
} | |
public void setCreatedDate(DateTime createdDate) { | |
this.createdDate = createdDate; | |
} |
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
The issues: MPC-HC is hang when playing mp4 files on Windows 10 Creator | |
Quick-fix: Go to Options (O) -> Playback -> Output -> Change 'Directshow Video' to 'Video Mixing Renderer 9 (renderless)' |
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
alias vlc="/Applications/VLC.app/Contents/MacOS/VLC" |
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
[Google Drive] - Ref: https://www.google.com/drive/pricing/ | |
100 GB - $1.99 / month | |
1TB - $9.99 / month | |
10 TB - $99.99 / month | |
15 GB - FREE | |
[DropBox] - Ref: https://www.dropbox.com/business/pricing | |
2TB - $12.50 / month | |
As much space as you - $20 / month | |
4GB - FREE | |
[OneDrive] - Ref: https://onedrive.live.com/about/en-US/plans/ |