sh install-docker.sh- log out
- log back in
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
| #!/bin/bash | |
| if [ ! -z `sudo which apt | grep "/apt"` ]; then | |
| sudo apt -y update | |
| sudo apt -y install git wget | |
| elif [ -z `sudo which yum | grep "/yum"` ]; then | |
| yum update | |
| yum install -y wget git | |
| fi |
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
| [{"id":"roboto","family":"Roboto","variants":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],"subsets":["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"],"category":"sans-serif","version":"v30","lastModified":"2022-05-12","popularity":1,"defSubset":"latin","defVariant":"regular"},{"id":"open-sans","family":"Open Sans","variants":["300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"],"subsets":["cyrillic","cyrillic-ext","greek","greek-ext","hebrew","latin","latin-ext","vietnamese"],"category":"sans-serif","version":"v29","lastModified":"2022-05-12","popularity":2,"defSubset":"latin","defVariant":"regular"},{"id":"noto-sans-jp","family":"Noto Sans JP","variants":["100","300","regular","500","700","900"],"subsets":["japanese","latin"],"category":"sans-serif","version":"v42","lastModified":"2022-05-10","popularity":3,"defSubset":"latin","defVariant":"regular"},{"id": |
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
| {"data":[{"id":"621c1a424b43fa5a66d48b87","name":"Linh hồn thứ ba ngàn","slug":"linh-hon-thu-ba-ngan","avatar":"/images/users/61dfde14cd6d3678a66ceda0/book/df1b1292-9c1e-4bac-b204-8f1cfb6f9219.jpg","rating":4,"categories":[{"id":"61dfc505eb09d3089a08fc7d","name":"Truyện Ngắn","slug":"truyen-ngan","__typename":"Category"}],"user":{"id":"61dfde14cd6d3678a66ceda0","name":"Kỳ Kỳ","penName":"Kỳ Kỳ","avatar":"/images/users/61dfde14cd6d3678a66ceda0/user_avatar/ff80fc47-55f5-402d-9491-dc37e7f5f966.jpg","sex":1,"__typename":"User"},"__typename":"Book"},{"id":"621662fc4b43fa5a66d392e5","name":"Gửi Jules","slug":"gui-jules","avatar":"/images/users/621519f74b43fa5a66d37fee/book/10684c4b-570f-4985-aee7-7357d8d18402.jpg","rating":0,"categories":[{"id":"61dfc3a1eb09d3089a08fc10","name":"Tình Cảm","slug":"tinh-cam","__typename":"Category"},{"id":"61dfc430eb09d3089a08fc31","name":"Giả Tưởng","slug":"gia-tuong","__typename":"Category"}],"user":{"id":"621519f74b43fa5a66d37fee","name":"noone","penName":"","avatar":"https://i.img |
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
| #!/bin/bash | |
| echo "----------------------------------------" | |
| echo "Script auto install & config laravel" | |
| read -p "Continute? (y/n): " CONTINUE | |
| echo "----------------------------------------" | |
| if [ $CONTINUE = "y" ]; then | |
| echo "----------------------------------------" | |
| read -p "Enter domain (domain/subdumain): " DOMAIN |
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
| #remove all unused data | |
| docker system prune | |
| # Stop all containers | |
| docker stop `docker ps -qa` | |
| # Remove all containers | |
| docker rm `docker ps -qa` | |
| # Remove all images |
https://dev.to/avantsekai/terminal-with-iterm2-ohmyzsh-7ko
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
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
| // Source: https://gist.github.com/luetkemj/2023628 | |
| // Xem hướng dẫn WP_Query toàn tập: http://goo.gl/kRpzTz | |
| <?php | |
| $args = array( | |
| //////Author Parameters - Tham số lấy bài viết theo tác giả | |
| //http://codex.wordpress.org/Class_Reference/WP_Query#Author_Parameters | |
| 'author' => '1,2,3,', //(int) - Các ID tác giả cần lấy bài viết (thêm dấu - vào để loại trừ tác giả, ví dụ: -14, -20) | |
| 'author_name' => 'luetkemj', //(string) - Lấy bài viết dựa theo tên nick name của tác giả | |
| 'author__in' => array( 2, 6 ), //(array) - Lấy bài dựa theo ID của tác giả |
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
| <?php | |
| /** | |
| * Display an error message at the top of the post edit screen explaining that ratings is required. | |
| * | |
| * Doing this prevents users from getting confused when their new posts aren't published, as we | |
| * require a valid rating custom taxonomy. | |
| * | |
| * @param WP_Post The current post object. | |
| */ | |
| function show_required_field_error_msg( $post ) { |
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
| npm i -s @zeit/next-sass @zeit/next-less node-sass | |
| next.config.js | |
| const withSass = require('@zeit/next-sass') | |
| const withLess = require('@zeit/next-less') | |
| const isProd = process.env.NODE_ENV === 'production' | |
| // fix: prevents error when .less files are required by node | |
| if (typeof require !== 'undefined') { | |
| require.extensions['.less'] = file => { } |
NewerOlder