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://github.com/rg3/youtube-dl/blob/master/README.md#output-template | |
| youtube-dl --download-archive archive.txt --output "%(playlist_index)s - %(title)s – [%(alt_title)s].%(ext)s" https://www.youtube.com/playlist?list=PL4dWJMOQ_a1TgayrpaB-SEVJhHC58U1wU --ignore-errors | |
| youtube-dl --download-archive archive.txt -f bestvideo+bestaudio --merge-output-format mkv --output "%(playlist_uploader)s – %(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" https://www.youtube.com/playlist?list=$1 --ignore-errors | |
| youtube-dl --download-archive archive.txt -f 'bestvideo[height>=720]+bestaudio' --merge-output-format mkv --output "%(playlist_uploader)s – %(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" https://www.youtube.com/playlist?list=$1 --ignore-errors | |
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 | |
| /* WordPress debug mode for developers. */ | |
| define( 'WP_DEBUG', true ); | |
| // Enable Debug logging to the /wp-content/debug.log file | |
| define( 'WP_DEBUG_LOG', true ); | |
| // Disable display of errors and warnings | |
| define( 'WP_DEBUG_DISPLAY', false ); |
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 | |
| find . -type d -name .metadata -exec rm -rf {} \; | |
| # or files by wildcard | |
| find . -type f -name *.part -exec rm -rf {} \; | |
| # The script starts within the current directory, | |
| # so be sure you navigate to the directory you want to start searching from first. | |
| # This script would work on any search type; | |
| # simply replace ".metadata" with the search of your choosing but be careful: |
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
| (shopt -s dotglob; mv -- * ..) |
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
| # Existing local project | |
| #Step 1: Switch to your repository's directory | |
| cd /path/to/your/repo | |
| # Step 2: Connect your existing repository to Bitbucket | |
| git remote add origin https://aivaras_n@bitbucket.org/pavbiblioteka/theme_pankrastas.git | |
| git push -u origin master | |
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
| .element { | |
| position: relative; | |
| top: 50%; | |
| transform: perspective(1px) translateY(-50%); | |
| } |
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 | |
| /****************/ | |
| /* WPML SUPPORT */ | |
| /****************/ | |
| function force_ssl( $force_ssl, $id = 0 ) { | |
| // A list of posts that should be SSL | |
| $ssl_posts = array(8); | |
| if ( in_array( $id, $ssl_posts ) ) { | |
| $force_ssl = true; |
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
| pdftops apsaugotas.pdf tmp.ps | |
| ps2pdf tmp.ps naujas.pdf |
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
| .grid-gallery { | |
| padding: 0.5rem; | |
| } | |
| .grid-gallery-item { | |
| padding: 0; | |
| margin: 0.5rem; | |
| max-width: 200px; | |
| display: inline-block; | |
| } |
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 | |
| /** | |
| * Adding the Open Graph in the Language Attributes | |
| * @param $output | |
| * | |
| * @return string | |
| */ | |
| function mysite_add_opengraph_doctype( $output ) { | |
| return $output . ' xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"'; | |
| } |