PhpStorm now bundles WordPress coding style natively, starting from version 8.
- Go to
Project Settings>Code Style>PHP. - Select
Set From...(top right of window) >Predefined Style>WordPress.
No longer need to muck with this import! :)
| jQuery(function() { | |
| jQuery(document).unbind('.zendesk.keyboard-shortcut'); | |
| }); |
| <?php | |
| /** | |
| * Google Contacts Syncer | |
| * by Alex Mills (http://www.viper007bond.com/) | |
| * | |
| * This script copies all contacts from Google account A to | |
| * Google account B, wiping out all existing contacts in | |
| * account B's account in the process. | |
| * |
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| <?php | |
| /* Plugin Name: Damn Vulnerable WordPress Plugin | |
| * Description: Intentionally vulnerable plugin for plugin author education | |
| * Version: 0.1 | |
| * Plugin URI: http://make.wordpress.org/plugins/2013/04/09/intentionally-vulnerable-plugin/ | |
| * Author: Jon Cave | |
| * Author URI: http://joncave.co.uk | |
| * License: GPLv2+ | |
| * | |
| * DO NOT RUN THIS PLUGIN ON AN INTERNET ACCESSIBLE SITE |
| #!/bin/bash | |
| # (not really -- run these commands by hand & pay attention to the comments) | |
| # Homebrew: The missing package manager for OS X | |
| ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
| # Fish: Finally, a command line shell for the 90s | |
| brew install fish | |
| # Git |
| function getTestPersonaLoginCredentials(cb) { | |
| http.get({ | |
| host: 'personatestuser.org', | |
| path: '/email' | |
| }, function(res) { | |
| // explicitly treat incoming data as utf8 (avoids issues with multi-byte chars) | |
| res.setEncoding('utf8'); | |
| // incrementally capture the incoming response body |
| # encoding: utf-8 | |
| # USE AT OWN RISK | |
| # | |
| # Follow this guide to install Ruby on Windows (step 1 and 2): https://forwardhq.com/support/installing-ruby-windows | |
| # Install gems (with admin cmd prompt): | |
| # https://rubygems.org/gems/bencode | |
| # https://rubygems.org/gems/rest_client | |
| # | |
| # Edit datpath below to point to your utorrent resume.dat file |
| ################## | |
| # Privacy Settings | |
| ################## | |
| # Privacy: Let apps use my advertising ID: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
| # To Restore: | |
| #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
| # Privacy: SmartScreen Filter for Store Apps: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
1 - install GPG tools : https://gpgtools.org/
2 - Create new key for your github email
3 - Add key to git on your local machine: git config --global user.signingkey YOURKEY
4 - configure git to sign all commits: git config --global commit.gpgsign true
5 - add to the bottom of ~/.gnupg/gpg.conf: (create the file if it not exists)