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 | |
| global $wpdb; | |
| /** | |
| * and all the original post data then | |
| */ | |
| $post = get_post($post_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
| module.exports = function (grunt) { | |
| // This banner gets inserted at the top of the generated files, such a minified CSS | |
| var bannerContent = '/*!\n' + | |
| ' * <%= pkg.name %>\n' + | |
| ' * Version: <%= pkg.version %>\n' + | |
| ' * Build date: <%= grunt.template.today("yyyy-mm-dd HH:MM:ss") %>\n' + | |
| ' */\n\n'; | |
| require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks); |
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
| # Created by .ignore support plugin (hsz.mobi) | |
| ### JetBrains template | |
| # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm | |
| # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | |
| # User-specific stuff: | |
| .idea/**/workspace.xml | |
| .idea/**/tasks.xml | |
| .idea/dictionaries |
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
| # flatColourConvert image.png red | |
| function flatColourConvert() { | |
| magick convert "$1" -fill "$2" -colorize 100% x.png | |
| } | |
| # replaceColours "#1B3057" "#2B373D" | |
| # replaceColours red "#2B373D" 70% | |
| function replaceColours() { | |
| magick convert *.png -set filenam |
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
| const path = require('path'); | |
| module.exports = { | |
| entry: './src/index.js', | |
| output: { | |
| filename: 'bundle.js', | |
| path: path.resolve(__dirname, 'dist') | |
| }, | |
| module: { | |
| rules: [ |
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
| MaxMindDBEnable On | |
| MaxMindDBFile DB /opt/GeoIP/GeoLite2-Country.mmdb | |
| MaxMindDBEnv MM_COUNTRY_CODE DB/country/iso_code | |
| SetEnvIf MM_COUNTRY_CODE ^(AT|BE|BG|HR|CY|CZ|DK|EE|FI|FR|DE|GR|HU|IE|IT|LV|LT|LU|MT|NL|PL|PT|RO|SK|SI|ES|SE|GB|GI|AX|PM|GL|BL|SX|AW|CW|WF|PF|NC|TF|AI|BM|IO|VG|KY|FK|MS|PN|SH|GS|TC|IS|LI|NO|EU) BlockCountry | |
| Deny from env=BlockCountry |
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
| class Validator(): | |
| def __init__(self): | |
| self.valid = False | |
| self.validation_links = [] | |
| self.error_message = None | |
| def is_valid(self): | |
| return self.valid | |
| def set_valid(self, is_valid): |
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
| set nocompatible | |
| filetype off " required | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| let g:ycm_confirm_extra_conf = 0 | |
| Plugin 'VundleVim/Vundle.vim' | |
| Plugin 'fugitive.vim' |
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
| function secret() { | |
| </dev/urandom tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' | head -c 32 ; echo | |
| } |
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 | |
| /** | |
| * Class CSVDownload | |
| */ | |
| class CSVDownload { | |
| /** | |
| * @var array | |
| */ |
OlderNewer