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 | |
| # CHANGE THESE | |
| auth_email="user@example.com" | |
| auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings | |
| zone_name="$1" | |
| record_name="$2" | |
| # MAYBE CHANGE THESE | |
| ip=$(curl -s http://ipv4.icanhazip.com) |
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 | |
| function dg_get_data() { | |
| return array( | |
| 'name' => 'Darko Gjorgjijoski', | |
| 'age' => 23 | |
| ); | |
| } |
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 -e | |
| fatal() { echo "FATAL: $@" 1>&2; exit 1; } | |
| warn() { echo "WARN: $@"; } | |
| info() { echo "INFO: $@"; } | |
| usage() { | |
| cat <<EOF | |
| Usage: sudo $0 client_or_profile_name | |
| This will create two ovpn files in this directory (proxy and noproxy). |
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 | |
| /** | |
| * This class can be used to register a template outside WordPress theme. | |
| * | |
| * NOTE: This class is fork of the original class which was hardcoded to look for | |
| * the template in the plugin directory. After the modifications i added | |
| * the possiblity new templates to be registered using hook. | |
| * | |
| * @author gdarko | |
| * |
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
| ol.comment-list { | |
| list-style: none; | |
| background: #f7f7f7; | |
| padding: 10px; | |
| float: left; | |
| width: 100%; | |
| } | |
| .comment-metadata { | |
| text-align: right; |
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 | |
| set_time_limit(0); | |
| function unzipFile( $file, $dir = null ) { | |
| if ( is_null( $dir ) ) { | |
| $dir = dirname( __FILE__ ); | |
| } | |
| $dir = $dir . DIRECTORY_SEPARATOR . 'unzipped'; |
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 | |
| site=$1 | |
| absdir=`pwd` | |
| fulldir="$absdir/$site/public_html/wp-content/backupwordpress*backups" | |
| pubdir="$absdir/$site/public_html" | |
| echo "Running backup" | |
| echo $fulldir |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <!-- Required meta tags --> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <link href="https://fonts.googleapis.com/css?family=Playball" rel="stylesheet"> | |
| <!-- Bootstrap CSS --> |
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
| /** | |
| * This is very basic styling | |
| */ | |
| .dg-sharing-icons ul.dg-sharing-icons-inner li i.fa { | |
| color: gray; | |
| } | |
| .dg-sharing-icons ul.dg-sharing-icons-inner li { | |
| display: inline-block; | |
| margin-right: 15px; | |
| } |
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
| .upload-thumb { | |
| display: inline-block; | |
| width: 120px; | |
| height: 120px; | |
| overflow: hidden; | |
| background: #e2e2e2; | |
| border: 1px solid #cdcdcd; | |
| line-height: 120px; | |
| margin-bottom: 10px; | |
| } |